Update Dhcp Server
Update a logical DHCP server with new configurations.
Please use Policy API:
PUT /policy/api/v1/infra/tier-0s/{tier-0-id}
PUT /policy/api/v1/infra/tier-1s/{tier-1-id}
{
"dhcp_config_path" : "/infra/dhcp-server-configs/dhcp-server-profile",
"_revision" : 0
}
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"
}
],
"attached_logical_port_id": "string",
"dhcp_profile_id": "string",
"ipv4_dhcp_server": {
"dhcp_server_ip": "string",
"dns_nameservers": [
"string"
],
"domain_name": "string",
"gateway_ip": "string",
"monitor_ippool_usage": false,
"options": {
"option121": {
"static_routes": [
{
"network": "string",
"next_hop": "string"
}
]
},
"others": [
{
"code": 0,
"values": [
"string"
]
}
]
}
},
"ipv6_dhcp_server": {
"dhcp_server_ip": "string",
"dns_nameservers": [
"string"
],
"domain_names": [
"string"
],
"server_id": "string",
"sntp_servers": [
"string"
]
}
}
OK
"LogicalDhcpServer Object"
curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"dhcp_profile_id:"string"}' https://{api_host}/api/v1/dhcp/servers/{server-id}