华为乾坤-查询LANWAN互联OSPF邻居信息:响应示例

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

响应示例

返回状态码为200:查询成功返回。

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" : {
		"linkId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e",
		"neighborInfo" : {
			"areaId" : 10,
			"areaType" : "normal",
			"helloTimer" : 1,
			"timerPoll" : 1,
			"timerDead" : 1,
			"timerRetransmit" : 1,
			"authenticationInfo" : {
				"authMode" : "cryptographic",
				"algorithm" : "hmac-sha256",
				"key" : 1,
				"pwd" : "abc"
			},
			"coreInterfaceInfo" : {
				"interfaceName" : "vlanif20",
				"subnetId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e",
				"cost" : 1,
				"drPriority" : 1,
				"mtuEnable" : false,
				"networkType" : "broadcast"
			},
			"gatewayInterfaceInfo" : {
				"interfaceName" : "vlanif20",
				"subnetId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e",
				"cost" : 1,
				"drPriority" : 1,
				"mtuEnable" : false,
				"networkType" : "broadcast"
			}
		},
		"coreProcessId" : 10,
		"gatewayProcessId" : 10,
		"gatewayRouterId" : "192.168.1.1",
		"coreOspfIntfs" : [
			{
				"processId" : 10,
				"routerId" : "192.168.1.1",
				"configSource" : "LANWAN",
				"OspfIntfInfo" : {
					"interfaceName" : "vlanif20",
					"subnetId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e",
					"cost" : 1,
					"drPriority" : 1,
					"mtuEnable" : false,
					"networkType" : "broadcast",
					"authMode" : "cryptographic",
					"algorithm" : "hmac-sha256",
					"key" : 1,
					"pwd" : "abc",
					"linkId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e",
					"linkName" : "ConnectLink",
					"areaId" : 10,
					"helloTimer" : 1,
					"areaType" : "normal",
					"timerPoll" : 1,
					"timerRetransmit" : 1,
					"timerDead" : 1
				}
			}
		],
		"gatewayOspfIntfs" : [
			{
				"processId" : 10,
				"routerId" : "192.168.1.1",
				"configSource" : "LANWAN",
				"OspfIntfInfo" : {
					"interfaceName" : "vlanif20",
					"subnetId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e",
					"cost" : 1,
					"drPriority" : 1,
					"mtuEnable" : false,
					"networkType" : "broadcast",
					"authMode" : "cryptographic",
					"algorithm" : "hmac-sha256",
					"key" : 1,
					"pwd" : "abc",
					"linkId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e",
					"linkName" : "ConnectLink",
					"areaId" : 10,
					"helloTimer" : 1,
					"areaType" : "normal",
					"timerPoll" : 1,
					"timerRetransmit" : 1,
					"timerDead" : 1
				}
			}
		]
	},
	"OspfInterfaceList" : [
		{
			"deviceId" : "6ef14414-99d7-4062-9de5-1183dbd87f27",
			"deviceName" : "Device",
			"deviceType" : "Core",
			"processId" : 10,
			"routerId" : "192.168.1.1",
			"configSource" : "LANWAN",
			"OspfIntfInfo" : {
				"interfaceName" : "vlanif20",
				"subnetId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e",
				"cost" : 1,
				"drPriority" : 1,
				"mtuEnable" : false,
				"networkType" : "broadcast",
				"authMode" : "cryptographic",
				"algorithm" : "hmac-sha256",
				"key" : 1,
				"pwd" : "abc",
				"linkId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e",
				"linkName" : "ConnectLink",
				"areaId" : 10,
				"helloTimer" : 1,
				"areaType" : "normal",
				"timerPoll" : 1,
				"timerRetransmit" : 1,
				"timerDead" : 1
			}
		}
	]
}

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