Can be used in a VPC environment.
Overview
Create a Network ACL.
Request
Request parameter
| Parameter Name | Required Status | Type | Restrictions | Description |
|---|---|---|---|---|
| regionCode | No | String | Region Code You can decide the region where the Network ACL will be created. The regionCode can be obtained through the getRegionList action. Default: Select the first region of the getRegionList query results. |
|
| vpcNo | Yes | String | VPC number This determines the VPC where the Network ACL will be created. vpcNo can be obtained through the getVpcList action. |
|
| networkAclName | 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 Network ACL to be created Default: NAVER Cloud Platform automatically assigns it. |
| networkAclDescription | No | String | Min : 0, Max : 1000 Bytes | The description about the Network ACL to be created |
| responseFormatType | No | String | Format type for the response result Options : xml | json Default : xml |
Response
Response data type
- NetworkAclList type
| NetworkAclList extends CommonResponse |
|---|
| private Integer totalRows; |
| private List |
| NetworkAcl |
|---|
| private String networkAclNo; |
| private String networkAclName; |
| private String vpcNo; |
| private CommonCode networkAclStatus; |
| private String networkAclDescription; |
| private Date createDate; |
| private Boolean isDefault; |
Example
Request example
ncloud vpc createNetworkAcl --regionCode KR --vpcNo ***04 --networkAclName test-***
Response example
<createNetworkAclResponse>
<requestId>2828ed65-e3ad-48ef-ac80-ca2e31c33544</requestId>
<returnCode>0</returnCode>
<returnMessage>success</returnMessage>
<totalRows>1</totalRows>
<networkAclList>
<networkAcl>
<networkAclNo>***31</networkAclNo>
<networkAclName>test-***</networkAclName>
<vpcNo>***04</vpcNo>
<networkAclStatus>
<code>RUN</code>
<codeName>run</codeName>
</networkAclStatus>
<networkAclDescription></networkAclDescription>
<createDate>2020-07-31T16:38:52+0900</createDate>
<isDefault>false</isDefault>
</networkAcl>
</networkAclList>
</createNetworkAclResponse>