Available in VPC
Transfer Cloud DB for PostgreSQL database server log files to Object Storage.
Commands
The text of the command is as follows:
ncloud vpostgresql exportDbServerLogToObjectStorage [regionCode] [logType] [fileName] [bucketName] [cloudPostgresqlServerInstanceNo] [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 |
- |
logType | String | Y | Database server log file type - options: POSTGRESQL_LOG |
- |
fileName | String | Y | Database server log file name - You can obtain fileName through the getDbServerLogList action |
- |
bucketName | String | Y | Object Storage bucket name - You can obtain bucketName through the getCloudPostgresqlBucketList action |
- |
cloudPostgresqlServerInstanceNo | String | Y | Cloud DB for PostgreSQL server instance number - You can obtain cloudPostgresqlServerInstanceNo through 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 exportDbServerLogToObjectStorage --regionCode KR --logType POSTGRESQL_LOG --fileName postgresql_000000.log --bucketName postgresql-log --cloudPostgresqlServerInstanceNo ****891
Response examples
The following are examples of responses.
If the response shows that format type (output) is json
{
"exportDbServerLogToObjectStorageResponse": {
"requestId": "6564e513-acd5-4fe3-ac62-2ab16ee267e8",
"returnCode": "0",
"returnMessage": "success"
}
}
If the response shows that format type (output) is xml
<exportDbServerLogToObjectStorageResponse>
<requestId>6564e513-acd5-4fe3-ac62-2ab16ee267e8</requestId>
<returnCode>0</returnCode>
<returnMessage>success</returnMessage>
</exportDbServerLogToObjectStorageResponse>