exportDbServerLogsToObjectStorage
- 印刷する
- PDF
exportDbServerLogsToObjectStorage
- 印刷する
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
VPC環境で利用できます。
Cloud DB for MSSQL DBのサーバログを Object Storageに転送します。
コマンド
コマンド構文は、次の通りです。
ncloud vmssql exportDbServerLogsToObjectStorage [regionCode] [cloudMssqlInstanceNo] [cloudMssqlServerInstanceNo] [bucketName] [folderPath] [cloudMssqlObjectNameList] [output]
パラメータ
パラメータについての説明は、次の通りです。
パラメータ | タイプ | 必須有無 | 説明 | 制限事項 |
---|---|---|---|---|
regionCode | String | N | リージョンコード - regionCodeは、getRegionListアクションを通じて取得 - default: getRegionList照会結果の最初のリージョンを選択 | - |
cloudMssqlInstanceNo | String | Y | サーバログを ObjectStorageに転送するための Cloud DB for MSSQLインスタンス番号 - cloudMssqlInstanceNoは、getCloudMssqlInstanceListアクションを通じて取得 | - |
cloudMssqlServerInstanceNo | String | Y | サーバログを ObjectStorageに転送するための Cloud DB for MSSQLサーバインスタンス番号 - cloudMssqlServerInstanceNoは、getCloudMssqlInstanceListアクションを通じて取得 | - |
bucketName | String | Y | バケット名 - Object Storageにデータを保存するためのスペースを意味 - bucketNameは、getCloudMssqlBucketListアクションを通じて取得可能 | - |
folderPath | String | N | ObjectStorage bucketの folderPath | - |
cloudMssqlObjectNameList | List<String> | Y | Object Nameリスト | - |
output | String | N | レスポンス結果のフォーマットタイプ - options: xml | json - default: json | - |
例
呼び出しとレスポンス例を説明します。
呼び出し例
呼び出し例は、次の通りです。
ncloud vmssql exportDbServerLogsToObjectStorage --regionCode KR --bucketName ***** --cloudMssqlInstanceNo ****** --cloudMssqlServerInstanceNo *****33 --cloudMssqlObjectNameList testLog
レスポンス例
レスポンス例は、次の通りです。
レスポンス結果のフォーマットタイプ(responseFormatType)が jsonの場合
{
"exportDbServerLogsToObjectStorageResponse": {
"requestId": "858c2941-2402-4686-9f4d-36a7a906a39d",
"returnCode": 0,
"returnMessage": "success"
}
レスポンス結果のフォーマットタイプ(responseFormatType)が xmlの場合
<exportDbServerLogsToObjectStorageResponse>
<requestId>858c2941-2402-4686-9f4d-36a7a906a39d</requestId>
<returnCode>0</returnCode>
<returnMessage>success</returnMessage>
</exportDbServerLogsToObjectStorageResponse>
この記事は役に立ちましたか?