Available in VPC
Create a NAT Gateway instance.
Syntax
The createNatGatewayInstance syntax is as follows:
./ncloud vpc createNatGatewayInstance \
--vpcNo <vpc-no> \
--zoneCode <zone-code> \
[--natGatewayName <nat-gateway-name>] \
[--natGatewayDescription <nat-gateway-description>] \
[--subnetNo <subnet-no>] \
[--publicIpInstanceNo <public-ip-instance-no>] \
[--privateIp <private-ip>] \
[--regionCode <KR|SGN|JPN>] \
[--output <json|xml>]
Options
This section describes the options available when running createNatGatewayInstance.
Required options
The following options are required for createNatGatewayInstance.
| Options | Type | Required | Description |
|---|---|---|---|
--vpcNo |
String | Required | VPC number
|
--zoneCode |
String | Required | Zone code
|
Optional options
These are the optional options for createNatGatewayInstance. Options that are not specified will use their default values.
| Options | Type | Required | Description |
|---|---|---|---|
--natGatewayName |
String | Optional | NAT Gateway name
|
--natGatewayDescription |
String | Optional | Description of NAT Gateway to create (byte)
|
--subnetNo |
String | Optional | Subnet number
|
--publicIpInstanceNo |
String | Optional | Public IP instance number
|
--privateIp |
String | Optional | Private IP address
|
Common options
For information about the options common to all vpc subcommands, see VPC options.
Examples
If the request to create a NAT Gateway instance is successful, the instance's configuration information and creation status are returned.
Command
The command example is as follows:
./ncloud vpc createNatGatewayInstance \
--vpcNo 12345678 \
--zoneCode KR-1 \
--natGatewayName test-natgw-01 \
--natGatewayDescription "Test NAT Gateway" \
--subnetNo 23456789 \
--regionCode KR \
--output json
Output
The output example is as follows:
{
"createNatGatewayInstanceResponse": {
"totalRows": 1,
"natGatewayInstanceList": [
{
"vpcNo": "12345678",
"vpcName": "test-vpc-01",
"natGatewayInstanceNo": "56789012",
"natGatewayName": "test-natgw-01",
"publicIp": "",
"natGatewayInstanceStatus": {
"code": "INIT",
"codeName": "Under preparation"
},
"natGatewayInstanceStatusName": "Creating",
"natGatewayInstanceOperation": {
"code": "CREAT",
"codeName": "CREAT OP"
},
"createDate": "2026-07-07T14:48:38+0900",
"natGatewayDescription": "Test NAT Gateway",
"zoneCode": "KR-1",
"natGatewayType": {
"code": "PBLIP",
"codeName": "Public"
},
"subnetName": "test-natgw-subnet",
"subnetNo": "23456789",
"privateIp": "10.0.3.6",
"publicIpInstanceNo": "",
"natGatewayIpList": [
{
"type": "PRIMARY",
"privateIp": "10.0.3.6",
"publicIp": "",
"publicIpInstanceNo": ""
}
]
}
],
"requestId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"returnCode": "0",
"returnMessage": "success"
}
}