dots.v2.vpc_nat_gateways.get()
Generated on 13 Nov 2026
from DoTs version
v1.24.0
Usage
client.v2.vpc_nat_gateways.get(requestConfiguration?: RequestConfiguration<Vpc_nat_gatewaysRequestBuilderGetQueryParameters>): Promise<undefined | Vpc_nat_gatewaysGetResponse>Description
To list all VPC NAT gateways in your team, send a GET request to /v2/vpc_nat_gateways.
The response body will be a JSON object with a key of vpc_nat_gateways containing an array of VPC NAT gateway objects.
These each contain the standard VPC NAT gateway attributes.
Parameters
perPageinteger optionalExample:
2Number of items returned per page
pageinteger optionalExample:
1Which 'page' of paginated results to return.
statestring optionalThe current state of the VPC NAT gateway.
regionstring optionalThe region where the VPC NAT gateway is located.
typestring optionalExample:
publicThe type of the VPC NAT gateway.
namestring optionalExample:
my-vpc-nat-gatewayThe name of the VPC NAT gateway.
Request Sample
Pagination
This method returns paginated results. The response includes a links.pages object with URLs for navigating between pages. To retrieve the next page, parse the next URL and pass the page query parameter:
let response = await client.v2.vpc_nat_gateways.get();
let pages = response?.links?.pages;
while (pages && "next" in pages && typeof pages.next === "string") {
const page = Number(new URL(pages.next).searchParams.get("page"));
response = await client.v2.vpc_nat_gateways.get({
queryParameters: {
page,
},
});
pages = response?.links?.pages;
}Response Example
More Information
See /v2/vpc_nat_gateways in the API reference for additional detail on responses, headers, parameters, and more.