--- title: "getCloudPostgresqlInstanceList" slug: "cli-vpostgresql-getcloudpostgresqlinstancelist" tags: ["Cloud DB for PostgreSQL", "VPC"] updated: 2026-09-17T10:08:42Z published: 2026-09-17T10:08:42Z canonical: "cli.ncloud-docs.com/cli-vpostgresql-getcloudpostgresqlinstancelist" --- > ## 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. # getCloudPostgresqlInstanceList Available in VPC Get the list of Cloud DB for PostgreSQL instances. ## Syntax The `getCloudPostgresqlInstanceList` syntax is as follows: ``` ./ncloud vpostgresql getCloudPostgresqlInstanceList \ [--zoneCode ] \ [--vpcNo ] \ [--subnetNo ] \ [--cloudPostgresqlServiceName ] \ [--cloudPostgresqlInstanceNoList ] \ [--cloudPostgresqlServerName ] \ [--cloudPostgresqlServerInstanceNoList ] \ [--pageNo ] \ [--pageSize ] \ [--regionCode ] \ [--output ] ``` ## Options This section describes the options available when running `getCloudPostgresqlInstanceList`. ### Required options The following options are required for `getCloudPostgresqlInstanceList`. | Options | Type | Required | Description | | --- | --- | --- | --- | | `--pageSize` | Integer | Conditional | Number of items per page - `1`-N - Required when entering `pageNo`. | ### Optional options These are the optional options for `getCloudPostgresqlInstanceList`. Options that are not specified will use their default values. | Options | Type | Required | Description | | --- | --- | --- | --- | | `--zoneCode` | String | Optional | Zone code - See [getZoneList](/docs/en/cli-vserver-server-common-getzonelist). | | `--vpcNo` | String | Optional | VPC number - See [getCloudPostgresqlTargetVpcList](/docs/en/cli-vpostgresql-getcloudpostgresqltargetvpclist). | | `--subnetNo` | String | Optional | Subnet number - See [getCloudPostgresqlTargetSubnetList](/docs/en/cli-vpostgresql-getcloudpostgresqltargetsubnetlist). | | `--cloudPostgresqlServiceName` | String | Optional | Cloud DB for PostgreSQL service name | | `--cloudPostgresqlInstanceNoList` | List | Optional | Cloud DB for PostgreSQL instance number list - You can enter multiple items separated by spaces (e.g., `--cloudPostgresqlInstanceNoList 1234 2345`). | | `--cloudPostgresqlServerName` | String | Optional | Cloud DB for PostgreSQL server name | | `--cloudPostgresqlServerInstanceNoList` | List | Optional | Cloud DB for PostgreSQL server instance number list - You can enter multiple items separated by spaces (e.g., `--cloudPostgresqlServerInstanceNoList 1234 2345`). | | `--pageNo` | Integer | Optional | Page number - `0`-N | ### Common options For information about the options common to all `vpostgresql` subcommands, see [Cloud DB for PostgreSQL (VPC) options](/docs/en/cli-vpostgresql#%EC%98%B5%EC%85%98). ## Examples If the request to retrieve the list of Cloud DB for PostgreSQL instances is successful, the configuration information and status of each instance are returned. ### Command The command example is as follows: ``` ./ncloud vpostgresql getCloudPostgresqlInstanceList \ --zoneCode KR-1 \ --vpcNo 12345678 \ --subnetNo 23456789 \ --cloudPostgresqlServiceName test-pgsql \ --cloudPostgresqlInstanceNoList 34567890 \ --cloudPostgresqlServerName testpg-001-98b4 \ --cloudPostgresqlServerInstanceNoList 34567891 \ --pageNo 0 \ --pageSize 10 \ --regionCode KR \ --output json ``` ### Output The output example is as follows: ``` { "getCloudPostgresqlInstanceListResponse": { "totalRows": 1, "cloudPostgresqlInstanceList": [ { "cloudPostgresqlInstanceNo": "34567890", "cloudPostgresqlServiceName": "test-pgsql", "cloudPostgresqlInstanceStatusName": "running", "cloudPostgresqlInstanceStatus": { "code": "CREAT", "codeName": "CLOUD DATABASE (VPC) Created status" }, "cloudPostgresqlInstanceOperation": { "code": "NULL", "codeName": "CLOUD DATABASE(VPC) Null OP" }, "isHa": true, "isMultiZone": false, "cloudPostgresqlConfigList": [], "cloudPostgresqlServerInstanceList": [ { "cloudPostgresqlServerInstanceNo": "34567891", "cloudPostgresqlServerName": "testpg-001-98b4", "cloudPostgresqlServerRole": { "code": "M", "codeName": "Primary" }, "cloudPostgresqlServerInstanceStatusName": "running", "cloudPostgresqlServerInstanceStatus": { "code": "RUN", "codeName": "CLOUD DATABASE (VPC) server Running status" }, "cloudPostgresqlServerInstanceOperation": { "code": "NOOP", "codeName": "CLOUD DATABASE (VPC) server null OP" }, "regionCode": "KR", "zoneCode": "KR-1", "vpcNo": "12345678", "subnetNo": "23456789", "dataStorageSize": 10737418240, "cpuCount": 2, "memorySize": 4294967296 }, { "cloudPostgresqlServerInstanceNo": "34567892", "cloudPostgresqlServerName": "testpg-002-98b5", "cloudPostgresqlServerRole": { "code": "H", "codeName": "Secondary" }, "cloudPostgresqlServerInstanceStatusName": "running", "cloudPostgresqlServerInstanceStatus": { "code": "RUN", "codeName": "CLOUD DATABASE (VPC) server Running status" }, "cloudPostgresqlServerInstanceOperation": { "code": "NOOP", "codeName": "CLOUD DATABASE (VPC) server null OP" }, "regionCode": "KR", "zoneCode": "KR-1", "vpcNo": "12345678", "subnetNo": "23456789", "dataStorageSize": 10737418240, "cpuCount": 2, "memorySize": 4294967296 } ] } ], "requestId": "b2c3d4e5-f6a7-8901-bcde-f23456789012", "returnCode": "0", "returnMessage": "success" } } ```