VPC 환경에서 이용 가능합니다.
Auto Scaling Group의 Scaling 액션 로그 목록을 조회합니다. 최근 6주 동안 실행된 일정의 로그를 확인할 수 있으며, 실행 시작 시간을 기준으로 내림차순 정렬하여 반환됩니다.
요청
요청 형식에 대해 설명합니다. 요청 형식은 다음과 같습니다.
메서드 | URI |
---|---|
GET | POST | /vautoscaling/v2/getAutoScalingActivityLogList |
참고
가이드는 GET 방식 기준으로 안내합니다. POST 방식의 호출 테스트는 네이버 클라우드 플랫폼 콘솔의 API Gateway 서비스에서 Swagger를 통해서 가능합니다.
요청 헤더
Auto Scaling API에서 공통으로 사용하는 헤더에 대한 정보는 Auto Scaling 요청 헤더를 참조해 주십시오.
요청 쿼리 파라미터
요청 쿼리 파라미터에 대한 설명은 다음과 같습니다.
필드 | 타입 | 필수 여부 | 설명 |
---|---|---|---|
regionCode |
String | Optional | 리전 코드
|
autoScalingGroupNo |
String | Required | Auto Scaling Group 번호 |
activityNoList.N |
Array | Optional | 로그 번호 목록
|
pageNo |
Integer | Optional | 페이지 번호
|
pageSize |
Integer | Conditional | 페이지당 항목 수
|
responseFormatType |
String | Optional | 응답 데이터의 형식
|
요청 예시
요청 예시는 다음과 같습니다.
curl --location --request GET 'https://ncloud.apigw.ntruss.com/vautoscaling/v2/getAutoScalingActivityLogList
?regionCode=KR
&autoScalingGroupNo=1***9
&responseFormatType=json' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'
응답
응답 형식에 대해 설명합니다.
응답 바디
응답 바디에 대한 설명은 다음과 같습니다.
필드 | 타입 | 필수 여부 | 설명 |
---|---|---|---|
getAutoScalingActivityLogListResponse |
Object | - | 응답 결과 |
getAutoScalingActivityLogListResponse.requestId |
String | - | 요청에 대한 아이디
|
getAutoScalingActivityLogListResponse.returnCode |
String | - | 응답 코드 |
getAutoScalingActivityLogListResponse.returnMessage |
String | - | 응답 메시지 |
응답 상태 코드
Auto Scaling API에서 공통으로 사용하는 응답 상태 코드에 대한 정보는 Auto Scaling 응답 상태 코드를 참조해 주십시오.
응답 예시
응답 예시는 다음과 같습니다.
{
"getAutoScalingActivityLogListResponse": {
"totalRows": 2,
"activityLogList": [
{
"autoScalingGroupNo": "1***9",
"activityNo": "3202612",
"serverInstanceNo": "10****092",
"zoneCode": "KR-2",
"actionName": "Terminate",
"actionStatus": {
"code": "SUCCS",
"codeName": "SUCCESSFUL"
},
"actionCause": "At 2025-05-30T15:58:22+0900 an instance was taken out of service in response to a difference between desired and actual capacity, shrinking the capacity to 0. ",
"actionDescription": "Launching a new server instance: #10****092",
"startTime": "2025-05-30T15:58:22+0900",
"endTime": "2025-05-30T15:59:24+0900"
},
{
"autoScalingGroupNo": "1***9",
"activityNo": "3155596",
"serverInstanceNo": "10****092",
"zoneCode": "KR-2",
"actionName": "Launch",
"actionStatus": {
"code": "SUCCS",
"codeName": "SUCCESSFUL"
},
"actionCause": "At 2025-05-15T09:51:02+0900 an instance was started in response to a difference between desired and actual capacity, increasing the capacity to 1.",
"actionDescription": "Launching a new server instance: #10****092",
"startTime": "2025-05-15T09:51:03+0900",
"endTime": "2025-05-15T09:56:09+0900"
}
],
"requestId": "605902b8-****-****-****-a47d46441f59",
"returnCode": "0",
"returnMessage": "success"
}
}