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

时间:2025-02-17 11:37:34

响应示例

返回状态码为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",
			"framename" : "Eudemon1000E-N6",
			"frameno" : 1,
			"slotdn" : "047f72d1-7ad3-11e9-b906-000c29b01448,FR=1,S=1",
			"slotindex" : 67371017,
			"slotno" : 1,
			"vendortype" : ".1.3.6.1.4.1.2011.20021210.12.16719978",
			"descr" : "--",
			"slotname" : "2XG8GE",
			"physicalclass" : 9,
			"adminstatus" : 4,
			"operstatus" : 3,
			"standbystatus" : 1,
			"hardversion" : "VER.A",
			"firmversion" : "221 Nov 28 2017 17:23:17",
			"softversion" : "V500R001C80SPC100",
			"serialnum" : "210235G7FW0123456789",
			"mfgname" : "Huawei",
			"modelname" : "huawei",
			"alarmlight" : "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_0000001231855271.html