Get Static Encryption Key Status

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:

NameData TypeDescription
use_static_encryption_keyBooleanIndicates whether content may be encrypted using a static encryption key.
ownerStringIdentifies the user account associated with the policy.
errorIntegerIndicates 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
}