华为乾坤-在设备组中增加设备:请求示例

时间:2025-02-17 11:36:57

请求示例

cURL示例
curl -k -s -L -i -X PUT \
  https://{ip:port}/restconf/data/device-shell-group-northbound:device-shell-group/device-group/cccc \
  -H 'cache-control: no-cache' \
  -H 'content-type: application/json' \
  -H 'x-access-token: x-ntc9c745ryk9uohj7vpint3wsanwo9nvnuur4bg5ir08bt3woavsjvc46rurrx9djzfy84k8c988qqnw04ldjw5hlfuq6q5iqpsbqkvwc82rvx0bvxnsgbhg5doa7wg9' \
  -d '{
	"device-group": {
		"device-group-name": "cccc",
		"device-ids": [{
			"device-id": "8d394835-cb84-38f3-a4d5-16a7f2074b40"
		}]
	}
}'
HTTP示例
PUT /restconf/data/device-shell-group-northbound:device-shell-group/device-group/cccc HTTP/1.1
Host: {ip:port}
Content-Type: application/json
x-access-token: x-ntc9c745ryk9uohj7vpint3wsanwo9nvnuur4bg5ir08bt3woavsjvc46rurrx9djzfy84k8c988qqnw04ldjw5hlfuq6q5iqpsbqkvwc82rvx0bvxnsgbhg5doa7wg9
Cache-Control: no-cache
body:
{
	"device-group": {
		"device-group-name": "cccc",
		"device-ids": [{
			"device-id": "8d394835-cb84-38f3-a4d5-16a7f2074b40"
		}]
	}
}
support.huaweicloud.com/qiankuncmn-qiankuncs/toctopics/zh-cn_topic_0000002159168637.html