ncloud_create_nat_gateway
Create a NAT Gateway in a VPC to provide outbound internet access for private subnet instances. Supports Public and Private types with flexible IP configuration.
Instructions
Create a new NAT Gateway instance in a VPC. Supports both Public (PBLIP) and Private (PRVT) types.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vpcNo | Yes | VPC number to create NAT Gateway in (from getVpcList) | |
| subnetNo | No | NATGW-type subnet number. If NULL, creates a PUBLIC-type NATGW subnet automatically. If specified, creates NAT Gateway according to the subnet's subnetTypeCode (PUBLIC or PRIVATE). | |
| zoneCode | Yes | Zone code (e.g., KR-1, KR-2) | |
| privateIp | No | Private IP address. Ignored for PUBLIC subnet type. For PRIVATE subnet: auto-assigned if NULL, created with specified IP if provided. | |
| natGatewayName | No | NAT Gateway name (3-30 chars, English letters/numbers/hyphens, must start with letter and end with letter or number) | |
| publicIpInstanceNo | No | Public IP instance number. Ignored for PRIVATE subnet type. For PUBLIC subnet: auto-created if NULL, assigned if specified. | |
| natGatewayDescription | No | Description for the NAT Gateway (max 1000 bytes) |