가상 디바이스 수정
    • PDF

    가상 디바이스 수정

    • PDF

    Article Summary

    개요

    가상 디바이스를 수정합니다.

    요청

    요청 URL

    PUT {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가상 디바이스 이름

    요청 바디

    {
    	"device" : {
            "description": "string"
        },
    	"deviceProperties":{
    		"createUpdateList" : [
                {
                    "key": "string",
                    "value": "string"
                }
    		]
    	}
    }
    
    항목필수 여부타입제약 사항설명
    device.descriptionYesstring128자 이내가상 디바이스 설명
    deviceProperties.createUpdateList[].keyYesstring128자 이내의 영대소문자, 숫자, -, _만 허용- 가상 디바이스 속성 Key
    동일한 Key를 찾아 정보를 수정
    기존 저장되어 있는 Key가 요청 바디에 없을 경우 삭제됨
    deviceProperties.createUpdateList[].valueNostring512자 이내의 영대소문자, 숫자, -, _만 허용가상 디바이스 속성 Value

    응답

    응답 바디

    {
        "status": "string",
        "body": {
            "device": {
                "name": "string",
                "description": "string",
                "modifyTime": "localDateTime",
                "registerTime": "localDateTime"
            },
            "deviceProperties": {
                "createUpdateList": [
                    {
                        "key": "string",
                        "value": "string",
                        "modifyTime": "localDateTime",
                        "registerTime": "localDateTime"
                    }
                ]
            }
        }
    }
    
    항목타입설명
    statusstring응답 성공 여부
    body.device.namestring가상 디바이스 이름
    body.device.descriptionstring가상 디바이스 설명
    body.device.modifyTimelocalDateTime가상 디바이스 수정날짜
    body.device.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.