NSX-T Data Center REST API

Create or update a VPC ip allocation

Create a VPC ip allocation if it does not exist

Request:

Method:
PUT
URI Path(s):
/policy/api/v1/orgs/{org-id}/projects/{project-id}/vpcs/{vpc-id}/ip-address-allocations/{ip-address-allocation-id}
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
VpcIpAddressAllocation+

Example Request:

PUT https://<policy-mgr>/policy/api/v1/orgs/org-1/projects/project-1/vpcs/vpc-2/ip-address-allocations/ip-3 { "ip_address_block_visibility": "EXTERNAL", "allocation_ip": "192.168.0.6" }

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
VpcIpAddressAllocation+

Example Response:

{ "ip_address_type": "IPV4", "ip_address_block_visibility": "EXTERNAL", "allocation_ip": "192.168.0.6", "resource_type": "VpcIpAddressAllocation", "id": "ip-3", "display_name": "ip-3", "path": "/orgs/default/projects/project-1/vpcs/vpc-2/ip-address-allocations/ip-3", "relative_path": "ip-3", "parent_path": "/orgs/default/projects/project-1/vpcs/vpc-2", "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: