Cloud DB for MySQL 인스턴스의 이벤트 내역 목록을 조회합니다.
명령어
명령어 구문은 다음과 같습니다.
ncloud vmysql getCloudMysqlEventHistoryList [regionCode] [cloudMysqlServerName] [startDate] [endDate] [pageNo] [pageSize] [output]
파라미터
파라미터에 대한 설명은 다음과 같습니다.
| 파라미터 | 타입 | 필수 여부 | 설명 | 제약 사항 | 
|---|---|---|---|---|
| regionCode | String | N | Cloud DB for MySQL 인스턴스가 존재하는 리전 코드 | - | 
| cloudMysqlServerName | String | Y | Cloud DB for MySQL 서버 이름 | - | 
| startDate | String | Y | 조회 시작 일자 
 | - | 
| endDate | String | Y | 조회 종료 일자 
 | - | 
| pageNo | Integer | N | 페이징 처리된 결과의 페이지 번호 
 | min: 0 | 
| pageSize | Integer | N | 한 페이지에 보여줄 결과 개수 
 | min: 1 | 
| output | String | N | 응답 결과의 포맷 타입 | - | 
응답
응답 데이터 타입
명령어 호출에 대한 응답 데이터 타입은 다음과 같습니다.
- CloudMysqlEventHistoryList 타입
| CloudMysqlEventHistoryList extends CommonResponse | 설명 | 
|---|---|
| private Integer totalRows; | 조회된 목록의 총 개수 | 
| private List<CloudMysqlEventHistory> cloudMysqlEventHistoryList = new ArrayList<>(); | 
- CloudMysqlEventHistory 타입
| CloudMysqlEventHistory | 설명 | 
|---|---|
| private String cloudMysqlInstanceNo; | Cloud DB for MySQL 인스턴스 번호 | 
| private String cloudMysqlServerInstanceNo; | Cloud DB for MySQL 서버 인스턴스 번호 | 
| private String cloudMysqlServerName; | Cloud DB for MySQL 서버 이름 | 
| private String eventTime; | 이벤트 발생 시간 | 
| private String eventType; | 이벤트 타입 | 
| private String eventName; | 이벤트 이름 | 
| private String eventContent; | 이벤트 내용 | 
| private String clientIp; | 접속 IP | 
예시
호출과 응답 예시를 설명합니다.
호출 예시
호출 예시는 다음과 같습니다.
ncloud vmysql getCloudMysqlEventHistoryList --regionCode FKR --cloudMysqlServerName abcd --startDate '2024-08-13 17:00:00' --endDate '2024-08-13 17:00:00' --pageNo 0 --pageSize 10
응답 예시
응답 예시는 다음과 같습니다.
응답 결과 포맷 타입(output)이 json 일 때
{
  "getCloudMysqlEventHistoryListResponse": {
    "totalRows": 2,
    "cloudMysqlEventHistoryList": [
      {
        "cloudMysqlInstanceNo": "****890",
        "cloudMysqlServerInstanceNo": "****891",
        "cloudMysqlServerName": "abcd-001-****",
        "eventTime": "2024-08-13 17:10:00",
        "eventType": "DB Server",
        "eventName": "DB",
        "eventContent": "DB start",
        "clientIp": "10.x.x.x"
      },
      {
        "cloudMysqlInstanceNo": "****890",
        "cloudMysqlServerInstanceNo": "****891",
        "cloudMysqlServerName": "abcd-001-****",
        "eventTime": "2024-08-13 17:20:00",
        "eventType": "DB Server",
        "eventName": "DB",
        "eventContent": "Change Spec MySQL Completed",
        "clientIp": "10.x.x.x"
      }
    ],
    "requestId": "36cc2f85-****-****-****-5d2511df4e45",
    "returnCode": "0",
    "returnMessage": "success"
  }
}
응답 결과 포맷 타입(output)이 xml 일 때
<?xml version="1.0" encoding="UTF-8"?>
<cloudMysqlEventHistoryList>
    <requestId>36cc2f85-****-****-****-5d2511df4e45</requestId>
    <returnCode>0</returnCode>
    <returnMessage>success</returnMessage>
    <totalRows>2</totalRows>
    <cloudMysqlEventHistoryList>
        <CloudMysqlEventHistory>
            <cloudMysqlInstanceNo>****890</cloudMysqlInstanceNo>
            <cloudMysqlServerInstanceNo>****891</cloudMysqlServerInstanceNo>
            <cloudMysqlServerName>abcd-001-****</cloudMysqlServerName>
            <eventTime>2024-08-13 17:10:00</eventTime>
            <eventType>DB Server</eventType>
            <eventName>DB</eventName>
            <eventContent>DB start</eventContent>
            <clientIp>10.x.x.x</clientIp>
        </CloudMysqlEventHistory>
        <CloudMysqlEventHistory>
            <cloudMysqlInstanceNo>****890</cloudMysqlInstanceNo>
            <cloudMysqlServerInstanceNo>****891</cloudMysqlServerInstanceNo>
            <cloudMysqlServerName>abcd-001-****</cloudMysqlServerName>
            <eventTime>2024-08-13 17:10:00</eventTime>
            <eventType>DB Server</eventType>
            <eventName>DB</eventName>
            <eventContent>Change Spec MySQL Completed</eventContent>
            <clientIp>10.x.x.x</clientIp>
        </CloudMysqlEventHistory>
    </cloudMysqlEventHistoryList>
</cloudMysqlEventHistoryList>