createVpcPeeringInstance
    • PDF

    createVpcPeeringInstance

    • PDF

    Article summary

    Available in VPC

    Create a VPC peering instance through the peering request.

    Request

    The following describes the request format for the endpoint. The request format is as follows:

    MethodURI
    GET, POST/createVpcPeeringInstance

    Request headers

    For headers common to all VPC APIs, see VPC common headers.

    Request query parameters

    The following describes the parameters.

    Request query parameters

    The following describes the parameters.

    FieldTypeRequiredDescription
    regionCodeStringOptionalRegion code where you want to create the VPC peering instance
  • First Region of the search result (default)
  • Check through getRegionList
  • vpcPeeringNameStringOptionalName of VPC peering to create
  • Automatically granted by NAVER Cloud Platform (default)
  • 3 to 30 characters, including English letters, numbers, and the special character "-", and must begin with an English letter and end with an English letter or number
  • sourceVpcNoStringRequiredNumber of the VPC sending the peering request
  • Check through getVpcList
  • targetVpcNoStringRequiredNumber of the VPC receiving the peering request
  • Check through getVpcList on the account receiving the request
  • If the VPC sending the peering request and the VPC receiving the request have overlapping IPv4 CIDR blocks, you can't connect by VPC peering
  • targetVpcNameStringConditionalName of the VPC receiving the peering request
  • If the account receiving the peering request is different from the sending account, you must enter the name of the VPC receiving the request
  • targetVpcLoginIdStringConditionalVPC owner ID (in email format) receiving the peering request
  • If the account receiving the request is different from the account sending the request, you must enter the account receiving the request
  • vpcPeeringDescriptionStringOptionalDescription for the VPC peering to create (byte)
  • 0 - 1000
  • responseFormatTypeStringOptionalResponse result format
    • xml (default) | json

    Request example

    The following is a sample request.

    curl --location 'https://ncloud.apigw.ntruss.com/vpc/v2/createVpcPeeringInstance?regionCode=KR
    &vpcPeeringName=test-***
    &sourceVpcNo=***05
    &targetVpcNo=***06'
    --header 'x-ncp-apigw-timestamp: {Timestamp}'     
    --header 'x-ncp-iam-access-key: {Access Key}' 
    --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'
    

    Response

    The following describes the response format.

    Response body

    See VpcPeeringInstanceList for the response body.

    Response status codes

    For response status codes common to NAVER Cloud Platform, see Ncloud API response status codes.

    Response example

    The following is a sample response.

    <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>
          <lastModifyDate>2020-08-05T20:53:16+0900</lastModifyDate>
          <vpcPeeringInstanceStatus>
            <code>INIT</code>
            <codeName>init</codeName>
          </vpcPeeringInstanceStatus>
          <vpcPeeringInstanceStatusName>Creating</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.