--- title: "getCloudPostgresqlInstanceList" slug: "cli-vpostgresql-getcloudpostgresqlinstancelist" tags: ["Cloud DB for PostgreSQL", "VPC"] updated: 2026-09-17T10:11:08Z published: 2026-09-17T10:11:08Z 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 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/ja/cli-vserver-server-common-getzonelist)を参照 | | `--vpcNo` | String | Optional | VPC番号 - [getCloudPostgresqlTargetVpcList](/docs/ja/cli-vpostgresql-getcloudpostgresqltargetvpclist)を参照 | | `--subnetNo` | String | Optional | Subnet番号 - [getCloudPostgresqlTargetSubnetList](/docs/ja/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/ja/cli-vpostgresql#%EC%98%B5%EC%85%98)を参照してください。 ## 例 Cloud DB for PostgreSQLインスタンスリストの照会リクエストが成功すると、各インスタンスの構成情報と状態が返されます。 ### コマンド コマンドの例は次の通りです。 ``` ./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 ``` ### 出力 出力の例は次の通りです。 ``` { "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-98b4", "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": "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)サーバ Running状態" }, "cloudPostgresqlServerInstanceOperation": { "code": "NOOP", "codeName": "CLOUD DATABASE(VPC)サーバ 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" } } ```