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.

getCloudMssqlLogFileList

Prev Next

VPC環境で利用できます。

Cloud DB for MSSQLのログファイルリストを照会します。

構文

getCloudMssqlLogFileList構文は次の通りです。

./ncloud vmssql getCloudMssqlLogFileList \
    --cloudMssqlInstanceNo <instance-no> \
    --cloudMssqlServerInstanceNo <server-instance-no> \
    --fileType <errorLog|agentLog|traceLog|auditLog|xeBaselineLog> \
    [--regionCode <KR|SGN|JPN>] \
    [--output <json|xml>]

オプション

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

必須オプション

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

オプション タイプ 必須の有無 説明
--cloudMssqlInstanceNo String Required Cloud DB for MSSQLインスタンス番号
--cloudMssqlServerInstanceNo String Required Cloud DB for MSSQLのサーバインスタンス番号
--fileType String Required ログファイルタイプ
  • errorLog | agentLog | traceLog | auditLog | xeBaselineLog

共通オプション

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

Cloud DB for MSSQLログファイルリストの照会リクエストが成功すると、各ログファイルの名前、サイズ、作成日時が返されます。

コマンド

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

./ncloud vmssql getCloudMssqlLogFileList \
    --cloudMssqlInstanceNo 25280088 \
    --cloudMssqlServerInstanceNo 25280089 \
    --fileType errorLog \
    --regionCode KR \
    --output json

出力

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

{
  "getCloudMssqlLogFileListResponse": {
    "totalRows": 7,
    "cloudMssqlLogFileList": [
      {
        "fileName": "ERRORLOG.6",
        "fileSize": 0,
        "fileDate": "2026-06-09T20:13:12+0900"
      },
      {
        "fileName": "ERRORLOG.5",
        "fileSize": 54832,
        "fileDate": "2026-06-09T20:13:19+0900"
      },
      {
        "fileName": "ERRORLOG.4",
        "fileSize": 435918,
        "fileDate": "2026-06-09T20:13:43+0900"
      },
      {
        "fileName": "ERRORLOG.3",
        "fileSize": 21432,
        "fileDate": "2026-06-09T20:14:11+0900"
      },
      {
        "fileName": "ERRORLOG.2",
        "fileSize": 20698,
        "fileDate": "2026-06-09T20:16:48+0900"
      },
      {
        "fileName": "ERRORLOG.1",
        "fileSize": 43090,
        "fileDate": "2026-06-09T20:17:59+0900"
      },
      {
        "fileName": "ERRORLOG",
        "fileSize": 25518,
        "fileDate": "2026-06-09T20:23:45+0900"
      }
    ],
    "requestId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "returnCode": "0",
    "returnMessage": "success"
  }
}