Documentation Index

Fetch the complete documentation index at: https://cli.ncloud-docs.com/llms.txt

Use this file to discover all available pages before exploring further.

exportDbServerLogsToObjectStorage

Prev Next

Available in VPC

Forward Cloud DB for MSSQL DB server logs to Object Storage.

Commands

The command statement is as follows.

ncloud vmssql exportDbServerLogsToObjectStorage [regionCode] [cloudMssqlInstanceNo] [cloudMssqlServerInstanceNo] [bucketName] [folderPath] [cloudMssqlObjectNameList] [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
-
cloudMssqlInstanceNo String Y Cloud DB for MSSQL instance number for forwarding server logs to Object Storage
- cloudMssqlInstanceNo can be obtained through the getCloudMssqlInstanceList action.
-
cloudMssqlServerInstanceNo String Y Cloud DB for MSSQL server instance number for forwarding server logs to Object Storage
- cloudMssqlServerInstanceNo can be obtained through the getCloudMssqlInstanceList action
-
bucketName String Y Bucket name
- Space for storing data in Object Storage
- bucketName can be obtained through the getCloudMssqlBucketList action
-
folderPath String N Object Storage bucket's folderPath -
cloudMssqlObjectNameList List<String> Y Object name list
- Object name list can be obtained through the getCloudMssqlLogFileList 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 vmssql exportDbServerLogsToObjectStorage --regionCode KR --bucketName ***** --cloudMssqlInstanceNo ****** --cloudMssqlServerInstanceNo *****33 --cloudMssqlObjectNameList testLog

Response example

The following is a sample response.

When the response result format type (responseFormatType) is JSON

{
  "exportDbServerLogsToObjectStorageResponse": {
    "requestId": "858c2941-2402-4686-9f4d-36a7a906a39d",
    "returnCode": 0,
    "returnMessage": "success"
}

When the response result format type (responseFormatType) is XML

<exportDbServerLogsToObjectStorageResponse>
    <requestId>858c2941-2402-4686-9f4d-36a7a906a39d</requestId>
    <returnCode>0</returnCode>
    <returnMessage>success</returnMessage>
</exportDbServerLogsToObjectStorageResponse>