View virtual device list
    • PDF

    View virtual device list

    • PDF

    Article Summary

    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 nameRequired statusTypeRestrictionsDescription
    pageNointPage number. Default: 0
    sizeNointSize 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"
            }
        }
    }
    
    CategoryTypeDescription
    statusstringIndicates whether response was successful
    body.content[].namestringVirtual device name
    body.content[].descriptionstringVirtual device description
    body.content[].modifyTimelocalDateTimeVirtual device last modified date
    body.content[].registerTimelocalDateTimeVirtual 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?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.