华为乾坤-删除Topology自定义策略:响应示例

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

响应示例

返回状态码为200:删除拓扑自定义策略成功。

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
{
	"errcode" : "0",
	"errmsg" : "",
	"customPolicys" : [
		{
			"id" : "00000000-0000-0000-0000-000000000000",
			"policyName" : "partialMeshPolicy",
			"priority" : 1,
			"rules" : [
				{
					"id" : "00000000-0000-0000-0000-000000000000",
					"matchCondition" : {
						"ipAddressPrefix" : {
							"prefixFilters" : [
								{
									"id" : "00000000-0000-0000-0000-000000000000",
									"ipv4Address" : "10.1.0.0",
									"maskLength" : 24,
									"greaterEqual" : 24,
									"lessEqual" : 24
								}
							],
							"ipv6PrefixFilters" : [
								{
									"id" : "00000000-0000-0000-0000-000000000000",
									"ipv6Address" : "fc00::",
									"maskLength" : 96,
									"greaterEqual" : 96,
									"lessEqual" : 96
								}
							]
						},
						"siteIds" : ["00000000-0000-0000-0000-000000000000","00000000-0000-0000-0000-000000000001"],
						"siteNames" : ["siteName1","siteName2"]
					},
					"applyAction" : {
						"siteSource" : "tenant",
						"nextHops" : [
							{
								"siteId" : "00000000-0000-0000-0000-000000000000",
								"siteName" : "Site Name",
								"preference" : 2
							}
						],
						"applyMode" : "additive",
						"mode" : "permit"
					}
				}
			],
			"applyToSites" : ["00000000-0000-0000-0000-000000000000","00000000-0000-0000-0000-000000000001"],
			"applyToSiteNames" : ["siteName1","siteName2"]
		}
	]
}

返回状态码为400:校验异常。

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

返回状态码为500:内部错误。

HTTP/1.1 500 Internal Server Error
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
support.huaweicloud.com/qiankuncmn-qiankuncs/toctopics/zh-cn_topic_0000001988433778.html