exportDbServerLogsToObjectStorage

Prev Next

VPC環境で利用できます。

Cloud DB for MSSQL DBサーバログを Object Storageに伝達します。

コマンド

コマンド構文は次の通りです。

ncloud vmssql exportDbServerLogsToObjectStorage [regionCode] [cloudMssqlInstanceNo] [cloudMssqlServerInstanceNo] [bucketName] [folderPath] [cloudMssqlObjectNameList] [output]

パラメータ

パラメータの説明は次の通りです。

パラメータ タイプ 必須の有無 説明 制限事項
regionCode String N リージョンコード
- regionCodeはgetRegionListアクションを通じて取得
- デフォルト: 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リスト
- Object NameリストはgetCloudMssqlLogFileListアクションを通じて取得
-
output String N レスポンス結果の形式タイプ
- オプション: xml | json
- デフォルト: 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>