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

VPC環境で利用できます。

Cloud DB for MSSQLインスタンスの DB Serverログファイルを Object Storageに転送します。DB Serverログファイルを Object Storageに転送するには、DB Serverログファイルの保存・検索用の Object Storageバケットが作成されている必要があります。詳細は、Object Storageご利用ガイドをご参照ください。

構文

exportDbServerLogsToObjectStorage構文は次の通りです。

./ncloud vmssql exportDbServerLogsToObjectStorage \
    --cloudMssqlInstanceNo <instance-no> \
    --cloudMssqlServerInstanceNo <server-instance-no> \
    --cloudMssqlObjectNameList <object-name-list> \
    --bucketName <bucket-name> \
    [--folderPath <folder-path>] \
    [--regionCode <KR|SGN|JPN>] \
    [--output <json|xml>]

オプション

exportDbServerLogsToObjectStorageの実行時に指定できるオプションについて説明します。

必須オプション

exportDbServerLogsToObjectStorageの必須オプションです。

オプション タイプ 必須の有無 説明
--cloudMssqlInstanceNo String Required Cloud DB for MSSQLインスタンス番号
--cloudMssqlServerInstanceNo String Required Cloud DB for MSSQLのサーバインスタンス番号
--cloudMssqlObjectNameList List Required Object Storageに転送するログファイル名リスト
  • スペースで区切って複数入力可能 (例: --cloudMssqlObjectNameList ERRORLOG ERRORLOG.1)
  • getCloudMssqlLogFileListを参照
--bucketName String Required DB Serverログファイルが転送される Object Storageバケット名

任意オプション

exportDbServerLogsToObjectStorageの任意オプションです。指定しない場合、オプションにはデフォルト値が適用されます。

オプション タイプ 必須の有無 説明
--folderPath String Optional DB Serverログファイルが転送されるフォルダパス

共通オプション

vmssqlコマンドで共通して使用するオプションについては、Cloud DB for MSSQL (VPC)のオプションを参照してください。

DB Serverログファイルの転送リクエストが成功すると、指定した Object Storageのバケットにログファイルが転送されます。

コマンド

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

./ncloud vmssql exportDbServerLogsToObjectStorage \
    --cloudMssqlInstanceNo 25280088 \
    --cloudMssqlServerInstanceNo 25280089 \
    --cloudMssqlObjectNameList ERRORLOG \
    --bucketName my-test-bucket \
    --folderPath mssql-log/ \
    --regionCode KR \
    --output json

出力

出力の例は次の通りです。

{
  "exportDbServerLogsToObjectStorageResponse": {
    "requestId": "c3d4e5f6-a7b8-9012-cdef-345678901234",
    "returnCode": "0",
    "returnMessage": "success"
  }
}