acceptOrRejectVpcPeering
- Print
- PDF
acceptOrRejectVpcPeering
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Can be used in a VPC environment.
Overview
Accept or reject the VPC Peering request.
Request
Request parameter
Parameter Name | Required Status | Type | Restrictions | Description |
---|---|---|---|---|
regionCode | No | String | Region Code You can decide the region of the VPC Peering instance to accept or reject requests. The regionCode can be obtained through the getRegionList action. Default: Select the first region of the getRegionList query results. | |
vpcPeeringInstanceNo | Yes | String | The number of the VPC Peering instance to accept or reject requests vpcPeeringInstanceNo can be obtained through the getVpcPeeringInstanceList action. | |
isAccept | Yes | Boolean | Accept or reject status of the requests Options: true (request accepted) | false (request rejected) | |
responseFormatType | No | String | Format type for the response result Options : xml | json Default : xml |
Response
Response data type
- VpcPeeringInstanceList type
VpcPeeringInstanceList extends CommonResponse |
---|
private Integer totalRows; |
private List |
VpcPeeringInstance |
---|
private String vpcPeeringInstanceNo; |
private String vpcPeeringName; |
private String regionCode; |
private Date createDate; |
private Date lastModifyDate; |
private CommonCode vpcPeeringInstanceStatus; |
private String vpcPeeringInstanceStatusName; |
private CommonCode vpcPeeringInstanceOperation; |
private String sourceVpcNo; |
private String sourceVpcName; |
private String sourceVpcIpv4CidrBlock; |
private String sourceVpcLoginId; |
private String targetVpcNo; |
private String targetVpcName; |
private String targetVpcIpv4CidrBlock; |
private String targetVpcLoginId; |
private String vpcPeeringDescription; |
private Boolean hasReverseVpcPeering; |
private Boolean isBetweenAccounts; |
private String reverseVpcPeeringInstanceNo; |
Example
Request example
ncloud vpc acceptOrRejectVpcPeering --regionCode KR --vpcPeeringInstanceNo ***6213 --isAccept true
Response example
<acceptOrRejectVpcPeeringResponse>
<requestId>b4e70022-b05f-4843-9885-7f4444dcc650</requestId>
<returnCode>0</returnCode>
<returnMessage>success</returnMessage>
<totalRows>1</totalRows>
<vpcPeeringInstanceList>
<vpcPeeringInstance>
<vpcPeeringInstanceNo>***6213</vpcPeeringInstanceNo>
<vpcPeeringName>test-***</vpcPeeringName>
<regionCode>KR</regionCode>
<createDate>2020-08-07T18:17:11+0900</createDate>
<vpcPeeringInstanceStatus>
<code>INIT</code>
<codeName>init</codeName>
</vpcPeeringInstanceStatus>
<vpcPeeringInstanceStatusName>Waiting</vpcPeeringInstanceStatusName>
<vpcPeeringInstanceOperation>
<code>NULL</code>
<codeName>NULL OP</codeName>
</vpcPeeringInstanceOperation>
<sourceVpcNo>***07</sourceVpcNo>
<sourceVpcName>test-***</sourceVpcName>
<sourceVpcIpv4CidrBlock>***.**1.0.0/16</sourceVpcIpv4CidrBlock>
<sourceVpcLoginId>test-**1@nave.com</sourceVpcLoginId>
<targetVpcNo>***08</targetVpcNo>
<targetVpcName>test-***</targetVpcName>
<targetVpcIpv4CidrBlock>***.**2.0.0/16</targetVpcIpv4CidrBlock>
<targetVpcLoginId>test-**2@naver.com</targetVpcLoginId>
<vpcPeeringDescription></vpcPeeringDescription>
<hasReverseVpcPeering>false</hasReverseVpcPeering>
<isBetweenAccounts>true</isBetweenAccounts>
<reverseVpcPeeringInstanceNo></reverseVpcPeeringInstanceNo>
</vpcPeeringInstance>
</vpcPeeringInstanceList>
</acceptOrRejectVpcPeeringResponse>
Was this article helpful?