GetActivityList
    • PDF

    GetActivityList

    • PDF

    Article summary

    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.

    Note

    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:

    MethodURI
    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:

    FieldTypeRequiredDescription
    fromEventTimeIntegerOptionalQuery period start date and time (Unix timestamp) (millisecond)
    • 30 days prior to the query date and time (default)
    toEventTimeIntegerOptionalQuery period end date and time (Unix timestamp) (millisecond)
    • Query date and time (default)
    nrnStringOptionalNAVER Cloud Platform resource identification value
    pageIndexIntegerOptionalPage number
    • 0 - N (default: 0)
    pageSizeIntegerOptionalPage output count
    • 100 or less (default: 20)

    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:

    FieldTypeRequiredDescription
    pageIndexInteger-Page number
    pageSizeInteger-Page output count
    itemCountInteger-Number of response results
    hasMoreBoolean-Whether additional pages exist
    • true | false
      • true: It exists
      • false: It doesn't exist
    itemsArray-Response result

    items

    The following describes items.

    FieldTypeRequiredDescription
    historyIdString-Resource activity history ID
    nrnString-NAVER Cloud Platform resource identification value
    eventTimeInteger-Activity change date and time (Unix timestamp) (millisecond)
    platformTypeString-Platform classification
    • BOTH | VPC | Classic
      • BOTH: common platform environment
      • VPC: VPC environment
      • Classic: Classic environment
    productNameString-Service code of the resource
    productDisplayNameString-Service name of the resource
    regionCodeString-Region code of the resource
    regionDispalyNameString-Region name of the resource
    resourceTypeString-Resource type
    resourceIdString-Resource ID
    resourceNameString-Resource name
    actionDisplayNameString-Job name
    actionResultTypeString-Job result
    • SUCCESS | FAIL
      • SUCCESS: succeeded
      • FAIL: failed
    actionUserTypeString-Worker type
    • Customer | Sub
      • Customer: main account
      • Sub: sub account
    actionSubAccountNoInteger-Sub account member ID
    • Display if actionUserType is Sub
    sourceTypeString-Client type that requested the job
    • API | CONSOLE | PORTAL | SYSTEM
    sourceIpString-IP address of the client that requested the action
    • Display if sourceType is CONSOLE or PORTAL
    productDataObject-Resource details
    • Information about each field: See the resource-specific API guide

    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"
                }
            }
        ]
    }
    

    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.