pydo.vpcnatgateways.list()
Generated on 8 May 2026
from pydo version
v0.34.0
Usage
client.vpcnatgateways.list(
per_page=20,
page=1,
state=None,
region=None,
type=None,
name=None,
)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
per_pageinteger optionalNumber of items returned per page
pageinteger optionalWhich '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 optionalThe name of the VPC NAT gateway.
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
parameter:
from urllib.parse import urlparse, parse_qs
resp = client.vpcnatgateways.list()
pages = resp.get("links", {}).get("pages", {})
while "next" in pages:
parsed = urlparse(pages["next"])
page = int(parse_qs(parsed.query)["page"][0])
resp = client.vpcnatgateways.list(page=page)
pages = resp.get("links", {}).get("pages", {})Response Example
More Information
See /v2/vpc_nat_gateways in the API reference for additional detail on responses, headers, parameters, and more.