Querying Details About an End Device
Function
This API is used to query details about an end device.
URI
GET /v2/{project_id}/edgemgr/devices/{device_id}
Parameter |
Mandatory |
Description |
---|---|---|
project_id |
Yes |
Project ID. For details about how to obtain a project ID, see Obtaining a Project ID. |
device_id |
Yes |
End device ID. |
Request
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
Content-Type |
Yes |
String |
Message body type (format). The default value application/json is recommended. |
X-Auth-Token |
Yes |
String |
User token. The token can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token. |
Response
Response parameters
Parameter |
Type |
Description |
---|---|---|
device |
Table 6 object |
Details about the end device. |
Example response
{ "device": { "id": "1398f13d-f24d-4de4-8cd3-5905db1d6d9f", "name": "device", "access_protocol": "", "project_id": "05e1aef9040010e22fccc009adecb056", "description": "new description", "created_at": "2020-09-23T02:00:22.858736Z", "updated_at": "2020-09-23T02:12:46Z", "access_config": {}, "attributes": {}, "connection_type": "edge" } }
Error Codes
For details, see Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot