华为乾坤-条件查询子卡资源:响应示例

时间:2025-02-17 11:38:12

响应示例

返回状态码为200:子卡资源查询成功。

HTTP/1.1 200 OK
Date: Tue,30 Oct 2018 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
	"code" : 0,
	"data" : [
		{
			"nedn" : "a4059c31-7ad3-11e9-b906-000c29b01448",
			"neName" : "AR1220-56",
			"framedn" : "a4059c31-7ad3-11e9-b906-000c29b01448,FR=0",
			"slotdn" : "a4059c31-7ad3-11e9-b906-000c29b01448,FR=0,S=0",
			"slotname" : "SRU Board 0",
			"subslotdn" : "a4059c31-7ad3-11e9-b906-000c29b01448,FR=0,S=0,SS=0",
			"frameno" : 0,
			"slotno" : 0,
			"subslotindex" : 16397,
			"subslotno" : 0,
			"descr" : "FAN Card",
			"subslotname" : "FAN Card 0/1",
			"vendortype" : ".1.3.6.1.4.1.2011.20021210.13.0",
			"physicalclass" : 9,
			"hardversion" : "VER.0",
			"firmversion" : "Hex:31 30 39",
			"softversion" : "0",
			"adminstatus" : 4,
			"operstatus" : 3,
			"modelname" : "--",
			"serialnum" : "030KSB10B3000060",
			"mfgname" : "Huawei"
		}
	],
	"description" : "查询成功。"
}

返回状态码为400:参数错误。

HTTP/1.1 400 Bad Request
Date: Tue,30 Oct 2018 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive

返回状态码为404:rest接口没找到。

HTTP/1.1 404 Not Found
Date: Tue,30 Oct 2018 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive

返回状态码为500:默认ServiceException异常码,应用内部错误。

HTTP/1.1 500 Internal Server Error
Date: Tue,30 Oct 2018 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_0000001186377168.html