Available in VPC
Get the list of network ACLs based on the conditions the user specifies.
Syntax
The getNetworkAclList syntax is as follows:
./ncloud vpc getNetworkAclList \
[--vpcNo <vpc-no>] \
[--networkAclName <network-acl-name>] \
[--networkAclStatusCode <INIT|SET|RUN|TERMTING>] \
[--networkAclNoList <network-acl-no-list>] \
[--pageNo <page-no>] \
[--pageSize <page-size>] \
[--regionCode <KR|SGN|JPN>] \
[--output <json|xml>]
Options
This section describes the options available when running getNetworkAclList.
Required options
The following options are required for getNetworkAclList.
| Options | Type | Required | Description |
|---|---|---|---|
--pageSize |
Integer | Conditional | Page size to display when paginating
|
Optional options
These are the optional options for getNetworkAclList. Options that are not specified will use their default values.
| Options | Type | Required | Description |
|---|---|---|---|
--vpcNo |
String | Optional | VPC number
|
--networkAclName |
String | Optional | Network ACL name |
--networkAclStatusCode |
String | Optional | Network ACL status code
|
--networkAclNoList |
List | Optional | Network ACL number list
|
--pageNo |
Integer | Optional | Page numbers in paged results
|
Common options
For information about the options common to all vpc subcommands, see VPC options.
Examples
If the request to retrieve the list of network ACLs is successful, the configuration information for each network ACL is returned.
Command
The command example is as follows:
./ncloud vpc getNetworkAclList \
--vpcNo 12345678 \
--networkAclStatusCode RUN \
--networkAclNoList 34567890 34567891 \
--pageNo 1 \
--pageSize 10 \
--regionCode KR \
--output json
Output
The output example is as follows:
{
"getNetworkAclListResponse": {
"totalRows": 2,
"networkAclList": [
{
"networkAclNo": "34567890",
"networkAclName": "test-acl-01",
"vpcNo": "12345678",
"networkAclStatus": {
"code": "RUN",
"codeName": "In operation"
},
"networkAclDescription": "Updated network ACL description",
"createDate": "2026-07-07T14:37:10+0900",
"isDefault": false
},
{
"networkAclNo": "34567891",
"networkAclName": "test-vpc-01-default-network-acl",
"vpcNo": "12345678",
"networkAclStatus": {
"code": "RUN",
"codeName": "In operation"
},
"networkAclDescription": "VPC [test-vpc-01] default Network ACL",
"createDate": "2026-07-07T14:07:27+0900",
"isDefault": true
}
],
"requestId": "b2c3d4e5-f6a7-8901-bcde-f23456789012",
"returnCode": "0",
"returnMessage": "success"
}
}