This API call enables administrators to create an IPv6 DHCP subnet within a specified cluster. It defines the subnet's prefix, address pools, prefix delegation ranges, and DHCP server assignment. It ensures efficient address allocation and supports hierarchical prefix delegation for optimized IPv6 network management..
Method: POST
https://{appconsole_IP}:{9443}/api/dhcp/subnet_data/
The following headers must be included in the API request for successful authentication and data submission:
Authorization: DDI Central's OAuth implementation uses the Bearer authentication scheme. Hence, while making API calls, access_token obtained via the OAuth 2.0 Client Credentials Grant must be included in the Authorization header of API requests. This token verifies the client’s identity and ensures appropriate permissions for accessing resources.
The Authorization Header follows the format below:
headers = { "Authorization": "Bearer {bearer_tk}" }
Content-Type: Required in the header to indicate the media type of the resource being sent. It helps the server at the receiving end understand how to process the transmitted request body.
The Content-Type Header follows the format below:
headers ={ "Content-Type": "application/json" }
"linux"."2607:f0d0:1002:0054::0".64 (equivalent to subnet mask ffff:ffff:ffff:ffff::/64)."dataset"."192.168.122.1"."fail2".start: First IP in the range.end: Last IP in the range.[{"start": "2607:f0d0:1002:0054::100", "end": "2607:f0d0:1002:0054::1fff"}].start: First address in the delegated prefix range.end: Last address in the delegated prefix range.prefix: Length of the prefix being delegated.[{"start": "2607:f0d0:1002:0054:1234::", "end": "2607:f0d0:1002:0054:ffff::", "prefix": 96}].
* - Mandatory parameter.
Copied
{
"cluster_name": "linux",
"network_address": "2607:f0d0:1002:0054::0",
"prefix": 64,
"description": "dataset",
"dhcp_server_address": "192.168.56.1",
"dhcp_type": "dhcpd6",
"pool_data": [
{
"start": "2607:f0d0:1002:0054::100",
"end": "2607:f0d0:1002:0054::1fff"
}
],
"prefix6_range": [
{
"start": "2607:f0d0:1002:0054:1234::",
"end": "2607:f0d0:1002:0054:ffff::",
"prefix": 96
},
{
"start": "2607:f0d0:1002:0054:2000::",
"end": "2607:f0d0:1002:0054:2fff::",
"prefix": 96
}
]
}
{
"id": 5995,
"network_address": "2001:da8:87b9::",
"dhcp_type": "dhcpd6",
"prefix": 64,
"lease_duration": "8.00:00:00",
"cluster_name": "chennai2",
"dhcp_server_address": "10.16.58.32",
"pool_data": [
{
"start": "2001:da8:87b9::6001",
"end": "2001:da8:87b9::8001"
}
],
"prefix6_range": [
{
"start": "2001:da8:87b9::4001",
"end": "2001:da8:87b9::5002",
"prefix": 96
},
{
"start": "2001:da8:87b9::2001",
"end": "2001:da8:87b9::3002",
"prefix": 96
}
]
}