Skip to main content

Digital Rights Management

POST DRM#

Create a new DRM.

POST
MethodPOST
URL or EndPoint/api/v{version}/projects/{projectId}/drm
HeadersAuthorization
Parametersversion, projectId
BodywidevineEncryption{keyServerUrl, signer, aesSigningKey, aesSigningIV, rsaSigningKeyPath}, rawKeyEncryption{iv, pssh, rawKeys[]{label, keyId, key}}, playReadyEncryption{playReadyServerUrl, clientCertFile, clientCertPrivateKeyFile, clientCertPrivateKeyPassword}, ezDRM{username, password}

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
{version}Yesinteger($int32)1Shows the version of API
{projectId}Yesstring($Guid)3fa85f64-5717-4562-b3fc-2c963f66afa6Shows the id of the project

The description of the parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
VersionYesinteger($int32)1Shows the version of API
ProjectIdYesstring($Guid)3fa85f64-5717-4562-b3fc-2c963f66afa6Shows the id of the project

Request body#


{  "widevineEncryption": {    "keyServerUrl": "string",    "signer": "string",    "aesSigningKey": "string",    "aesSigningIV": "string",    "rsaSigningKeyPath": "string"  },  "rawKeyEncryption": {    "iv": "string",    "pssh": "string",    "rawKeys": [      {        "label": "string",        "keyId": "string",        "key": "string"      }    ]  },  "playReadyEncryption": {    "playReadyServerUrl": "string",    "clientCertFile": "string",    "clientCertPrivateKeyFile": "string",    "clientCertPrivateKeyPassword": "string"  },  "ezDRM": {    "username": "string",    "password": "string"  }}
Body Parameter NameMandatoryTypeExampleDescription
widevineEncryptionYesobjectIt specifies the properties for the widewine encryption
keyServerUrlYesstring"string"It specifies the key server url for the widewine encryption
signerYesstring"string"It specifies the signer for the widewine encryption
aesSigningKeyYesstring"string"It specifies the AES signing key for the widewine encryption
aesSigningIVYesstring"string"It specifies the AES initializing vector for the widewine encryption
rsaSigningKeyPathYesstring"string"It specifies the RSA signing key path for the widewine encryption
rawKeyEncryptionYesobject0It specifies the raw key encryption properties
ivYesstring"string"It specifies the initializing vector for the raw key encryption
psshYesstring"string"It specifies the Secure Shell protocol for the raw key encryption
rawKeysYesarray[object]It specifies the raw keys for the raw key encryption
labelYesstring"string"It specifies the label for the raw key
keyIdYesstring"string"It specifies the key id for the raw key
keyYesstring"string"It specifies the key for the raw key
playReadyEncryptionYesobjectIt specifies the play ready encryption properties
playReadyServerUrlYesstring"string"It specifies the server URL for the play ready encryption
clientCertFileYesstring"string"It specifies the client Cert private file for the play ready encryption
clientCertPrivateKeyPasswordYesstring"string"It specifies the client Cert private key password for the play ready encryption

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],    "result": {        "widevineEncryption": {          "keyServerUrl": "string",          "signer": "string",          "aesSigningKey": "string",          "aesSigningIV": "string",          "rsaSigningKeyPath": "string"        },        "rawKeyEncryption": {          "iv": "string",          "pssh": "string",          "rawKeys": [            {              "label": "string",              "keyId": "string",              "key": "string"            }          ]        },        "playReadyEncryption": {          "playReadyServerUrl": "string",          "clientCertFile": "string",          "clientCertPrivateKeyFile": "string",          "clientCertPrivateKeyPassword": "string"        },        "ezDRM": {          "username": "string",          "password": "string"        }    },  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will return false
errorsarray []"string"Indicate if there was an error
messagesarray []"string"Returns the response message from back-end
resultobjectReturns the created DRM object
widevineEncryptionobjectReturns the properties for the widewine encryption
keyServerUrlstring"string"Returns the key server url for the widewine encryption
signerstring"string"Returns the signer for the widewine encryption
aesSigningKeystring"string"Returns the AES signing key for the widewine encryption
aesSigningIVstring"string"Returns the AES initializing vector for the widewine encryption
rsaSigningKeyPathstring"string"Returns the RSA signing key path for the widewine encryption
rawKeyEncryptionobject0Returns the raw key encryption properties
ivstring"string"Returns the initializing vector for the raw key encryption
psshstring"string"Returns the Secure Shell protocol for the raw key encryption
rawKeysarray[object]Returns the raw keys for the raw key encryption
labelstring"string"Returns the label for the raw key
keyIdstring"string"Returns the key id for the raw key
keystring"string"Returns the key for the raw key
playReadyEncryptionobjectReturns the play ready encryption properties
playReadyServerUrlstring"string"Returns the server URL for the play ready encryption
clientCertFilestring"string"Returns the client Cert private file for the play ready encryption
clientCertPrivateKeyPasswordstring"string"Returns the client Cert private key password for the play ready encryption
resultInfoobjectReturns an object of behavior
totalCountinteger($int32)0How many records of behavior entity are in database
pageIndexinteger($int32)0Returns the page index, from which page you want to see the requested data
pageSizeinteger($int32)0Returns how many pages you want to list from page index you selected
totalPagesinteger($int32)0Returns the total number of pages
hasNextPagebooltrueReturns the next page of paginated data
hasPreviousPagebooltrueReturns the previous page of paginated data

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden
  • HTTP Status Code: 500 Server Error

PUT DRM#

Update a DRM.

PUT
MethodPUT
URL or EndPoint/api/v{version}/projects/{projectId}/drm
HeadersAuthorization
Parametersversion, projectId
BodywidevineEncryption{keyServerUrl, signer, aesSigningKey, aesSigningIV, rsaSigningKeyPath}, rawKeyEncryption{iv, pssh, rawKeys[]{label, keyId, key}}, playReadyEncryption{playReadyServerUrl, clientCertFile, clientCertPrivateKeyFile, clientCertPrivateKeyPassword}, ezDRM{username, password}

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
{version}Yesinteger($int32)1Shows the version of API
{projectId}YesGuid3fa85f64-5717-4562-b3fc-2c963f66afa6Shows the id of the project

The description of the parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
VersionYesinteger($int32)1Shows the version of API
ProjectIdYesGuid3fa85f64-5717-4562-b3fc-2c963f66afa6Shows the id of the project

Request body#


{  "widevineEncryption": {    "keyServerUrl": "string",    "signer": "string",    "aesSigningKey": "string",    "aesSigningIV": "string",    "rsaSigningKeyPath": "string"  },  "rawKeyEncryption": {    "iv": "string",    "pssh": "string",    "rawKeys": [      {        "label": "string",        "keyId": "string",        "key": "string"      }    ]  },  "playReadyEncryption": {    "playReadyServerUrl": "string",    "clientCertFile": "string",    "clientCertPrivateKeyFile": "string",    "clientCertPrivateKeyPassword": "string"  },  "ezDRM": {    "username": "string",    "password": "string"  }}
Body Parameter NameMandatoryTypeExampleDescription
widevineEncryptionYesobjectIt specifies the properties for the widewine encryption
keyServerUrlYesstring"string"It specifies the key server url for the widewine encryption
signerYesstring"string"It specifies the signer for the widewine encryption
aesSigningKeyYesstring"string"It specifies the AES signing key for the widewine encryption
aesSigningIVYesstring"string"It specifies the AES initializing vector for the widewine encryption
rsaSigningKeyPathYesstring"string"It specifies the RSA signing key path for the widewine encryption
rawKeyEncryptionYesobject0It specifies the raw key encription properties
ivYesstring"string"It specifies the initializing vector for the raw key encryption
psshYesstring"string"It specifies the Secure Shell protocol for the raw key encryption
rawKeysYesarray[object]It specifies the raw keys for the raw key encryption
labelYesstring"string"It specifies the label for the raw key
keyIdYesstring"string"It specifies the key id for the raw key
keyYesstring"string"It specifies the key for the raw key
playReadyEncryptionYesobjectIt specifies the play ready encryption properties
playReadyServerUrlYesstring"string"It specifies the server URL for the play ready encryption
clientCertFileYesstring"string"It specifies the client Cert private file for the play ready encryption
clientCertPrivateKeyPasswordYesstring"string"It specifies the client Cert private key password for the play ready encryption

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],    "result": {        "widevineEncryption": {          "keyServerUrl": "string",          "signer": "string",          "aesSigningKey": "string",          "aesSigningIV": "string",          "rsaSigningKeyPath": "string"        },        "rawKeyEncryption": {          "iv": "string",          "pssh": "string",          "rawKeys": [            {              "label": "string",              "keyId": "string",              "key": "string"            }          ]        },        "playReadyEncryption": {          "playReadyServerUrl": "string",          "clientCertFile": "string",          "clientCertPrivateKeyFile": "string",          "clientCertPrivateKeyPassword": "string"        },        "ezDRM": {          "username": "string",          "password": "string"        }    },  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
widevineEncryptionobjectReturns the properties for the widewine encryption
keyServerUrlstring"string"Returns the key server url for the widewine encryption
signerstring"string"Returns the signer for the widewine encryption
aesSigningKeystring"string"Returns the AES signing key for the widewine encryption
aesSigningIVstring"string"Returns the AES initializing vector for the widewine encryption
rsaSigningKeyPathstring"string"Returns the RSA signing key path for the widewine encryption
rawKeyEncryptionobject0Returns the raw key encription properties
ivstring"string"Returns the initializing vector for the raw key encryption
psshstring"string"Returns the Secure Shell protocol for the raw key encryption
rawKeysarray[object]Returns the raw keys for the raw key encryption
labelstring"string"Returns the label for the raw key
keyIdstring"string"Returns the key id for the raw key
keystring"string"Returns the key for the raw key
playReadyEncryptionobjectReturns the play ready encryption properties
playReadyServerUrlstring"string"Returns the server URL for the play ready encryption
clientCertFilestring"string"Returns the client Cert private file for the play ready encryption
clientCertPrivateKeyPasswordstring"string"Returns the client Cert private key password for the play ready encryption

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden
  • HTTP Status Code: 404 Not found

GET DRM#

Get a DRM.

GET
MethodGET
URL or EndPoint/api/v{version}/projects/{projectId}/drm
HeadersAuthorization
Parametersversion, projectId
BodywidevineEncryption{keyServerUrl, signer, aesSigningKey, aesSigningIV, rsaSigningKeyPath}, rawKeyEncryption{iv, pssh, rawKeys[]{label, keyId, key}}, playReadyEncryption{playReadyServerUrl, clientCertFile, clientCertPrivateKeyFile, clientCertPrivateKeyPassword}, ezDRM{username, password}

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
{version}Yesinteger($int32)1Shows the version of API
{projectId}Yesstring($Guid)3fa85f64-5717-4562-b3fc-2c963f66afa6Shows the id of the project

The description of the parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
VersionYesinteger($int32)1Shows the version of API
ProjectIdYesstring($Guid)3fa85f64-5717-4562-b3fc-2c963f66afa6Shows the id of the project

Request Body#

The request does not have a request body.

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],    "result": {        "widevineEncryption": {          "keyServerUrl": "string",          "signer": "string",          "aesSigningKey": "string",          "aesSigningIV": "string",          "rsaSigningKeyPath": "string"        },        "rawKeyEncryption": {          "iv": "string",          "pssh": "string",          "rawKeys": [            {              "label": "string",              "keyId": "string",              "key": "string"            }          ]        },        "playReadyEncryption": {          "playReadyServerUrl": "string",          "clientCertFile": "string",          "clientCertPrivateKeyFile": "string",          "clientCertPrivateKeyPassword": "string"        },        "ezDRM": {          "username": "string",          "password": "string"        }    },  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will return false
errorsarray []"string"Indicate if there was an error
messagesarray []"string"Returns the response message from back-end
resultobjectReturns the requested DRM object
widevineEncryptionobjectReturns the properties for the widewine encryption
keyServerUrlstring"string"Returns the key server url for the widewine encryption
signerstring"string"Returns the signer for the widewine encryption
aesSigningKeystring"string"Returns the AES signing key for the widewine encryption
aesSigningIVstring"string"Returns the AES initializing vector for the widewine encryption
rsaSigningKeyPathstring"string"Returns the RSA signing key path for the widewine encryption
rawKeyEncryptionobject0Returns the raw key encryption properties
ivstring"string"Returns the initializing vector for the raw key encryption
psshstring"string"Returns the Secure Shell protocol for the raw key encryption
rawKeysarray[object]Returns the raw keys for the raw key encryption
labelstring"string"Returns the label for the raw key
keyIdstring"string"Returns the key id for the raw key
keystring"string"Returns the key for the raw key
playReadyEncryptionobjectReturns the play ready encryption properties
playReadyServerUrlstring"string"Returns the server URL for the play ready encryption
clientCertFilestring"string"Returns the client Cert private file for the play ready encryption
clientCertPrivateKeyPasswordstring"string"Returns the client Cert private key password for the play ready encryption
resultInfoobjectReturns an object of behavior
totalCountinteger($int32)0How many records of behavior entity are in database
pageIndexinteger($int32)0Returns the page index, from which page you want to see the requested data
pageSizeinteger($int32)0Returns how many pages you want to list from page index you selected
totalPagesinteger($int32)0Returns the total number of pages
hasNextPagebooltrueReturns the next page of paginated data
hasPreviousPagebooltrueReturns the previous page of paginated data

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden
  • HTTP Status Code: 500 Server Error