仮想デバイスの照会
    • PDF

    仮想デバイスの照会

    • PDF

    Article Summary

    概要

    仮想デバイスを照会します。

    リクエスト

    リクエストURL

    GET {CLOUD_IOT_CORE_API_URL}/devices/{deviceName}
    
    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}
    

    Path Variables

    項目必須の有無タイプ説明
    deviceNameYesstring仮想デバイス名

    レスポンス

    レスポンスボディ

    {
        "status": "string",
        "body": {
            "device": {
                "name": "string",
                "description": "string",
                "modifyTime": "localDateTime",
                "registerTime": "localDateTime"
            },
            "deviceProperties": {
                "createUpdateList": [
                    {
                        "key": "string",
                        "value": "string",
                        "modifyTime": "localDateTime",
                        "registerTime": "localDateTime"
                    }
                ]
            }
        }
    }
    
    項目タイプ説明
    statusstringレスポンスの成否
    body.namestring仮想デバイス名
    body.descriptionstring仮想デバイス説明
    body.modifyTimelocalDateTime仮想デバイスの最終修正日
    body.registerTimelocalDateTime仮想デバイスの作成日
    body.deviceProperties.createUpdateList[].keystring仮想デバイス属性 Key
    body.deviceProperties.createUpdateList[].valuestring仮想デバイス属性 Value
    body.deviceProperties.createUpdateList[].modifyTimelocalDateTime仮想デバイス属性の最終修正日
    body.deviceProperties.createUpdateList[].registerTimelocalDateTime仮想デバイス属性作成日

    {
        "status": "SUCCESS",
        "body": {
            "device": {
                "name": "bulb",
                "description": "bulb in living room",
                "modifyTime": "2020-09-25 14:15:25",
                "registerTime": "2020-09-25 14:15:25"
            },
            "deviceProperties": {
                "createUpdateList": [
                    {
                        "key": "lux",
                        "value": "2000",
                        "modifyTime": "2020-09-25 14:15:25",
                        "registerTime": "2020-09-25 14:15:25"
                    },
                    {
                        "key": "ampere",
                        "value": "5",
                        "modifyTime": "2020-09-25 14:15:25",
                        "registerTime": "2020-09-25 14:15:25"
                    }
                ]
            }
        }
    }
    

    この記事は役に立ちましたか?

    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.