华为乾坤-查询指定交换机的子网配置:响应示例

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

响应示例

返回状态码为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" : {
		"pageIndex" : 1,
		"pageSize" : 20,
		"totalRecords" : 10,
		"subnetList" : [
			{
				"name" : "subnet1",
				"vlanId" : 100,
				"ipv4poolOrNot" : 0,
				"ipAddress" : "192.168.12.12",
				"maskAddress" : 24,
				"subIpList" : [
					{
						"subIpAddress" : "192.168.13.13",
						"subMaskAddress" : 24
					}
				],
				"arpEnable" : false,
				"mtu" : 1500,
				"dhcpEnable" : true,
				"icmpRedirectSendEnable" : true,
				"dhcpConfig" : {
					"dhcpMode" : "server",
					"relayServerIps" : [
						 "10.122.12.1"
					],
					"dhcpServerConfig" : {
						"dnsConfig" : {
							"dnsServerMode" : "custom",
							"priorDnsServer" : "10.15.15.15",
							"standbyDnsServer" : "10.15.15.16"
						},
						"domainSuffix" : "com",
						"manegeNetworkEnable" : true,
						"exceptFitAp" : "CloudAP",
						"option148" : false,
						"acAddressType" : "IP",
						"option43" : false,
						"wacAddress" : [
							 "10.122.12.1"
						],
						"dhcpServerLogging" : false,
						"dhcpServerOptions" : [
							{
								"code" : 26,
								"subCode" : 5,
								"optionType" : "hex",
								"optionValue" : "2e"
							}
						],
						"leasesConfig" : {
							"unlimit" : false,
							"day" : 1,
							"hour" : 0,
							"minute" : 0
						},
						"excludedAddresses" : [
							{
								"startIpAddress" : "192.168.12.13",
								"endIpAddress" : "192.168.12.13"
							}
						],
						"fixIpEnable" : false,
						"fixedIpRange" : [
							{
								"startIpAddress" : "192.168.12.13",
								"endIpAddress" : "192.168.12.13"
							}
						],
						"staticBindings" : [
							{
								"staticIpAddress" : "192.168.12.14",
								"staticMacAddress" : "XX:XX:XX:XX:XX:XX"
							}
						]
					}
				},
				"id" : "30a51c112787470f81045d60ccf3995f"
			}
		]
	}
}

返回状态码为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
support.huaweicloud.com/qiankuncmn-qiankuncs/toctopics/zh-cn_topic_0000001898439429.html
提示

您即将访问非华为云网站,请注意账号财产安全