Create Dhcp Ip Pool
Create an ip pool for a local DHCP server
Please use Policy API:
PUT /policy/api/v1/infra/segments/{segment-id}
{
"display_name" : "segment-1",
"subnets": [
{
"gateway_address": "40.1.1.1/16",
"dhcp_ranges": [
"40.1.2.2-40.1.2.20"
],
"dhcp_config": {
"resource_type": "SegmentDhcpV4Config",
"lease_time": 84600
},
"network": "40.1.2.0/24"
}
],
"dhcp_config_path" : "/infra/dhcp-server-configs/dhcp-server-profile",
"connectivity_path": "/infra/tier-1s/mgw",
"_revision" : 0
}
server-id
{
"_links": [
{
"action": "string",
"href": "string",
"rel": "string"
}
],
"_schema": "string",
"_self": {},
"_revision": 0,
"_create_time": 0,
"_create_user": "string",
"_last_modified_time": 0,
"_last_modified_user": "string",
"_protection": "string",
"_system_owned": false,
"description": "string",
"display_name": "string",
"id": "string",
"resource_type": "string",
"tags": [
{
"scope": "string",
"tag": "string"
}
],
"gateway_ip": "string",
"lease_time": 0,
"options": {
"option121": {
"static_routes": [
{
"network": "string",
"next_hop": "string"
}
]
},
"others": [
{
"code": 0,
"values": [
"string"
]
}
]
},
"allocation_ranges": [
{
"_links": [
{
"action": "string",
"href": "string",
"rel": "string"
}
],
"_schema": "string",
"_self": {},
"end": "string",
"start": "string"
}
],
"error_threshold": 0,
"warning_threshold": 0
}
Created
"DhcpIpPool Object"
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"allocation_ranges":[{}]}' https://{api_host}/api/v1/dhcp/servers/{server-id}/ip-pools