createVpc
- Print
- PDF
createVpc
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Can be used in a VPC environment.
Overview
Create a VPC.
Request
Request parameter
Parameter Name | Required Status | Type | Restrictions | Description |
---|---|---|---|---|
regionCode | No | String | Region Code You can decide the region where a VPC is created. The regionCode can be obtained through the getRegionList action. Default: Select the first region of the getRegionList query results. | |
vpcName | No | String | Min : 3, Max : 30 Only lowercase letters, numbers, and special characters "-" are allowed and it must start with an alphabetic character. It must end with an alphabet letter or number. | The name of the VPC to be created Default: NAVER Cloud Platform automatically assigns it. |
ipv4CidrBlock | Yes | String | It must be in the range of /16 to /28 within the private bandwidth (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16). | The IP address range of the VPC to be created |
responseFormatType | No | String | Format type for the response result Options : xml | json Default : xml |
Response
Response data type
- VpcList type
VpcList extends CommonResponse |
---|
private Integer totalRows; |
private List |
Vpc |
---|
private String vpcNo; |
private String vpcName; |
private String ipv4CidrBlock; |
private CommonCode vpcStatus; |
private String regionCode; |
private Date createDate; |
Example
Request example
ncloud vpc createVpc --regionCode KR --vpcName test-*** --ipv4CidrBlock ***.***.0.0/16
Response example
<createVpcResponse>
<requestId>21a29c59-3139-4c23-9f92-10c1fddafef6</requestId>
<returnCode>0</returnCode>
<returnMessage>success</returnMessage>
<totalRows>1</totalRows>
<vpcList>
<vpc>
<vpcNo>***04</vpcNo>
<vpcName>test-***</vpcName>
<ipv4CidrBlock>***.***.0.0/16</ipv4CidrBlock>
<vpcStatus>
<code>INIT</code>
<codeName>init</codeName>
</vpcStatus>
<regionCode>KR</regionCode>
<createDate>2020-07-27T17:17:05+0900</createDate>
</vpc>
</vpcList>
</createVpcResponse>
Was this article helpful?