华为乾坤-修改指定交换机的子网配置:请求示例

时间:2025-05-12 15:31:23

请求示例

HTTP的示例
PUT /controller/campus/v1/networkservice/networkconfig/net/lswsubnet/devices/fbb684c8-0d37-496f-bafa-4b06d5151e2e/subnet HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-AC CES S-TOKEN: x-yyyyyy
{
	"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"
}
support.huaweicloud.com/qiankuncmn-qiankuncs/toctopics/zh-cn_topic_0000001852160532.html