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 | 로그 파일 타입
|
공통 옵션
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"
}
}