--- title: "getCloudMssqlLogFileList" slug: "cli-vmssql-getcloudmssqllogfilelist" updated: 2026-09-17T10:11:08Z published: 2026-09-17T10:11:08Z canonical: "cli.ncloud-docs.com/cli-vmssql-getcloudmssqllogfilelist" --- > ## 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 VPC環境で利用できます。 Cloud DB for MSSQLのログファイルリストを照会します。 ## 構文 `getCloudMssqlLogFileList`構文は次の通りです。 ``` ./ncloud vmssql getCloudMssqlLogFileList \ --cloudMssqlInstanceNo \ --cloudMssqlServerInstanceNo \ --fileType \ [--regionCode ] \ [--output ] ``` ## オプション `getCloudMssqlLogFileList`の実行時に指定できるオプションについて説明します。 ### 必須オプション `getCloudMssqlLogFileList`の必須オプションです。 | オプション | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `--cloudMssqlInstanceNo` | String | Required | Cloud DB for MSSQLインスタンス番号 - [getCloudMssqlInstanceList](/docs/ja/cli-vmssql-getcloudmssqlinstancelist)を参照 | | `--cloudMssqlServerInstanceNo` | String | Required | Cloud DB for MSSQLのサーバインスタンス番号 - [getCloudMssqlInstanceList](/docs/ja/cli-vmssql-getcloudmssqlinstancelist)を参照 | | `--fileType` | String | Required | ログファイルタイプ - `errorLog` \| `agentLog` \| `traceLog` \| `auditLog` \| `xeBaselineLog` | ### 共通オプション `vmssql`コマンドで共通して使用するオプションについては、[Cloud DB for MSSQL (VPC)のオプション](/docs/ja/cli-vmssql#%EC%98%B5%EC%85%98)を参照してください。 ## 例 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" } } ```