--- title: "getAccessControlGroupRuleList" slug: "cli-vserver-acg-getaccesscontrolgrouprulelist" tags: ["ACG", "VPC", "Server"] updated: 2026-09-17T10:08:33Z published: 2026-09-17T10:08:33Z canonical: "cli.ncloud-docs.com/cli-vserver-acg-getaccesscontrolgrouprulelist" --- > ## 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. # getAccessControlGroupRuleList Available in VPC Get the list of ACG rules. ## Syntax The `getAccessControlGroupRuleList` syntax is as follows: ``` ./ncloud vserver getAccessControlGroupRuleList \ --accessControlGroupNo \ [--accessControlGroupRuleTypeCode ] \ [--regionCode ] \ [--output ] ``` ## Options This section describes the options available when running `getAccessControlGroupRuleList`. ### Required options The following options are required for `getAccessControlGroupRuleList`. | Options | Type | Required | Description | | --- | --- | --- | --- | | `--accessControlGroupNo` | String | Required | ACG number - See [getAccessControlGroupList](/docs/en/cli-vserver-acg-getaccesscontrolgrouplist). | ### Optional options These are the optional options for `getAccessControlGroupRuleList`. Options that are not specified will use their default values. | Options | Type | Required | Description | | --- | --- | --- | --- | | `--accessControlGroupRuleTypeCode` | String | Optional | ACG rule type code - `INBND` \| `OTBND` - `INBND`: Inbound rule - `OTBND`: Outbound rule - Query all rules if not entered. | ### Common options For information about the options common to all `vserver` subcommands, see [Server (VPC) options](/docs/en/cli-vserver#%EC%98%B5%EC%85%98). ## Examples If the request to view the ACG rule list is successful, details about the inbound and outbound rules will be returned. ### Command The command example is as follows: ``` ./ncloud vserver getAccessControlGroupRuleList \ --accessControlGroupNo 67890123 \ --regionCode KR \ --output json ``` ### Output The output example is as follows: ``` { "getAccessControlGroupRuleListResponse": { "totalRows": 2, "accessControlGroupRuleList": [ { "accessControlGroupNo": "67890123", "protocolType": { "code": "TCP", "codeName": "tcp", "number": 6 }, "ipBlock": "192.0.2.0/24", "accessControlGroupSequence": "", "portRange": "22", "accessControlGroupRuleType": { "code": "INBND", "codeName": "Inbound" }, "accessControlGroupRuleDescription": "SSH from office" }, { "accessControlGroupNo": "67890123", "protocolType": { "code": "TCP", "codeName": "tcp", "number": 6 }, "ipBlock": "0.0.0.0/0", "accessControlGroupSequence": "", "portRange": "443", "accessControlGroupRuleType": { "code": "OTBND", "codeName": "Outbound" }, "accessControlGroupRuleDescription": "HTTPS egress" } ], "requestId": "e5f67890-1234-5678-ef01-567890123456", "returnCode": "0", "returnMessage": "success" } } ```