--- title: "getAccessControlGroupList" slug: "cli-vserver-acg-getaccesscontrolgrouplist" tags: ["ACG", "VPC", "Server"] updated: 2026-09-17T10:08:33Z published: 2026-09-17T10:08:33Z canonical: "cli.ncloud-docs.com/cli-vserver-acg-getaccesscontrolgrouplist" --- > ## 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. # getAccessControlGroupList Available in VPC Get a list of ACGs. ## Syntax The `getAccessControlGroupList` syntax is as follows: ``` ./ncloud vserver getAccessControlGroupList \ [--vpcNo ] \ [--accessControlGroupNoList ] \ [--accessControlGroupName ] \ [--accessControlGroupStatusCode ] \ [--pageNo ] \ [--pageSize ] \ [--regionCode ] \ [--output ] ``` ## Options This section describes the options available when running `getAccessControlGroupList`. ### Required options The following options are required for `getAccessControlGroupList`. | Options | Type | Required | Description | | --- | --- | --- | --- | | `--pageSize` | Integer | Conditional | Number of items per page - `1`-`1000` (default: `1`) - Required when entering `pageNo` | ### Optional options These are the optional options for `getAccessControlGroupList`. Options that are not specified will use their default values. | Options | Type | Required | Description | | --- | --- | --- | --- | | `--vpcNo` | String | Optional | VPC number - See [getVpcList](/docs/en/cli-vpc-vpcmanagement-getvpclist). | | `--accessControlGroupNoList` | List | Optional | ACG number list - You can enter multiple items separated by spaces. (e.g., `--accessControlGroupNoList 1234 2345`) | | `--accessControlGroupName` | String | Optional | ACG name | | `--accessControlGroupStatusCode` | String | Optional | ACG status code - `INIT` \| `SET` \| `RUN` \| `TERMTING` - `INIT`: Reset - `SET`: Configuring - `RUN`: Running - `TERMTING`: Terminating | | `--pageNo` | Integer | Optional | Page number - `0`-N (default: `0`) - First page: Enter `0` or `1`. | ### 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 ACG list query request is successful, the identification information and operational status of the created ACG are returned. ### Command The command example is as follows: ``` ./ncloud vserver getAccessControlGroupList \ --vpcNo 12345678 \ --accessControlGroupNoList 67890123 67890124 \ --accessControlGroupStatusCode RUN \ --pageNo 1 \ --pageSize 10 \ --regionCode KR \ --output json ``` ### Output The output example is as follows: ``` { "getAccessControlGroupListResponse": { "totalRows": 2, "accessControlGroupList": [ { "accessControlGroupNo": "67890123", "accessControlGroupName": "test-acg-01", "isDefault": false, "vpcNo": "12345678", "accessControlGroupStatus": { "code": "RUN", "codeName": "In operation" }, "accessControlGroupDescription": "ACG for web tier" }, { "accessControlGroupNo": "67890124", "accessControlGroupName": "test-acg-02", "isDefault": false, "vpcNo": "12345678", "accessControlGroupStatus": { "code": "RUN", "codeName": "In operation" }, "accessControlGroupDescription": "ACG for database tier" } ], "requestId": "b2c3d4e5-f678-9012-bcde-f23456789012", "returnCode": "0", "returnMessage": "success" } } ```