createVpcPeeringInstance
    • PDF

    createVpcPeeringInstance

    • PDF

    Article Summary

    Can be used in a VPC environment.

    Overview

    This creates a VPC Peering instance through the Peering requests.

    Request

    Request parameters

    Parameter nameRequiredTypeRestrictionsDescription
    regionCodeNoStringRegion code
    You can decide the region in which a VPC Peering instance will be created.
    regionCode can be obtained through the getRegionList action.
    Default: Select the first region of the getRegionList search results
    vpcPeeringNameNoStringMin : 3, Max : 30
    Only lower case characters, numbers, and special character (-) are allowed, and it has to start with an English letter.
    It must end with an English letter or number.
    The name of the VPC Peering to be created
    Default: NAVER Cloud Platform automatically grants it.
    sourceVpcNoYesStringThe number of VPC that sends requests
    sourceVpcNo can be obtained through the getVpcList action.
    targetVpcNoYesStringThe number of the VPC that receives requests
    targetVpcNo can be obtained through the getVpcList action in the account that receives requests.
    If the IPv4 CIDR blocks of the VPC sending the request and the receiving VPC overlap, then you can't connect with VPC Peering.
    targetVpcNameConditionalStringThe name of the VPC that receives requests
    If the account receiving the request is different from the sending account, then you must enter the name of the VPC receiving the request.
    targetVpcLoginIdConditionalStringOwner ID of the VPC that receives requests
    If the account receiving the request is different from the sending account, then you must enter the account.
    It must coincide with the email format.
    vpcPeeringDescriptionNoStringMin : 0, Max : 1000 BytesThe description about the VPC Peering instance to be created
    responseFormatTypeNoStringFormat type of the response results
    Options : xml | json
    Default : xml

    Response

    Response body

    Example

    Request Example

    GET {API_URL}/vpc/v2/createVpcPeeringInstance
    ?regionCode=KR
    &vpcPeeringName=test-***
    &sourceVpcNo=***05
    &targetVpcNo=***06
    

    Response Example

    <createVpcPeeringInstanceResponse>
      <requestId>450c98e2-dca5-46f7-9f35-5ec1a1728213</requestId>
      <returnCode>0</returnCode>
      <returnMessage>success</returnMessage>
      <totalRows>1</totalRows>
      <vpcPeeringInstanceList>
        <vpcPeeringInstance>
          <vpcPeeringInstanceNo>***6212</vpcPeeringInstanceNo>
          <vpcPeeringName>test-***</vpcPeeringName>
          <regionCode>KR</regionCode>
          <createDate>2020-08-07T17:53:06+0900</createDate>
          <vpcPeeringInstanceStatus>
            <code>INIT</code>
            <codeName>init</codeName>
          </vpcPeeringInstanceStatus>
          <vpcPeeringInstanceStatusName>Waiting</vpcPeeringInstanceStatusName>
          <vpcPeeringInstanceOperation>
            <code>NULL</code>
            <codeName>NULL OP</codeName>
          </vpcPeeringInstanceOperation>
          <sourceVpcNo>***05</sourceVpcNo>
          <sourceVpcName>test-***</sourceVpcName>
          <sourceVpcIpv4CidrBlock>***.**1.0.0/16</sourceVpcIpv4CidrBlock>
          <sourceVpcLoginId>test-***@naver.com</sourceVpcLoginId>
          <targetVpcNo>***06</targetVpcNo>
          <targetVpcName>test-***</targetVpcName>
          <targetVpcIpv4CidrBlock>***.**2.0.0/16</targetVpcIpv4CidrBlock>
          <targetVpcLoginId>test-***@naver.com</targetVpcLoginId>
          <vpcPeeringDescription></vpcPeeringDescription>
          <hasReverseVpcPeering>false</hasReverseVpcPeering>
          <isBetweenAccounts>false</isBetweenAccounts>
          <reverseVpcPeeringInstanceNo></reverseVpcPeeringInstanceNo>
        </vpcPeeringInstance>
      </vpcPeeringInstanceList>
    </createVpcPeeringInstanceResponse>
    

    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.