华为乾坤-修改设备:响应示例

时间:2025-05-12 15:32:36

响应示例

返回状态码为200:修改设备基本信息成功,响应体参考ModifyDeviceBean。

HTTP/1.1 200 OK
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
	"errcode" : "0",
	"errmsg" : "",
	"data" : {
		"id" : "00000000-0000-0000-0000-000000000001",
		"name" : "AR1",
		"description" : "AR",
		"resourceId" : "HUAWEI",
		"siteId" : "00000000-0000-0000-0000-000000000001",
		"esn" : "2102351BTJ0000000666",
		"tags" : ["AP01"],
		"systemIp" : "192.168.1.1",
		"ztpConfirm" : true,
		"role" : ["Gateway"]
	}
}

返回状态码为400:创建失败,错误请求。

HTTP/1.1 400 Bad Request
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive

返回状态码为500:创建失败,内部服务器错误。

HTTP/1.1 500 Internal Server Error
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
support.huaweicloud.com/qiankuncmn-qiankuncs/toctopics/zh-cn_topic_0000002163880605.html