Available in VPC
Get the list of Cloud DB for PostgreSQL instance databases.
Syntax
The getCloudPostgresqlDatabaseList syntax is as follows:
./ncloud vpostgresql getCloudPostgresqlDatabaseList \
--cloudPostgresqlInstanceNo <instance-no> \
[--regionCode <KR|SGN|JPN>] \
[--output <json|xml>]
Options
This section describes the options available when running getCloudPostgresqlDatabaseList.
Required options
The following options are required for getCloudPostgresqlDatabaseList.
| Options | Type | Required | Description |
|---|---|---|---|
--cloudPostgresqlInstanceNo |
String | Required | Cloud DB for PostgreSQL instance number |
Common options
For information about the options common to all vpostgresql subcommands, see Cloud DB for PostgreSQL (VPC) options.
Examples
If the request to list Cloud DB for PostgreSQL databases is successful, the name and admin information of each database are returned.
Command
The command example is as follows:
./ncloud vpostgresql getCloudPostgresqlDatabaseList \
--cloudPostgresqlInstanceNo 34567890 \
--regionCode KR \
--output json
Output
The output example is as follows:
{
"getCloudPostgresqlDatabaseListResponse": {
"totalRows": 3,
"cloudPostgresqlDatabaseList": [
{
"databaseName": "pgtest2",
"owner": "testuser"
},
{
"databaseName": "pgtest",
"owner": "testuser"
},
{
"databaseName": "testdb",
"owner": "testuser"
}
],
"requestId": "b2c3d4e5-f6a7-8901-bcde-f23456789012",
"returnCode": "0",
"returnMessage": "success"
}
}