Retrieves the status of static encryption key usage for all Live Slicers.
Request
Request Syntax:
GET /drm/use-static-encryption-key
Response
A successful response returns the following parameters:
Name | Data Type | Description |
---|---|---|
use_static_encryption_key | Boolean | Indicates whether content may be encrypted using a static encryption key. |
owner | String | Identifies the user account associated with the policy. |
error | Integer | Indicates whether an error occurred. |
Sample Request/Response
Python Sample Request:
import requests
from api_auth import APICredentials, APIParams
class StaticEncryptionKeyStatus:
def __init__(self):
self.host = "https://services.uplynk.com"
def run(self):
"""
Retrieves the static encryption key status.
"""
self._get_status()
def _get_status(self):
url = f"{self.host}/api/v3/drm/use-static-encryption-key"
response = requests.get(url, params=APIParams(APICredentials()).get_params({}))
print(response.json())
StaticEncryptionKeyStatus().run()
Sample Response:
{
"use_static_encryption_key": true,
"owner": "111222333444555666",
"error": 0
}