华为乾坤-获取设备IP资源信息列表:响应示例

时间:2025-05-12 15:31:49

响应示例

返回状态码为200:响应对象,接口返回体参考GetIpListResponseVo。

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" : "",
	"pageVo" : {
		"pageIndex" : 1,
		"pageSize" : 20,
		"totalRecords" : 1
	},
	"ipItems" : [
		{
			"siteId" : "d235353a-1284-4aad-9f35-18af543fcf5b",
			"siteName" : "s74",
			"deviceName" : "AR8140-74",
			"deviceId" : "6a650c65-b5d7-482f-811a-18efbbde48b6",
			"linkName" : "GigabitEthernet0/0/3",
			"vrf" : "underlay_2",
			"vpnName" : "vpn1",
			"ipAddress" : "10.1.1.1",
			"ipv6Address" : "10::1",
			"usage" : "UNDERLAY"
		}
	]
}

返回状态码为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_0000002128678874.html