Available in Classic and VPC
Get the DRM policy list.
Request
This section describes the request format. The method and URI are as follows:
| Method | URI |
|---|---|
| GET | /api/v1/policy |
Request headers
For information about the headers common to all One Click Multi DRM APIs, see One Click Multi DRM request headers.
Request query parameters
You can use the following query parameters with your request:
| Field | Type | Required | Description |
|---|---|---|---|
pageNo |
Integer | Optional | Page number
|
pageSize |
Integer | Optional | Number of items per page
|
Request example
The request example is as follows:
curl --location --request GET 'https://multi-drm.apigw.ntruss.com/api/v1/policy?pageNo=1&pageSize=20' \
--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' \
--header 'x-ncp-region_code: KR'
Response
This section describes the response format.
Response body
The response body includes the following data:
| Field | Type | Required | Description |
|---|---|---|---|
success |
Boolean | - | API processing result
|
content |
Array | - | Policy list: content |
total |
Integer | - | Total response count |
content
The following describes content.
| Field | Type | Required | Description |
|---|---|---|---|
disabled |
Boolean | - | Whether Sub Account is disabled
|
policyId |
Integer | - | DRM policy ID
|
policyName |
String | - | Policy name |
policyStatus |
String | - | Policy status
|
policyCreatedTime |
Integer | - | Policy creation date and time (millisecond)
|
policyUpdateTime |
Integer | - | Policy modification date and time (millisecond)
|
persistent |
Boolean | - | Whether to save the license offline
|
rentalDuration |
Integer | - | Validity period (second) after offline license acquisition during which content must be played for the first time |
playbackDuration |
Integer | - | License validity period (seconds) from the initial playback start time of the content |
drmPolicyConfig |
Object | - | Policy settings by DRM type |
drmPolicyConfig.wideVine |
Object | - | Widevine type policy |
drmPolicyConfig.wideVine.useYn |
Boolean | - | Widevine policy usage
|
drmPolicyConfig.wideVine.securityLevel |
Integer | - | Widevine security level value
|
drmPolicyConfig.wideVine.hdcp |
String | - | Security (HDCP) level for digital output
|
drmPolicyConfig.wideVine.cgms |
String | - | Security (CGMS-A) level for analog output
|
drmPolicyConfig.wideVine.disableAnalogOutputYn |
Boolean | - | Whether analog output is blocked
|
drmPolicyConfig.wideVine.hdcpSrmRule |
String | - | Whether content can be played when an HDCP device fails to process System Renewability Message (SRM)
|
drmPolicyConfig.wideVine.deviceRevocation |
Boolean | - | Whether to allow license issuance for revoked (withdrawn from Widevine support) Android devices
|
drmPolicyConfig.playReady |
Object | - | PlayReady type policy |
drmPolicyConfig.playReady.useYn |
Boolean | - | PlayReady policy usage
|
drmPolicyConfig.playReady.securityLevel |
Integer | - | PlayReady security level value
|
drmPolicyConfig.playReady.digitalVideoProtectionLevel |
Integer | - | Security level for digital video output
|
drmPolicyConfig.playReady.analogVideoProtectionLevel |
Integer | - | Security level for analog video output
|
drmPolicyConfig.playReady.digitalAudioProtectionLevel |
Integer | - | Security level for digital audio output
|
drmPolicyConfig.playReady.hdcpUseYn |
Boolean | - | Whether to require Type 1 (HDCP V2.2 or later) when HDCP is applied according to output protection level (OPL) settings
|
drmPolicyConfig.fairPlay |
Object | - | FairPlay Streaming type policy |
drmPolicyConfig.fairPlay.useYn |
Boolean | - | FairPlay Streaming policy usage
|
drmPolicyConfig.fairPlay.hdcpEnforcement |
String | - | Whether HDCP is applied and HDCP version
|
drmPolicyConfig.fairPlay.allowAirPlay |
Boolean | - | Whether to allow AirPlay
|
drmPolicyConfig.fairPlay.allowAvAdaptor |
Boolean | - | Whether output is permitted via digital AV adapter
|
Response status codes
For information about the response status codes common to all One Click Multi DRM APIs, see One Click Multi DRM response status codes.
Response example
The response example is as follows:
{
"success": true,
"content": [
{
"disabled": false,
"policyId": 0,
"policyName": "Basic",
"policyStatus": "CREATED",
"policyCreatedTime": 1697100646282,
"policyUpdateTime": 1756972498313,
"persistent": false,
"rentalDuration": 0,
"playbackDuration": 0,
"drmPolicyConfig": {
"wideVine": {
"useYn": true,
"securityLevel": 1,
"hdcp": "HDCP_NONE",
"cgms": "CGMS_NONE",
"disableAnalogOutputYn": false,
"hdcpSrmRule": "HDCP_SRM_RULE_NONE",
"deviceRevocation": false
},
"playReady": {
"useYn": true,
"securityLevel": 150,
"digitalVideoProtectionLevel": 100,
"analogVideoProtectionLevel": 100,
"digitalAudioProtectionLevel": 100,
"hdcpUseYn": false
},
"fairPlay": {
"useYn": true,
"hdcpEnforcement": -1,
"allowAirPlay": true,
"allowAvAdaptor": true
}
}
},
{
"disabled": false,
"policyId": 81,
"policyName": "myPolicy",
"policyStatus": "CREATED",
"policyCreatedTime": 1756968701258,
"policyUpdateTime": 1756972498313,
"persistent": false,
"rentalDuration": 0,
"playbackDuration": 0,
"drmPolicyConfig": {
"wideVine": {
"useYn": true,
"securityLevel": 1,
"hdcp": "HDCP_NONE",
"cgms": "CGMS_NONE",
"disableAnalogOutputYn": true,
"hdcpSrmRule": "HDCP_SRM_RULE_NONE",
"deviceRevocation": true
},
"playReady": {
"useYn": true,
"securityLevel": 150,
"digitalVideoProtectionLevel": 100,
"analogVideoProtectionLevel": 100,
"digitalAudioProtectionLevel": 100,
"hdcpUseYn": true
},
"fairPlay": {
"useYn": true,
"hdcpEnforcement": -1,
"allowAirPlay": true,
"allowAvAdaptor": true
}
}
}
],
"total": 2
}