Classic/VPC 환경에서 이용 가능합니다.
리소스 변경 이력 조회. 변경 이력 목록은 eventDateTime 값 기준 내림차순으로 정렬
요청
요청 형식을 설명합니다. 요청 형식은 다음과 같습니다.
| 메서드 | URI |
|---|---|
| GET | /activities |
요청 헤더
Cloud Activity Tracer API에서 공통으로 사용하는 헤더에 대한 정보는 Cloud Activity Tracer 요청 헤더를 참조해 주십시오.
요청 쿼리 파라미터
요청 쿼리 파라미터에 대한 설명은 다음과 같습니다.
| 필드 | 타입 | 필수 여부 | 설명 |
|---|---|---|---|
regionCode |
String | Optional | 리전 코드
|
productName |
String | Optional | 상품명
|
resourceType |
String | Optional | 리소스 유형
|
resourceName |
String | Optional | 리소스 이름
|
resourceId |
String | Optional | 리소스 ID
|
fromDateTime |
String (date-time) | Optional | 이벤트 시작 일시. 생략하면 현재 시각 기준 30일 전으로 설정. 오프셋이 없으면 Asia/Seoul 기준으로 해석 |
toDateTime |
String (date-time) | Optional | 이벤트 종료 일시. 생략하면 현재 시각으로 설정. 오프셋이 없으면 Asia/Seoul 기준으로 해석 |
nrn |
String | Optional | 조회 대상 리소스 NRN
|
pageNo |
Integer (int32) | Optional | 페이지 번호(0부터 시작)
|
pageSize |
Integer (int32) | Optional | 페이지 크기
|
요청 예시
요청 예시는 다음과 같습니다.
curl --location --request GET 'https://cloudactivitytracer.apigw.ntruss.com/api/v2/activities' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'
응답
응답 형식을 설명합니다.
응답 바디
응답 바디에 대한 설명은 다음과 같습니다.
| 필드 | 타입 | 필수 여부 | 설명 |
|---|---|---|---|
pageNo |
Integer (int32) | - | 현재 페이지 번호(0부터 시작)
|
pageSize |
Integer (int32) | - | 현재 페이지 크기
|
totalElements |
Integer (int64) | - | 전체 항목 수
|
totalPages |
Integer (int32) | - | 전체 페이지 수
|
activities |
List<OpenApiV2ResourceHistoryResponseDto> | - | 변경 이력 목록
|
OpenApiV2ResourceHistoryResponseDto
리소스 변경 이력 항목
| 필드 | 타입 | 필수 여부 | 설명 |
|---|---|---|---|
historyId |
String | - | 이력 항목 ID
|
nrn |
String | - | 리소스 NRN
|
eventDateTime |
String (date-time) | - | 이벤트 일시. 변경 이력 목록은 이 값 기준 내림차순으로 정렬
|
platformType |
String | - | 플랫폼 유형
|
productName |
String | - | 상품명
|
productDisplayName |
String | - | 상품 표시명 |
regionCode |
String | - | 리전 코드
|
regionDisplayName |
String | - | 리전 표시명 |
resourceType |
String | - | 리소스 유형
|
resourceId |
String | - | 리소스 ID |
resourceName |
String | - | 리소스 이름
|
actionDisplayName |
String | - | 액션 표시명
|
actionResultType |
String | - | 액션 결과 유형
|
actionUserType |
String | - | 액션 사용자 유형
|
actionSubAccountNo |
Integer (int32) | - | 액션을 수행한 서브 계정 번호
|
actionIdNo |
String | - | 액션을 수행한 사용자의 IAM ID
|
sourceType |
String | - | 액션 호출 경로 유형
|
sourceIp |
String | - | 액션 호출 원본 IP 주소
|
productData |
Map<Object> | - | 상품별 데이터 페이로드
|
응답 상태 코드
Cloud Activity Tracer API에서 공통으로 사용하는 응답 상태 코드에 대한 정보는 Cloud Activity Tracer 응답 상태 코드를 참조해 주십시오.
응답 예시
응답 예시는 다음과 같습니다.
{
"pageNo": 0,
"pageSize": 20,
"totalElements": 100,
"totalPages": 5,
"activities": [
{
"historyId": "hist-001",
"nrn": "nrn:PUB:VPCServer:KR:6927:Server/1234",
"eventDateTime": "2020-05-06T14:30:00+09:00",
"platformType": "VPC",
"productName": "rmgr",
"productDisplayName": "string",
"regionCode": "KR",
"regionDisplayName": "string",
"resourceType": "resource",
"resourceId": "string",
"resourceName": "my-resource",
"actionDisplayName": "Create Server",
"actionResultType": "SUCCESS",
"actionUserType": "CUSTOMER",
"actionSubAccountNo": 12345,
"actionIdNo": "abb7d5a0-5010-11e7-9ff6-1e5021fa7c80",
"sourceType": "API",
"sourceIp": "127.0.0.1",
"productData": {
"key": {}
}
}
]
}