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

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

响应示例

返回状态码为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" : "047f72d1-7ad3-11e9-b906-000c29b01448",
			"neName" : "FW_B",
			"frameDN" : "047f72d1-7ad3-11e9-b906-000c29b01448,FR=1",
			"shelfIndex" : -1,
			"frameIndex" : 67108867,
			"frameNo" : 1,
			"vendorType" : ".1.3.6.1.4.1.2011.20021210.11.16715812",
			"mfgName" : "Huawei",
			"serialNum" : "020LKTD0A9000233",
			"physicalClass" : 3,
			"descr" : "Eudemon1000E-N6",
			"frameName" : "Eudemon1000E-N6",
			"adminStatus" : 4,
			"operStatus" : 3,
			"standBystatus" : 1,
			"softVersion" : "V500R001C80SPC100"
		}
	],
	"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_0000001231975343.html