Get policy log

Prev Next

This is an API to retrieve logs for policies required for issuing One Click Multi DRM licenses.

Request

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

Request parameters

Parameter name Required Type Restrictions Description
pageNo No Integer No restriction Page index to query
pageSize No Integer 1 - 100 Number of policy logs to include when querying lists
e.g., Assuming 60 policy logs are created, if the pageSize is 30, then 30 policy log lists will be queried per page
policyId No String Apply search conditions for a specific policyId
startTime No Timestamp Query start time
endTime No Timestamp Query end time

Request headers

Header name Required Description
x-ncp-apigw-timestamp YES It 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-key YES Access key ID value issued on NAVER Cloud Platform portal
x-ncp-iam-access-key:{Sub Account Access Key}
x-ncp-apigw-signature-v2 YES Signature encrypted with the access key ID value and secret key
x-ncp-apigw-signature-v2:{API Gateway Signature}
Content-Type YES Specify the request body content type as application/json
Content-Type: application/json
x-ncp-region_code YES Region code (KR)

Response

| Field name | Type | Required | Description |
|--- |--- |--- |--- |
| content | Array[Object] | Y | |
| policyId | Integer | Y | policyId |
| description | String | Y | policy event |
| timestamp | Timestamp | Y | Log occurrence 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
    }
…
}