华为乾坤-配置业务:示例:修改指定ip-pool-name为pool1和section-index为1的section
示例:修改指定ip-pool-name为pool1和section-index为1的section
URI: /restconf/v2/data/huawei-ac-nes-device:nes/ne/{ neId }/huawei-nce-e-dhcpv4:global-ip-pool/ pool1/1
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" |
section-index |
是 |
int64 |
[0-255] |
- |
Key,序号。 |
1 |
HTTP的示例
PUT /restconf/v2/data/huawei-ac-nes-device:nes/ne/00000000-0000-0000-0000-000000000000/huawei-nce-e-dhcpv4:global-ip-pool/pool1/1 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:section" : [ { "section-index" : 1, "start-ip" : "192.168.10.1", "end-ip" : "192.168.10.100 } ] }