NSX-T Data Center REST API
Create or update a project ip allocation
If a Project IP Address Allocation is absent, create a new one.If it already exists, replace the Project IP Address Allocation instance with the new object.
This API is only available when using VMware NSX.
Request:
Method:
PUT
URI Path(s):
/policy/api/v1/orgs/{org-id}/projects/{project-id}/ip-address-allocations/{ip-address-allocation-id}
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
ProjectIpAddressAllocation+
Example Request:
PUT https://<policy-mgr>/policy/api/v1/orgs/default/projects/project-1/ip-address-allocations/ip-3 { "ip_block": "/infra/ip-blocks/public", "allocation_ips": "192.168.0.6" }Successful Response:
Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
ProjectIpAddressAllocation+