View policy logs
    • PDF

    View policy logs

    • PDF

    Article summary

    An API that views the log regarding the policy required to issue the One Click Multi DRM license.

    Requests

    GET https://multi-drm.apigw.ntruss.com/api/v1/policy/policyLog?pageNo={pageNo}&pageSizeNo={pageSizeNo}&policyId={policyId}&startTime={startTime}&endTIme={endTime}
    

    Request parameters

    Parameter nameRequirement statusTypeRestrictionsDescription
    pageNoNoIntegerNo restrictionPage index to view
    pageSizeNoNoInteger1-100Number of policy logs to include when viewing lists
    For example, when 60 policy logs are created with pageSizeNo 30, the viewing of policy log list is done in 30 policy logs per page
    policyIdNoStringApplication of search condition for specific policyId
    startTimeNoTimestampView start time
    endTimeNoTimestampView end time

    Request headers

    Header nameRequirement statusDescription
    x-ncp-apigw-timestampYESThis is the number of milliseconds that have elapsed since January 1, 1970 00:00:00 (UTC)
    If the time difference compared to the API Gateway server is 5 minutes or longer, then the request is considered invalid
    x-ncp-apigw-timestamp:{Timestamp}
    x-ncp-iam-access-keyYESValue of access key ID issued in the 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-TypeYESSpecifies the request body content type as application/json
    Content-Type: application/json
    x-ncp-region_codeYESRegion code (KR)

    Response

    Field nameTypeRequirement statusDescription
    contentArray[Object]Y
    policyIdIntegerYpolicyId
    descriptionStringYPolicy event
    timestampTimestampYLog generation time

    Examples

    Response example

    HTTP/1.1 200 OK
    Server: nginx
    Date: Fri, 20 Nov 2023 19:53:32 GMT
    Content-Type: application/json;charset=utf-8
    Connection: keep-alive
    Access-Control-Allow-Origin: *
    x-ncp-trace-id: 36c9k60om4p3238cpmc9gm4cj4
    
    {
      "success": true,
      "content": [
        {
          "policyId": 127,
          "description": "Policy 127 - myPolicy update completed",
          "timestamp": 1700556709111
        },
        {
          "policyId": 127,
          "description": "Policy 127 - myPolicy update completed",
          "timestamp": 1700556654153
        },
        {
          "policyId": 127,
          "description": "Policy 127 - myPolicy creation completed",
          "timestamp": 1700555631868
        },
        {
          "policyId": 122,
          "description": "Policy 122 - string update completed",
          "timestamp": 1700481339835
        },
        {
          "policyId": 123,
          "description": "Policy 123 - myPolicy_dummy2 delete completed",
          "timestamp": 1700480342036
        },
        {
          "policyId": 123,
          "description": "Policy 123 -myPolicy_dummy2 creation completed",
          "timestamp": 1700480181627
        },
        {
          "policyId": 122,
          "description": "Policy 122 - string creation completed",
          "timestamp": 1700479924521
        }
    …
    }
    

    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.