NSX-T Data Center REST API

List VPC Subnet ip allocations

List all the ip allocations for a VPC Subnet.

Request:

Method:
GET
URI Path(s):
/policy/api/v1/orgs/{org-id}/projects/{project-id}/vpcs/{vpc-id}/subnets/{subnet-id}/ip-pools/{ip-pool-id}/ip-allocations
Request Headers:
n/a
Query Parameters:
PolicyListRequestParameters+
Request Body:
n/a

Example Request:

GET https://<policy-mgr>/policy/api/v1/orgs/org-1/projects/project-1/vpcs/subnets/subnet-1/ip-pools/pool-1/ip-allocations

Successful Response:

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

Example Response:

{ "result_count": 2, "results": [ { "resource_type": "IpAddressAllocation", "id": "ipallocation-1", "display_name": "ip-1-allocation", "path": "/orgs/org-1/projects/project-1/vpcs/vpc-1/subnets/subnet-1/ip-pools/pool-1/ip-allocations/ipallocation-1", "relative_path": "ip-1-allocation", "parent_path": "/orgs/org-1/projects/project-1/vpcs/vpc-1/subnets/subnet-1/ip-pools/pool-1", "marked_for_delete": false, "allocation_ip": "10.0.0.5" "_create_user": "admin", "_create_time": 1543966814544, "_last_modified_user": "admin", "_last_modified_time": 1543966814544, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 0 }, { "resource_type": "IpAddressAllocation", "id": "ipallocation-2", "display_name": "ip-2-allocation", "path": "/orgs/org-1/projects/project-1/vpcs/vpc-1/subnets/subnet-1/ip-pools/pool-1/ip-allocations/ipallocation-2", "relative_path": "ip-2-allocation", "parent_path": "/orgs/org-1/projects/project-1/vpcs/vpc-1/subnets/subnet-1/ip-pools/pool-1", "marked_for_delete": false, "allocation_ip": "10.0.0.6" "_create_user": "admin", "_create_time": 1543966814545, "_last_modified_user": "admin", "_last_modified_time": 1543966814544, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 0 } ] }

Required Permissions:

read

Feature:

policy_ipam

Additional Errors: