This API is used to query the IP address usage on a specified network.
The obtained information includes the total number of IP addresses on the network, the number of in-use IP addresses on the network, the total number of IP addresses on each subnet, and the number of in-use IP addresses on the subnet.
Name |
Type |
Description |
|---|---|---|
network_ip_availability |
network_ip_availability object |
Specifies the network_ip_availability objects. For details, see Table 3. |
Name |
Type |
Description |
|---|---|---|
network_id |
String |
Specifies the network ID. |
network_name |
String |
Specifies the network name. |
tenant_id |
String |
Specifies the project ID. |
total_ips |
Integer |
Specifies the total number of IP addresses on a network. (System reserved IP addresses are not included.) |
used_ips |
Integer |
Specifies the number of in-use IP addresses on a network. (Reserved IP addresses are not included.) |
subnet_ip_availability |
Array of subnet_ip_availability objects |
Specifies the subnet IP address usage objects. For details, see Table 4. |
Parameter |
Type |
Description |
|---|---|---|
used_ips |
Integer |
Specifies the number of in-use IP addresses on a subnet. (System reserved IP addresses are not included.) |
subnet_id |
String |
Specifies the subnet ID. If you use the management console, the value of this parameter is the Network ID value. |
subnet_name |
String |
Specifies the subnet name. |
ip_version |
Integer |
Specifies the IP version of the subnet. Only IPv4 is supported. |
cidr |
String |
Specifies the subnet CIDR block. |
total_ips |
Integer |
Specifies the total number of IP addresses on a subnet. (System reserved IP addresses are not included.) |
{
"network_ip_availability": {
"used_ips": 4,
"subnet_ip_availability": [
{
"used_ips": 4,
"subnet_id": "98e343d1-3cb8-4f69-9cd1-00569819480f",
"subnet_name": "",
"ip_version": 4,
"cidr": "10.0.0.0/8",
"total_ips": 300
}
],
"network_id": "6b50d967-779c-40c9-a157-de1df3c17043",
"tenant_id": "7c4b23cb125d481c95cbe4f91b2c11cd",
"total_ips": 300,
"network_name": "pch_test_003"
}
}
See Status Codes.
See Error Codes.