Available in VPC
Send Cloud DB for MongoDB database server log files to Object Storage.
Commands
The command statement is as follows.
ncloud vmongodb exportDbServerLogToObjectStorage [regionCode] [logType] [fileName] [bucketName] [cloudMongoDbServerInstanceNo] [output]
Parameter
The following describes the parameters.
Parameter | Type | Required | Description | Restrictions |
---|---|---|---|---|
regionCode | String | N | Region code - regionCode can be obtained through the getRegionList action - Default: Select the first Region of the getRegionList search result |
- |
logType | String | Y | Database server log file type - Options: POSTGRESQL_LOG |
- |
fileName | String | Y | Database server log file name - fileName can be obtained through the getDbServerLogList action |
- |
bucketName | String | Y | Object Storage bucket name - bucketName can be obtained through the getCloudMongoDbBucketList action |
- |
cloudMongoDbServerInstanceNo | String | Y | Cloud DB for MongoDB server instance number - cloudMongoDbServerInstanceNo can be obtained through the getCloudMongoDbInstanceList action |
- |
output | String | N | Format type of the response result - Options: xml | json - Default: json |
- |
Examples
It describes call and response examples.
Call examples
The following is a call example.
ncloud vmongodb exportDbServerLogToObjectStorage --regionCode KR --logType log --fileName mongodb.log --bucketName mongodb-log --cloudMongoDbServerInstanceNo ****891
Response example
The following is a sample response.
When the response result format type (output) is JSON
{
"exportDbServerLogToObjectStorageResponse": {
"requestId": "6564e513-acd5-4fe3-ac62-2ab16ee267e8",
"returnCode": "0",
"returnMessage": "success"
}
}
When the response result format type (output) is XML
<exportDbServerLogToObjectStorageResponse>
<requestId>6564e513-acd5-4fe3-ac62-2ab16ee267e8</requestId>
<returnCode>0</returnCode>
<returnMessage>success</returnMessage>
</exportDbServerLogToObjectStorageResponse>