Learn how to get NAT Gateway subscription information from the Vultr portal or API.
Retrieving a NAT Gateway subscription displays its current status, configuration, and assigned IP addresses. Review these details to verify the gateway's operational state, obtain identifiers for managing rules, or audit billing information.
Follow this guide to get a NAT Gateway subscription using the Vultr Customer Portal or API.
Navigate to Products, expand the Network drop-down and select VPC Networks.
Select your target VPC Network with NAT Gateway connectivity.
The VPC details page displays NAT Gateway information in the following sections:
Details Section
Attached Nodes Section
The NAT Gateway appears as a managed node with the following information:
Send a GET request to the List VPCs endpoint to retrieve available VPCs.
$ curl "https://api.vultr.com/v2/vpcs" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
The output displays all VPCs in your account. Note the id field for the target VPC.
Send a GET request to the List NAT Gateway subscriptions endpoint to retrieve the gateway ID. Replace VPC_ID with the ID from the previous step.
$ curl "https://api.vultr.com/v2/vpcs/VPC_ID/nat-gateway" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
The output displays NAT Gateway subscriptions for the VPC. Note the id field for the target gateway.
Send a GET request to the Get NAT Gateway subscription endpoint. Replace VPC_ID and NAT_GATEWAY_ID with your values.
$ curl "https://api.vultr.com/v2/vpcs/VPC_ID/nat-gateway/NAT_GATEWAY_ID" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
The output displays the complete NAT Gateway subscription details:
id: The NAT Gateway's unique identifier.vpc_id: The VPC's unique identifier.date_created: The gateway creation timestamp.status: The operational state (active or pending).label: The gateway's descriptive label.tag: Optional tag for organization.public_ips: Array containing one public IPv4 address for outbound internet traffic.public_ips_v6: Array containing one public IPv6 address.private_ips: Array containing one private IP address for VPC internal communication.billing: Object containing hourly charges and monthly cost estimates.