华为乾坤-创建LSWOspf:响应示例

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

响应示例

返回状态码为200:LswOspfInfo Information

HTTP/1.1 200 OK
Date: Sun,16 Feb 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
	"data" : {
		"routerId" : "10.0.0.1",
		"processUUID" : "",
		"processId" : "auto",
		"opaqueLsa" : "",
		"gracefulRestart" : "",
		"staticProtocol" : {
			"enable" : true,
			"cost" : "1"
		},
		"directProtocol" : {
			"enable" : true,
			"cost" : "1"
		},
		"bgpProtocol" : {
			"enable" : true,
			"cost" : "1"
		},
		"bandwidthReference" : "23",
		"preference" : "10",
		"silentInterfaceList" : {
			"all" : true,
			"interfaceNameList" : [
				 ""
			]
		}
	},
	"errcode" : "0",
	"errmsg" : ""
}

返回状态码为400:Error response

HTTP/1.1 400 Bad Request
Date: Sun,16 Feb 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
	"errorCode" : "",
	"errorMsg" : ""
}
support.huaweicloud.com/qiankuncmn-qiankuncs/toctopics/zh-cn_topic_0000001898439277.html