Available in VPC
Add a database to a Cloud DB for PostgreSQL instance.
Syntax
The addCloudPostgresqlDatabaseList syntax is as follows:
./ncloud vpostgresql addCloudPostgresqlDatabaseList \
--cloudPostgresqlInstanceNo <instance-no> \
--cloudPostgresqlDatabaseList <database-config> \
[--regionCode <KR|SGN|JPN>] \
[--output <json|xml>]
Options
This section describes the options available when running addCloudPostgresqlDatabaseList.
Required options
The following options are required for addCloudPostgresqlDatabaseList.
| Options | Type | Required | Description |
|---|---|---|---|
--cloudPostgresqlInstanceNo |
String | Required | Cloud DB for PostgreSQL instance number |
--cloudPostgresqlDatabaseList |
List | Required | List of databases to add
|
Common options
For information about the options common to all vpostgresql subcommands, see Cloud DB for PostgreSQL (VPC) options.
Examples
If the request to add a database is successful, the specified database is added to the Cloud DB for PostgreSQL instance.
Command
The command example is as follows:
./ncloud vpostgresql addCloudPostgresqlDatabaseList \
--cloudPostgresqlInstanceNo 34567890 \
--cloudPostgresqlDatabaseList "name='pgtest1', owner='testuser'" "name='pgtest2', owner='testuser'" \
--regionCode KR \
--output json
Output
The output example is as follows:
{
"addCloudPostgresqlDatabaseListResponse": {
"requestId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"returnCode": "0",
"returnMessage": "success"
}
}