MENU
      Get site log

        Get site log


        Article summary

        One Click Multi DRM provides an API for getting logs from created sites.

        Request

        GET https://multi-drm.apigw.ntruss.com/api/v1/sites/siteLog?pageNo={pageNo}&pageSize={pageSize}&siteId={siteId}
        HTTP

        Request parameters

        Parameter nameRequiredTypeRestrictionsDescription
        pageNoNoIntegerNo restrictionPage index to query
        pageSizeNoInteger1 - 100Number of site logs to include when querying lists
        e.g., Assuming 60 site logs are created, if the pageSize is 30, then 30 site log lists will be queried per page
        siteIdYesStringNo restrictionSite ID to query

        Request headers

        Header nameRequiredDescription
        x-ncp-apigw-timestampYESIt indicates the elapsed time in milliseconds since January 1, 1970 00:00:00 UTC
        Request is considered invalid if the timestamp differs from the current time by more than 5 minutes
        x-ncp-apigw-timestamp:{Timestamp}
        x-ncp-iam-access-keyYESAccess key ID value issued on NAVER Cloud Platform portal
        x-ncp-iam-access-key:{Sub Account Access Key}
        x-ncp-apigw-signature-v2YESSignature encrypted with the access key ID value and secret key
        x-ncp-apigw-signature-v2:{API Gateway Signature}
        Content-TypeYESSpecify the request body content type as application/json
        Content-Type: application/json
        x-ncp-region_codeYESRegion code (KR)

        Response

        Field nameRequiredTypeRemarks
        siteIdYesStringUnique ID of created site
        descriptionYesStringEvent occurred from created site
        timestampYesTimestampEvent occurrence time

        Examples

        Response example

        HTTP/1.1 200 OK
        Server: nginx
        Date: Fri, 26 Feb 2021 09:53:32 GMT
        Content-Type: application/json;charset=utf-8
        Connection: keep-alive
        Access-Control-Allow-Origin: *
        x-ncp-trace-id: 36c9k60om4p3238cpmc9gm4cj4
        
        {
            "content" : [
                {
                    "siteId" : "1234",
                    "description" : "",
                    "timestamp" : 1585572599000
                },
                {
                    "siteId" : "2453",
                    "description" : "",
                    "timestamp" : 1585572599000
                },
        
                {
                    "siteId" : "5678",
                    "description" : "",
                    "timestamp" : 1585572599000
                },
            ],
            "total" : 3
        }
        HTTP

        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.