NSX-T Data Center REST API

List Project ip allocations

List all the ip allocations for a Project.
This API is only available when using VMware NSX.

Request:

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

Example Request:

GET https://<policy-mgr>/policy/api/v1/orgs/org-1/projects/project-1/ip-address-allocations

Successful Response:

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

Example Response:

{ "results": [ { "ip_block": "/infra/ip-blocks/public", "allocation_ips": "192.168.0.6", "resource_type": "ProjectIpAddressAllocation", "id": "ip-1", "display_name": "ip-1", "path": "/orgs/default/projects/project-1/ip-address-allocations/ip-1", "relative_path": "ip-1", "parent_path": "/orgs/default/projects/project-1", "remote_path": "", "unique_id": "3d1aa8b5-9893-4892-8eec-004a6778df47", "realization_id": "3d1aa8b5-9893-4892-8eec-004a6778df47", "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": 1663664251128, "_create_user": "admin", "_last_modified_time": 1663664251128, "_last_modified_user": "admin", "_protection": "NOT_PROTECTED", "_revision": 0 } ], "result_count": 1, "sort_by": "display_name", "sort_ascending": true }

Required Permissions:

read

Feature:

policy_ipam

Additional Errors: