Available in VPC
Create a network ACL in the VPC environment.
Syntax
The createNetworkAcl syntax is as follows:
./ncloud vpc createNetworkAcl \
--vpcNo <vpc-no> \
[--networkAclName <network-acl-name>] \
[--networkAclDescription <network-acl-description>] \
[--regionCode <KR|SGN|JPN>] \
[--output <json|xml>]
Options
This section describes the options available when running createNetworkAcl.
Required options
The following options are required for createNetworkAcl.
| Options | Type | Required | Description |
|---|---|---|---|
--vpcNo |
String | Required | VPC number
|
Optional options
These are the optional options for createNetworkAcl. Options that are not specified will use their default values.
| Options | Type | Required | Description |
|---|---|---|---|
--networkAclName |
String | Optional | Network ACL name
|
--networkAclDescription |
String | Optional | Description of the network ACL (byte)
|
Common options
For information about the options common to all vpc subcommands, see VPC options.
Examples
If the request to create a network ACL is successful, the network ACL's configuration information and creation status are returned.
Command
The command example is as follows:
./ncloud vpc createNetworkAcl \
--vpcNo 12345678 \
--networkAclName test-acl-01 \
--networkAclDescription "Test network ACL" \
--regionCode KR \
--output json
Output
The output example is as follows:
{
"createNetworkAclResponse": {
"totalRows": 1,
"networkAclList": [
{
"networkAclNo": "34567890",
"networkAclName": "test-acl-01",
"vpcNo": "12345678",
"networkAclStatus": {
"code": "RUN",
"codeName": "In operation"
},
"networkAclDescription": "Test network ACL",
"createDate": "2026-07-07T14:37:10+0900",
"isDefault": false
}
],
"requestId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"returnCode": "0",
"returnMessage": "success"
}
}