Available in VPC
Transfer Cloud DB for PostgreSQL backup files to Object Storage.
Commands
The text of the command is as follows:
ncloud vpostgresql exportBackupToObjectStorage [regionCode] [fileName] [bucketName] [cloudPostgresqlInstanceNo] [output]
Parameter
The following is a description on parameters.
Parameter | Type | Requirement status | Description | Restrictions |
---|---|---|---|---|
regionCode | String | N | Region code - regionCode can be obtained via the getRegionList action - Default: selects the first region of the getRegionList search results |
- |
fileName | String | Y | Backup file name - You can obtain fileName through the getCloudPostgresqlBackupDetailList action |
- |
bucketName | String | Y | Object Storage bucket name - You can obtain bucketName through the getCloudPostgresqlBucketList action |
- |
cloudPostgresqlInstanceNo | String | Y | Cloud DB for PostgreSQL instance number - cloudPostgresqlInstanceNo can be obtained via the getCloudPostgresqlInstanceList action |
- |
output | String | N | Format type of the response result - options: xml | json - default: json |
- |
Examples
Describes examples of recalls and responses.
Recall examples
The following are examples of recalls.
ncloud vpostgresql exportBackupToObjectStorage --regionCode KR --fileName 20210528 --bucketName postgresql-backup --cloudPostgresqlInstanceNo ****890
Response examples
The following are examples of responses.
If the response shows that format type (output) is json
{
"exportBackupToObjectStorageResponse": {
"requestId": "cf51da47-c561-4ae1-b48e-e94f1c501da7",
"returnCode": "0",
"returnMessage": "success"
}
}
If the response shows that format type (output) is xml
<exportBackupToObjectStorageResponse>
<requestId>cf51da47-c561-4ae1-b48e-e94f1c501da7</requestId>
<returnCode>0</returnCode>
<returnMessage>success</returnMessage>
</exportBackupToObjectStorageResponse>