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+

Example Response:

{ "resource_type": "ProjectIpAddressAllocation", "id": "ip-3", "display_name": "ip-3", "ip_block": "/infra/ip-blocks/public", "allocation_ips": "192.168.0.6" "path": "/orgs/default/projects/project-1/ip-address-allocations/ip-3", "relative_path": "ip-3", "parent_path": "/orgs/default/projects/project-1", "remote_path": "", "unique_id": "c359c597-1039-4288-beb7-0a189b0af43b", "realization_id": "c359c597-1039-4288-beb7-0a189b0af43b", "owner_id": "be6c9296-48cb-4f6f-a80d-c3c68d95c4e1", "origin_site_id": "be6c9296-48cb-4f6f-a80d-c3c68d95c4e1", "marked_for_delete": false, "overridden": false, "_system_owned": false, "_create_time": 1663679649081, "_create_user": "admin", "_last_modified_time": 1663679649081, "_last_modified_user": "admin", "_protection": "NOT_PROTECTED", "_revision": 0 }

Required Permissions:

crud

Feature:

policy_ipam

Additional Errors: