Retrieve all VPC peerings
Get all VPC peerings.
Tenant Admin can get all peerings where the tenant owns at least one VPC.
Provider Admin can get all peerings in a site.
User must have authorization role with TENANT_ADMIN or PROVIDER_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
Optional Site ID filter. If provided, caller must have access to the specified Site.
pageNumber
Page number for pagination query
pageSize
Page size for pagination query
orderBy
Ordering for pagination query
isMultiTenant
Optional filter by peering tenancy type (single-tenant or multi-tenant).
status
Optional filter by peering status. Repeat the parameter to match multiple statuses.
vpcId
Optional filter by VPC ID involved in the peering as either vpc1 or vpc2. Repeat the parameter to match multiple VPCs.
peerTenantId
Optional filter by tenant ID of a VPC involved in the peering. Repeat the parameter to match multiple tenants.
includeRelation
Related entity to expand
Allowed values:
Response headers
X-Pagination
Pagination result in JSON format
Response
OK
id
Unique identifier of the VPC peering
vpc1Id
ID of the first VPC in the peering
vpc1
Summary of the first VPC in the peering.
vpc2Id
ID of the second VPC in the peering
vpc2
Summary of the second VPC in the peering.
siteId
ID of the Site where the peering exists
site
Summary of the Site where the peering exists.
tenantId
ID of the tenant that created the VPC peering.
tenant
Summary of the tenant that created the VPC peering.
isMultiTenant
Indicates if this is a multi-tenant peering (VPCs from different tenants)
status
Status of the VPC peering
created
Date and time when the VPC peering was created
updated
Date and time when the VPC peering was last updated
Errors
400
Bad Request Error
403
Forbidden Error