华为乾坤-配置业务:示例:修改指定pool1的DHCP地址池

时间:2025-02-17 11:38:43

示例:修改指定pool1的DHCP地址池

URI: /restconf/v2/data/huawei-ac-nes-device:nes/ne/{ neId }/huawei-nce-e-dhcpv4:global-ip-pool/ pool1

Table1 path参数列表

参数名称

必选

类型

参数值域

默认值

参数说明

参数示例

id

string

36个字节。满足正则表达[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}。

-

设备ID。

"00000000-0000-0000-0000-000000000000"

ip-pool-name

string

1~128个字节。

-

Key,名称。

"pool1"

HTTP的示例

PUT /restconf/v2/data/huawei-ac-nes-device:nes/ne/00000000-0000-0000-0000-000000000000/huawei-nce-e-dhcpv4:global-ip-pool/pool1 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
{
"huawei-nce-e-dhcpv4:global-ip-pool" : [
{
"config-status" : "configured-database-success",
"last-committed-time" : "2022-01-01 00:00:00",
"related-pkg-version" : "1.0.1",
"edit-state" : "RUNNING",
"gateway-list" : [
{
"gateway-ip" : "192.168.1.1",
"mask" : 24
}
],
"section" : [
{
"section-index" : 1,
"start-ip" : "192.168.10.1",
"end-ip" : "192.168.10.100"
}
],
"dns-list" : [
{
"dns-ip" : "192.168.100.1"
}
],
"excluded-ip-address" : [
{
"start-ip-address" : "192.168.10.10",
"end-ip-address" : "192.168.10.120"
}
],
"static-bind" : [
{
"static-bind-ip" : "192.168.100.1",
"static-bind-mac" : "01-01-01-01-01-01"
}
],
"option" : [
{
"option-code" : 7,
"ip-addresses" : [
u'"192.168.1.1"'
] ,
"ascii-string" : "test",
"hex-string" : "00",
"cipher-string" : "Example@123",
"sub-options" : {
"sub-option" : [
{
"sub-option-code" : 1,
"ascii-string" : "test"
}
]
}
}
],
"ip-pool-name" : "pool1",
"vpn-instance" : "overlay_vpn",
"network-ipv4-address" : "192.168.10.1",
"network-mask" : 24,
"domain-name" : "test.com"
}
]
}
support.huaweicloud.com/qiankuncmn-qiankuncs/toctopics/zh-cn_topic_0000002123968978.html