- Print
- PDF
GetActivityList
- Print
- PDF
Available in Classic and VPC
Get resource activity history. A resource is a unit of resources created by a user in NAVER Cloud Platform. Resources are categorized and managed by unique key values called Ncloud Resource Names (NRNs) for identification, so you can use NRNs to view the operation history for a specific resource when calling.
For a detailed description of the concept and naming conventions of Ncloud Resource Names (NRNs), see Resource Manager concepts in the Resource Manager user guide.
Request
This section describes the request format. The method and URI are as follows:
Method | URI |
---|---|
POST | /api/v1/activities |
Request headers
For information about the headers common to all Cloud Activity Tracer APIs, see Cloud Activity Tracer request headers.
Request body
You can include the following data in the body of your request:
Field | Type | Required | Description |
---|---|---|---|
fromEventTime | Integer | Optional | Query period start date and time (Unix timestamp) (millisecond)
|
toEventTime | Integer | Optional | Query period end date and time (Unix timestamp) (millisecond)
|
nrn | String | Optional | NAVER Cloud Platform resource identification value |
pageIndex | Integer | Optional | Page number
|
pageSize | Integer | Optional | Page output count
|
Request example
The request example is as follows:
curl --location --request POST 'https://cloudactivitytracer.apigw.ntruss.com/api/v1/activities' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
--header 'Content-Type: application/json' \
--data '{
"pageIndex": "0",
"pageSize": "4"
}'
Response
This section describes the response format.
Response body
The response body includes the following data:
Field | Type | Required | Description |
---|---|---|---|
pageIndex | Integer | - | Page number |
pageSize | Integer | - | Page output count |
itemCount | Integer | - | Number of response results |
hasMore | Boolean | - | Whether additional pages exist
|
items | Array | - | Response result |
items
The following describes items
.
Field | Type | Required | Description |
---|---|---|---|
historyId | String | - | Resource activity history ID |
nrn | String | - | NAVER Cloud Platform resource identification value |
eventTime | Integer | - | Activity change date and time (Unix timestamp) (millisecond) |
platformType | String | - | Platform classification
|
productName | String | - | Service code of the resource |
productDisplayName | String | - | Service name of the resource |
regionCode | String | - | Region code of the resource |
regionDispalyName | String | - | Region name of the resource |
resourceType | String | - | Resource type |
resourceId | String | - | Resource ID |
resourceName | String | - | Resource name |
actionDisplayName | String | - | Job name |
actionResultType | String | - | Job result
|
actionUserType | String | - | Worker type
|
actionSubAccountNo | Integer | - | Sub account member ID
|
sourceType | String | - | Client type that requested the job
|
sourceIp | String | - | IP address of the client that requested the action
|
productData | Object | - | Resource details
|
Response status codes
See Cloud Activity Tracer response status codes
for information about the response status codes common to all Cloud Activity Tracer APIs.
Response example
The response example is as follows:
{
"pageIndex": 0,
"pageSize": 4,
"itemCount": 3,
"hasMore": true,
"items": [
{
"historyId": "67074579e2a352720c5736d1",
"nrn": "nrn:PUB:Account::****:Customer/static",
"eventTime": 1728529785024,
"platformType": "BOTH",
"productName": "Account",
"productDisplayName": "Account",
"regionCode": "",
"regionDisplayName": "Common",
"resourceType": "Customer",
"resourceId": "static",
"actionDisplayName": "Login",
"actionResultType": "SUCCESS",
"actionUserType": "Customer",
"sourceType": "PORTAL",
"sourceIp": "***.***.***.***",
"productData": {
"twoFactorLoginType": "PHONE",
"twoFactorLoginManagerName": "*dong Hong",
"twoFactorLoginInfo": "+82-010********",
"clientIpCountry": "KR",
"isTwoSetFactorLogin": "true",
"isSuccess": "true",
"clientIp": "***.***.***.***",
"loginLevel": "2",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36",
"userType": "CUSTOMER",
"userName": "honggildong@navercorp.com"
}
},
{
"historyId": "67068762e2a352720c56d28e",
"nrn": "nrn:PUB:SecureZone:KR:****:Member/Standard/****",
"eventTime": 1728481122336,
"platformType": "Classic",
"productName": "SecureZone",
"productDisplayName": "Secure Zone",
"regionCode": "KR",
"regionDisplayName": "Korea",
"resourceType": "Member",
"resourceId": "Standard/****",
"resourceName": "Gildong Hong",
"actionDisplayName": "Add Member",
"actionResultType": "SUCCESS",
"actionUserType": "Customer",
"sourceType": "CONSOLE",
"sourceIp": "***.***.***.***",
"productData": {
"memberNo": "******",
"instanceNo": "****",
"memberName": "Gildong Hong",
"secureZoneNo": "1",
"secureZoneName": "Secure",
"firewallType": "STANDARD",
"zone": "KR2"
}
},
{
"historyId": "6706874376a86d3b2d5a64fe",
"nrn": "nrn:PUB:CloudLogAnalytics:KR:****:Analytics/static",
"eventTime": 1728481091000,
"platformType": "BOTH",
"productName": "CloudLogAnalytics",
"productDisplayName": "Cloud Log Analytics",
"regionCode": "KR",
"regionDisplayName": "Korea",
"resourceType": "Analytics",
"resourceId": "static",
"resourceName": "CloudLogAnalytics",
"actionDisplayName": "Subscribe To Cloud Log Analytics",
"actionResultType": "SUCCESS",
"sourceType": "SYSTEM",
"productData": {
"memberNo": "******",
"instanceNo": "26950604",
"prodNo": "1",
"startYmdt": "2024-10-08 22:38:10"
}
}
]
}