--- title: "getCloudPostgresqlInstanceList" slug: "cli-vpostgresql-getcloudpostgresqlinstancelist" tags: ["Cloud DB for PostgreSQL"] updated: 2026-10-22T09:07:22Z published: 2026-10-22T09:07:22Z canonical: "cli-gov.ncloud-docs.com/cli-vpostgresql-getcloudpostgresqlinstancelist" --- > ## Documentation Index > Fetch the complete documentation index at: https://cli-gov.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # getCloudPostgresqlInstanceList VPC 환경에서 이용 가능합니다. Cloud DB for PostgreSQL 인스턴스 목록을 조회합니다. ## 구문 `getCloudPostgresqlInstanceList` 구문은 다음과 같습니다. ``` ./ncloud vpostgresql getCloudPostgresqlInstanceList \ [--zoneCode ] \ [--vpcNo ] \ [--subnetNo ] \ [--cloudPostgresqlServiceName ] \ [--cloudPostgresqlInstanceNoList ] \ [--cloudPostgresqlServerName ] \ [--cloudPostgresqlServerInstanceNoList ] \ [--pageNo ] \ [--pageSize ] \ [--regionCode ] \ [--output ] ``` ## 옵션 `getCloudPostgresqlInstanceList` 실행 시 지정할 수 있는 옵션을 설명합니다. ### 필수 옵션 `getCloudPostgresqlInstanceList`의 필수 옵션입니다. | 옵션 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `--pageSize` | Integer | Conditional | 페이지당 항목 수 - `1`~N - `pageNo` 입력 시 필수 입력 | ### 선택 옵션 `getCloudPostgresqlInstanceList`의 선택 옵션입니다. 지정하지 않은 옵션에는 기본값이 적용됩니다. | 옵션 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `--zoneCode` | String | Optional | 존 코드 - [getZoneList](/docs/cli-vserver-server-common-getzonelist) 참조 | | `--vpcNo` | String | Optional | VPC 번호 - [getCloudPostgresqlTargetVpcList](/docs/cli-vpostgresql-getcloudpostgresqltargetvpclist) 참조 | | `--subnetNo` | String | Optional | Subnet 번호 - [getCloudPostgresqlTargetSubnetList](/docs/cli-vpostgresql-getcloudpostgresqltargetsubnetlist) 참조 | | `--cloudPostgresqlServiceName` | String | Optional | Cloud DB for PostgreSQL 서비스 이름 | | `--cloudPostgresqlInstanceNoList` | List | Optional | Cloud DB for PostgreSQL 인스턴스 번호 목록 - 공백으로 구분하여 여러 개 입력 가능 (예시: `--cloudPostgresqlInstanceNoList 1234 2345`) | | `--cloudPostgresqlServerName` | String | Optional | Cloud DB for PostgreSQL 서버 이름 | | `--cloudPostgresqlServerInstanceNoList` | List | Optional | Cloud DB for PostgreSQL 서버 인스턴스 번호 목록 - 공백으로 구분하여 여러 개 입력 가능 (예시: `--cloudPostgresqlServerInstanceNoList 1234 2345`) | | `--pageNo` | Integer | Optional | 페이지 번호 - `0`~N | ### 공통 옵션 `vpostgresql` 명령에서 공통으로 사용하는 옵션에 대한 정보는 [Cloud DB for PostgreSQL (VPC) 옵션](/docs/cli-vpostgresql#%EC%98%B5%EC%85%98)을 참조해 주십시오. ## 예시 Cloud DB for PostgreSQL 인스턴스 목록 조회 요청이 성공하면 각 인스턴스의 구성 정보와 상태가 반환됩니다. ### 명령 명령 예시는 다음과 같습니다. ``` ./ncloud vpostgresql getCloudPostgresqlInstanceList \ --zoneCode KR-1 \ --vpcNo 98765432 \ --subnetNo 23456789 \ --cloudPostgresqlServiceName test-pgsql \ --cloudPostgresqlInstanceNoList 34567890 \ --cloudPostgresqlServerName testpg-001-4r8w \ --cloudPostgresqlServerInstanceNoList 34567891 \ --pageNo 0 \ --pageSize 10 \ --regionCode KR \ --output json ``` ### 출력 출력 예시는 다음과 같습니다. ``` { "getCloudPostgresqlInstanceListResponse": { "totalRows": 1, "cloudPostgresqlInstanceList": [ { "cloudPostgresqlInstanceNo": "34567890", "cloudPostgresqlServiceName": "test-pgsql", "cloudPostgresqlInstanceStatusName": "running", "cloudPostgresqlInstanceStatus": { "code": "CREAT", "codeName": "CLOUD DATABASE(VPC) Created 상태" }, "cloudPostgresqlInstanceOperation": { "code": "NULL", "codeName": "CLOUD DATABASE(VPC) Null OP" }, "isHa": true, "isMultiZone": false, "cloudPostgresqlConfigList": [], "cloudPostgresqlServerInstanceList": [ { "cloudPostgresqlServerInstanceNo": "34567891", "cloudPostgresqlServerName": "testpg-001-4r8w", "cloudPostgresqlServerRole": { "code": "M", "codeName": "Primary" }, "cloudPostgresqlServerInstanceStatusName": "running", "cloudPostgresqlServerInstanceStatus": { "code": "RUN", "codeName": "CLOUD DATABASE(VPC) 서버 Running 상태" }, "cloudPostgresqlServerInstanceOperation": { "code": "NOOP", "codeName": "CLOUD DATABASE(VPC) 서버 Null OP" }, "regionCode": "KR", "zoneCode": "KR-1", "vpcNo": "98765432", "subnetNo": "23456789", "dataStorageSize": 10737418240, "cpuCount": 2, "memorySize": 4294967296 }, { "cloudPostgresqlServerInstanceNo": "34567892", "cloudPostgresqlServerName": "testpg-002-4r8x", "cloudPostgresqlServerRole": { "code": "H", "codeName": "Secondary" }, "cloudPostgresqlServerInstanceStatusName": "running", "cloudPostgresqlServerInstanceStatus": { "code": "RUN", "codeName": "CLOUD DATABASE(VPC) 서버 Running 상태" }, "cloudPostgresqlServerInstanceOperation": { "code": "NOOP", "codeName": "CLOUD DATABASE(VPC) 서버 Null OP" }, "regionCode": "KR", "zoneCode": "KR-1", "vpcNo": "98765432", "subnetNo": "23456789", "dataStorageSize": 10737418240, "cpuCount": 2, "memorySize": 4294967296 } ] } ], "requestId": "eb726051-b5cc-469a-8681-d6203c98ba37", "returnCode": "0", "returnMessage": "success" } } ```