--- title: "getNetworkAclRuleList" slug: "cli-vpc-networkacl-getnetworkaclrulelist" tags: ["VPC"] updated: 2026-10-08T05:07:25Z published: 2026-10-08T05:07:25Z canonical: "cli.ncloud-docs.com/cli-vpc-networkacl-getnetworkaclrulelist" --- > ## Documentation Index > Fetch the complete documentation index at: https://cli.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # getNetworkAclRuleList Available in VPC Get the list of a network ACL's rules by specifying the network ACL number. ## Syntax The `getNetworkAclRuleList` syntax is as follows: ``` ./ncloud vpc getNetworkAclRuleList \ --networkAclNo \ [--networkAclRuleTypeCode ] \ [--regionCode ] \ [--output ] ``` ## Options This section describes the options available when running `getNetworkAclRuleList`. ### Required options The following options are required for `getNetworkAclRuleList`. | Options | Type | Required | Description | | --- | --- | --- | --- | | `--networkAclNo` | String | Required | Network ACL number - See [getNetworkAclList](/docs/en/cli-vpc-networkacl-getnetworkacllist). | ### Optional options These are the optional options for `getNetworkAclRuleList`. Options that are not specified will use their default values. | Options | Type | Required | Description | | --- | --- | --- | --- | | `--networkAclRuleTypeCode` | String | Optional | Network ACL rule type code - `INBND` \| `OTBND` - `INBND`: Inbound rule - `OTBND`: Outbound rule - Default: All rules of the network ACL | ### Common options For information about the options common to all `vpc` subcommands, see [VPC options](/docs/en/cli-vpc#%EC%98%B5%EC%85%98). ## Examples If the request to retrieve the list of network ACL rules is successful, the configuration information for each rule is returned. ### Command The command example is as follows: ``` ./ncloud vpc getNetworkAclRuleList \ --networkAclNo 34567890 \ --networkAclRuleTypeCode INBND \ --regionCode KR \ --output json ``` ### Output The output example is as follows: ``` { "getNetworkAclRuleListResponse": { "totalRows": 2, "networkAclRuleList": [ { "networkAclNo": "34567890", "priority": 0, "protocolType": { "code": "TCP", "codeName": "tcp" }, "portRange": "13306", "ruleAction": { "code": "ALLOW", "codeName": "Allow" }, "createDate": "2026-07-07T14:37:11+0900", "ipBlock": "192.0.2.0/24", "denyAllowGroupNo": "", "networkAclRuleType": { "code": "INBND", "codeName": "Inbound" }, "networkAclRuleDescription": "" }, { "networkAclNo": "34567890", "priority": 1, "protocolType": { "code": "TCP", "codeName": "tcp" }, "portRange": "13307", "ruleAction": { "code": "DROP", "codeName": "Drop" }, "createDate": "2026-07-07T14:37:11+0900", "ipBlock": "192.0.2.0/24", "denyAllowGroupNo": "", "networkAclRuleType": { "code": "INBND", "codeName": "Inbound" }, "networkAclRuleDescription": "" } ], "requestId": "f6a7b8c9-d0e1-2345-fabc-678901234567", "returnCode": "0", "returnMessage": "success" } } ```