Retrieve all VPC Prefixes
Retrieve all VPC Prefixes for the org
Org must have a Tenant entity. User must have authorization role with TENANT_ADMIN suffix.
Authentication
AuthorizationBearer
```
export JWT_BEARER_TOKEN="<jwt-bearer-token>"
# Example org name: "acme-inc
export ORG_NAME=<org-name>
# Use the JWT bearer token in your API request auth header:
curl -v -X GET -H "Content-Type: application/json" -H "Authorization: Bearer $JWT_BEARER_TOKEN" https://nico-rest-api.nico.svc.cluster.local/v2/org/$ORG_NAME/nico/user/current
```
Path parameters
org
Name of the Org
Query parameters
siteId
Filter VPC Prefixes by Site, required if the vpcId query parameter is not specified
vpcId
Filter VPC Prefixes by VPC
status
Filter VPC Prefixes by Status
query
Search for matches across all VPC Prefixes. Input will be matched against name and status fields
includeRelation
Related entity to expand
Allowed values:
includeUsageStats
When true, each VPC Prefix object includes usage statistics using the same structure as IP Block usage. Prefix and IP usage data is derived by evaluating associated Ethernet interfaces. Each Interface associated with a VPC Prefix consumes a /31 prefix.
pageNumber
Page number for pagination query
pageSize
Page size for pagination query
orderBy
Ordering for pagination query
Response headers
X-Pagination
Pagination result in JSON format
Response
OK
id
Unique UUID v4 identifier for the VPCPrefix
name
Name of the VPC Prefix
siteId
ID of the Site the VPC Prefix belongs to
vpcId
ID of the VPC the VPC Prefix belongs to
ipBlockId
ID of the IP Block that contains the prefix of the VPC Prefix
prefix
The network prefix including prefix length in CIDR notation
prefixLength
Length of the prefix. Valid range is 8 to 31, and max usable value depends on prefix length of parent IP Block.
status
Status of the VPC Prefix
usageStats
Present when query parameter includeUsageStats=true. Prefix and IP usage data is derived by evaluating associated Ethernet interfaces. Each Interface associated with a VPC Prefix consumes a /31 prefix.
statusHistory
Details of 20 most recent status changes
created
Date and time when the VPC Prefix was created
updated
Date and time when the VPC Prefix was updated
Errors
403
Forbidden Error