View virtual device list
- Print
- PDF
View virtual device list
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
Summary
Views a list of virtual devices.
Request
Request URL
GET {CLOUD_IOT_CORE_API_URL}/devices
Content-Type: application/json; charset=utf-8
x-ncp-apigw-timestamp: {Timestamp}
x-ncp-iam-access-key: {Sub Account Access Key}
x-ncp-apigw-signature-v2: {API Gateway Signature}
Request parameters
Parameter name | Required status | Type | Restrictions | Description |
---|---|---|---|---|
page | No | int | Page number. Default: 0 | |
size | No | int | Size of result list. Default: 10 |
Response
Response body
{
"status": "string",
"body": {
"content": [
{
"name": "string",
"description": "string",
"modifyTime": "localDateTime",
"registerTime": "localDateTime"
}
],
"page": {
"size": "long",
"totalElements": "long",
"totalPages": "long",
"number": "long"
}
}
}
Category | Type | Description |
---|---|---|
status | string | Indicates whether response was successful |
body.content[].name | string | Virtual device name |
body.content[].description | string | Virtual device description |
body.content[].modifyTime | localDateTime | Virtual device last modified date |
body.content[].registerTime | localDateTime | Virtual device creation date |
Example
{
"status": "SUCCESS",
"body": {
"content": [
{
"name": "bulb",
"description": "",
"modifyTime": "2019-04-24 19:23:14",
"registerTime": "2019-04-24 19:23:14"
}
],
"page": {
"size": 10,
"totalElements": 1,
"totalPages": 1,
"number": 0
}
}
}
Was this article helpful?