仮想デバイス検索
    • PDF

    仮想デバイス検索

    • PDF

    Article Summary

    概要

    仮想デバイスリストを検索します。

    リクエスト

    リクエスト URL

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

    リクエストパラメーター

    パラメーター名必須の有無タイプ制約事項説明
    pageNoIntページ番号。基本値: 0
    sizeNoInt結果リストのサイズ基本値: 10
    keywordYesstring検索キーワード

    リクエスト URL

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

    リクエストパラメーター

    パラメーター名必須の有無タイプ制約事項説明
    pageNoIntページ番号。基本値: 0
    sizeNoInt結果リストのサイズ基本値: 10
    keywordYesstring検索キーワード

    リクエスト URL

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

    リクエストパラメーター

    パラメーター名必須の有無タイプ制約事項説明
    pageNoIntページ番号。基本値: 0
    sizeNoInt結果リストのサイズ基本値: 10
    keywordYeslistコロン(:)、等号(=)、コンマ(,)以外の特殊文字不可検索キーワードリスト (ex) keyword=type=apartment,room:vip

    レスポンス

    レスポンスボディ

    {
        "status": "string",
        "body": {
            "content": [
                {
                   "device" : {
                        "name": "string",
                        "description": "string",
                        "modifyTime": "localDateTime",
                        "registerTime": "localDateTime"
                    },
                    "deviceProperties" : {
                        "createUpdateList" : [
                            {
                                "key" : "string",
                                "value" : "string",
                                "modifyTime": "localDateTime",
                                "registerTime": "localDateTime"
                            }
                        ]
                    }
                }
            ],
            "page": {
                "size": "long",
                "totalElements": "long",
                "totalPages": "long",
                "number": "long"
            }
        }
    }
    
    項目タイプ説明
    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": {
            "content": [
                {
                    "device" : {
                        "name": "bulb",
                        "description": "small bulb",
                        "modifyTime": "2019-04-24 19:23:14",
                        "registerTime": "2019-04-24 19:23:14"
                    },
                    "deviceProperties" : {
                        "createUpdateList" : [
                            {
                                "key" : "location",
                                "value" : "living_room",
                                "modifyTime": "2019-04-24 19:23:14",
                                "registerTime": "2019-04-24 19:23:14"
                            },
                            {
                                "key" : "price",
                                "value" : "10",
                                "modifyTime": "2019-04-24 19:23:14",
                                "registerTime": "2019-04-24 19:23:14"
                            }
                        ]
                    }
                }
            ],
            "page": {
                "size": 10,
                "totalElements": 1,
                "totalPages": 1,
                "number": 0
            }
        }
    }
    

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

    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.