Policy 로그 조회
    • PDF

    Policy 로그 조회

    • PDF

    기사 요약

    One Click Multi DRM 라이선스 발급에 필요한 Policy에 대한 로그를 조회하는 API입니다.

    요청

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

    요청 파라미터

    파라미터명필수 여부타입제약 사항설명
    pageNoNoInteger제약 없음조회 할 페이지 인덱스
    pageSizeNoNoInteger1~100목록 조회시 포함될 Policy 로그 수
    예시) 생성된 Policy 로그가 60개일 때, pageSizeNo 30 이라면 페이지당 30개씩 Policy 로그 목록 조회
    policyIdNoString특정 policyId 에 대한 검색 조건 적용
    startTimeNoTimestamp조회 시작 시간
    endTimeNoTimestamp조회 종료 시간

    요청 헤더

    헤더명필수 여부설명
    x-ncp-apigw-timestampYES1970년 1월 1일 00:00:00 협정 세계시(UTC)부터의 경과 시간을 밀리초(Millisecond)로 나타냄
    API Gateway 서버와 시간 차가 5분 이상 나는 경우 유효하지 않은 요청으로 간주
    x-ncp-apigw-timestamp:{Timestamp}
    x-ncp-iam-access-keyYES네이버 클라우드 플랫폼 포털에서 발급받은 Access Key ID 값
    x-ncp-iam-access-key:{Sub Account Access Key}
    x-ncp-apigw-signature-v2YESAccess Key ID 값과 Secret Key로 암호화한 서명
    x-ncp-apigw-signature-v2:{API Gateway Signature}
    Content-TypeYESRequest body content type을 application/json으로 지정
    Content-Type: application/json
    x-ncp-region_codeYES리전 코드 (KR)

    응답

    필드명타입필수 여부설명
    contentArray[Object]Y
    policyIdIntegerYpolicyId
    descriptionStringYpolicy 이벤트
    timestampTimestampY로그 발생 시각

    예시

    응답 예시

    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
        }
    …
    }
    

    이 문서가 도움이 되었습니까?

    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.