Changed2
[{"label":"Latest (v37.1)","version":"latest"},{"version":"v37.0"},{"version":"v36.3"},{"version":"v36.2"},{"version":"v36.1"},{"version":"v36.0"},{"link":"https://developer.vmware.com/apis/1046/vmware-cloud-director","version":"v35.0"}]
vmware-cloud-director

Allocate

Description

Allocate floating IP addresses or IP Prefix blocks from an IP Space. This results in reserving the IP address or IP Prefix block for the specified organization. The organization can then use the IP address for network services such as NAT or use the IP Prefix as the network CIDR definition during Org VDC network creation.

Request

Request

URL

URL


post
https://{api_host}/cloudapi/1.0.0/ipSpaces/{ipSpaceId}/allocate
Copy

Path Parameters

Path Parameters

string
ipSpaceId Required

Request Body

Request Body

IpSpaceIpAllocationRequest of type(s) application/json Required
{
	"quantity": 0,
	"type": "string"
}
integer
quantity Required

Number of IP addresses or IP Prefix blocks to allocate.


string
type Required

The type of the IP allocation requested. Possible values are:

  • FLOATING_IP - For allocation of floating IP addresses from defined IP Space ranges.
  • IP_PREFIX - For allocation of IP prefix sequences from defined IP Space prefixes.


integer
prefixLength Optional

The prefix length of an IP Prefix to allocate. This is required if type is IP_PREFIX.

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

202 Accepted

The request have been accepted and the task to monitor the request is in the Location header.

No error details were provided in the OpenAPI specification.

Code Samples

Code Samples

cURL Command

curl -X POST -H "Content-Type: application/json" -d '{"prefixLength":0,"quantity":0,"type":"string"}' https://{api_host}/cloudapi/1.0.0/ipSpaces/{ipSpaceId}/allocate


[{"label":"Latest (v37.1)","version":"latest"},{"version":"v37.0"},{"version":"v36.3"},{"version":"v36.2"},{"version":"v36.1"},{"version":"v36.0"},{"link":"https://developer.vmware.com/apis/1046/vmware-cloud-director","version":"v35.0"}]
vmware-cloud-director
What's changed in v37.1?
INTRODUCED
New in this version
Availability
Added in 37.1
IP Spaces Operations
Feedback

Was this page helpful?