createNatGatewayInstance
    • PDF

    createNatGatewayInstance

    • PDF

    Article Summary

    Available in VPC

    Overview

    It creates a NAT gateway instance.

    Requests

    Request parameters

    Parameter nameRequirement statusTypeRestrictionsDescription
    regionCodeNoString- Region code
    Can decide the Region where the NAT gateway instance will be created.
    regionCode can be obtained via the getRegionList action.
    Default: selects the first Region of the getRegionList query results
    zoneCodeYesString- Zone code
    Determines the zone in which the NAT Gateway instance will be created
    zoneCode can be obtained via the getZoneListaction.
    vpcNoYesString- VPC number
    Determines the VPC in which the NAT Gateway instance will be decision
    vpcNo can be obtained via the getVpcListaction.
    natGatewayNameNoStringMin : 3, Max : 30
    Only lowercase English letters, numbers, and "-" are allowed, and it must start with an English letter
    It must end with an English letter or number.
    - The name of NAT Gateway to be created
    Default: automatically granted by NAVER Cloud Platform
    natGatewayDescriptionNoStringMin : 0, Max : 1000 BytesDescription of a NAT Gateway to be created
    responseFormatTypeNoString- Format type of the response result
    Options : xml | json
    Default : xml
    publicIpInstanceNoNoString- Public IP Instance number
    Ignored if subnet is of PRIVATE(subnetTypeCode) type
    If subnet is PUBLIC, if publicIpInstanceNo is NULL, it is automatically created, and if it is NOT-NULL, it is assigned.
    privateIpNoString- Private IP
    Ignore if subnet is PUBLIC
    If the subnet is PUBLIC, it is automatically allocated if NULL, and it is created with the corresponding IP if NOT-NULL.
    subnetNoNoString- SubnetNo of NATGW type
    If NULL, NATGW subnet of PUBLIC type is created.
    If NOT-NULL, create NATGateway according to NATGW Subnet's subnetTypeCode

    Responses

    Response bodies

    Examples

    Request examples

    GET {API_URL}/vpc/v2/createNatGatewayInstance
    ?regionCode=KR
    &zoneCode=KR-1
    &vpcNo=***04
    &natGatewayName=test-***
    &subnetNo=***28
    &publicIpInstanceNo=***25
    

    Response examples

    <createNatGatewayInstanceResponse>
      <requestId>4475d78c-4c27-4404-807d-7b0b645bb127</requestId>
      <returnCode>0</returnCode>
      <returnMessage>success</returnMessage>
      <totalRows>1</totalRows>
      <natGatewayInstanceList>
        <natGatewayInstance>
            <vpcNo>***36</vpcNo>
            <vpcName>test-vpc</vpcName>
            <natGatewayInstanceNo>***9734</natGatewayInstanceNo>
            <natGatewayName>test-***</natGatewayName>
            <publicIp>***.***.109.101</publicIp>
            <natGatewayInstanceStatus>
                <code>INIT</code>
                <codeName>init</codeName>
            </natGatewayInstanceStatus>
            <natGatewayInstanceStatusName>under preparation</natGatewayInstanceStatusName>
            <natGatewayInstanceOperation>
                <code>NULL</code>
                <codeName>NULL OP</codeName>
            </natGatewayInstanceOperation>
            <createDate>2023-04-18T15:13:27+0900</createDate>
            <natGatewayDescription></natGatewayDescription>
            <zoneCode>KR-1</zoneCode>
            <natGatewayType>
                <code>PBLIP</code>
                <codeName>Public</codeName>
            </natGatewayType>
            <subnetName>v-kr1-pub-natgw-***</subnetName>
            <subnetNo>***28</subnetNo>
            <privateIp>10.0.***.***</privateIp>
            <publicIpInstanceNo>***25</publicIpInstanceNo>
        </natGatewayInstance>
      </natGatewayInstanceList>
    </createNatGatewayInstanceResponse>
    

    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.