NSX-T Data Center REST API

Get VPC Subnet ip allocation by ID

Get detail information on VPC Subnet ip allocation by giving ID.

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/{ip-allocation-id}
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
n/a

Example Request:

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

Successful Response:

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

Example Response:

{ "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 }

Required Permissions:

read

Feature:

policy_ipam

Additional Errors: