---
title: "getCloudMssqlLogFileList"
slug: "cli-vmssql-getcloudmssqllogfilelist"
updated: 2026-04-23T08:57:08Z
published: 2026-04-23T08:58:59Z
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

<p class="platform-info type-vpc">VPC 환경에서 이용 가능합니다.</p>

Cloud DB for MSSQL 로그 파일 목록을 조회합니다.

## 명령어<a name="명령어"></a>

명령어 구문은 다음과 같습니다.

```
ncloud vmssql getCloudMssqlLogFileList [regionCode] [cloudMssqlInstanceNo] [cloudMssqlServerInstanceNo] [fileType] [output]
```

### 파라미터<a name="파라미터"></a>

파라미터에 대한 설명은 다음과 같습니다.

| 파라미터             | 타입    | 필수 여부 | 설명                                                         | 제약 사항 |
| -------------------- | ------- | --------- | ------------------------------------------------------------ | --------- |
| regionCode           | String  | N         | 리전 코드<ul><li>  regionCode는 [getRegionList](/docs/cli-vserver-server-common-getregionlist) 액션을 통해 획득</li><li> default: getRegionList 조회 결과의 첫 번째 리전을 선택</li></ul> | -         |
| cloudMssqlInstanceNo | String  | Y         | 로그 파일을 찾기 위한 Cloud DB for MSSQL 인스턴스 번호. <ul><li>  cloudMssqlInstanceNo는 [getCloudMssqlInstanceList](/docs/cli-vmssql-getcloudmssqlinstancelist) 액션을 통해서 획득</li></ul> | -         |
| cloudMssqlServerInstanceNo | String  | Y         | 로그 파일을 찾기 위한 Cloud DB for MSSQL 서버 인스턴스 번호. <ul><li>  cloudMssqlServerInstanceNo는 [getCloudMssqlInstanceList](/docs/cli-vmssql-getcloudmssqlinstancelist) 액션을 통해서 획득</li></ul> | -         |
| fileType         | String  | Y         | 로그 파일 타입<ul><li>  ex) errorLog, agentLog, traceLog, auditLog, xeBaselineLog </li></ul>        | - |
| output               | String  | N         | 응답 결과의 포맷 타입<ul><li>  options: xml \| json</li><li> default: json</li></ul> | - |


## 응답<a name="응답"></a>

### 응답 데이터 타입<a name="응답데이터타입"></a>

- CloudMssqlLogFileList 타입

| CloudMssqlLogFileList extends CommonResponse                  | 설명                         |
| ------------------------------------------------------------ | ---------------------------- |
| private Integer totalRows;                                   | 조회된 목록의 총 개수        |
| private List&lt;CloudMssqlLogFile&gt; cloudMssqlLogFileList = new ArrayList&lt;&gt;(); | Cloud DB for MSSQL 로그 파일 목록 |


- CloudMssqlLogFile 타입

| CloudMssqlLogFile                           | 설명                             |
| ------------------------------------------ | -------------------------------- |
| private String fileName; | 데이터베이스 서버 로그 파일 이름      |
| private Long fileSize; |   데이터베이스 서버 로그 파일 사이즈   |
| private Date fileDate; |   데이터베이스 서버 로그 파일 수정일시  |

## 예시<a name="예시"></a>

호출과 응답 예시를 설명합니다.

### 호출 예시<a name="호출예시"></a>

호출 예시는 다음과 같습니다.

```http
ncloud vmssql getCloudMssqlLogFileList --regionCode KR --cloudMssqlInstanceNo ******2 --cloudMssqlServerInstanceNo *******3 --fileType errorLog
```

### 응답 예시<a name="응답예시"></a>

응답 예시는 다음과 같습니다.

응답 결과 포맷 타입(output)이 json 일 때
```json
{
  "getCloudMssqlLogFileListResponse": {
    "requestId": "d5e980a0-15b5-4c77-8b12-a70b8673142c",
    "returnCode": 0,
    "returnMessage": "success",
    "totalRows": 1,
    "cloudMssqlLogFileList": [
      {
        "fileName": "ERRORLOG",
        "fileSize": 100000,
        "fileDate": "2022-12-11T06:30:09+0900"
      }
    ]
  }
}
```

응답 결과 포맷 타입(responseFormatType)이 xml 일 때
```xml
<getCloudMssqlLogFileListResponse>
    <requestId>d5e980a0-15b5-4c77-8b12-a70b8673142c</requestId>
    <returnCode>0</returnCode>
    <returnMessage>success</returnMessage>
    <totalRows>1</totalRows>
    <cloudMssqlLogFileList>
        <cloudMssqlLogFile>
            <fileName>ERRORLOG</fileName>
            <fileSize>100000</fileSize>
            <fileDate>2022-12-11T06:30:09+0900</fileDate>
        </cloudMssqlLogFile>
    </cloudMssqlLogFileList>
</getCloudMssqlLogFileListResponse>
```
