exportDbServerLogToObjectStorage
- Print
- PDF
exportDbServerLogToObjectStorage
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
Available in VPC
Transfer Cloud DB for PostgreSQL database server log files to Object Storage.
Requests
Request 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 query results | - |
logType | String | Y | Database server log file type - options: POSTGRESQL_LOG | - |
fileName | String | Y | Database server log file name - fileName can be obtained via 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 - cloudPostgresqlServerInstanceNo can be obtained via the getCloudPostgresqlInstanceList action | - |
responseFormatType | String | N | Format type of the response result - options: xml | json - default: xml | - |
Examples
Request Examples
The following is an example of a request body.
GET {API_URL}/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 (responseFormatType) is json
{
"exportDbServerLogToObjectStorageResponse": {
"requestId": "6564e513-acd5-4fe3-ac62-2ab16ee267e8",
"returnCode": "0",
"returnMessage": "success"
}
}
If the response shows that format type (responseFormatType) is xml
<exportDbServerLogToObjectStorageResponse>
<requestId>6564e513-acd5-4fe3-ac62-2ab16ee267e8</requestId>
<returnCode>0</returnCode>
<returnMessage>success</returnMessage>
</exportDbServerLogToObjectStorageResponse>
Was this article helpful?