Resource Center/Network Resource/L3 Network Operations
GETL3 Network OperationsSince 0.6SynchronousAuth Required
GetFreeIp
GetFreeIp
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Query Parameters
Request Inputs
Query Parameters
l3NetworkUuidStringOptional. The L3 network UUID.Note: Make sure that at least one of l3NetworkUuid and ipRangeUuid is not null.
ipRangeUuidStringOptional. The IP range UUID.Note: Make sure that at least one of l3NetworkUuid and ipRangeUuid is not null.
startStringThe start value.
ipRangeTypeStringOptional. The IP range type.
ipVersionIntegerOptional. The IP version.
Responses
Endpoint
GET/zstack/v1/l3-networks/ip/free
/zstack/v1/l3-networks/ip/free
Request Example
curl -X GET 'http://{host}/zstack/v1/l3-networks/ip/free?l3NetworkUuid=<l3NetworkUuid>&ipRangeUuid=<ipRangeUuid>&start=<start>&ipRangeType=<ipRangeType>&ipVersion=1&limit=1&systemTags=<systemTags>&userTags=<userTags>' -H 'Authorization: OAuth {sessionUuid}'
Response Example
200{ "inventories": [ { "ipRangeUuid": "662d600a4b644f98a0c49df2e5430d69", "ip": "10.20.10.5", "netmask": "255.255.255.0", "gateway": "10.20.10.1" }, { "ipRangeUuid": "662d600a4b644f98a0c49df2e5430d69", "ip": "10.20.10.6", "netmask": "255.255.255.0", "gateway": "10.20.10.1" }, { "ipRangeUuid": "662d600a4b644f98a0c49df2e5430d69", "ip": "10.20.10.10", "netmask": "255.255.255.0", "gateway": "10.20.10.1" } ] }Change History
This API has no change history records yet.
