KMS API

GET kms/config

Resource Information

Requires Authentication?

Yes

Response Formats

json

HTTP Methods

GET

Returns a list of KMS configurations.

Resource URL

http://{host}/api/2.0/kms/config/.format

Example Request

GET 

  1. http://192.168.10.132/api/2.0/kms/config/.json

[     {         "KeyManagerServer": {             "id": 3,             "title": "play",             "key_manager_type_id": 3,             "modified": "1662983515505",             "created": "1662983513993",             "manifest_url": null,             "server_url": null,             "network_id": 1         }     },     {         "KeyManagerServer": {             "id": 4,             "title": "sim",             "key_manager_type_id": 1,             "modified": "1662983513995",             "created": "1662983513995",             "network_id": 1         }     },     {         "KeyManagerServer": {             "id": 5,             "title": "syn",             "key_manager_type_id": 10,             "modified": "1662983515505",             "created": "1662983513997",             "server_url": "https://synmedia.in",             "asset_ids": "a1,a2",             "network_id": 1,             "download_rate": 30         }     } ]

 


 

GET kms/config/{id}

Resource Information

Requires Authentication?

Yes

Response Formats

json

HTTP Methods

GET

Returns a single KMS configuration.

Resource URL

http://{host}/api/2.0/kms/config/{id}/.format

Parameters

Parameter

Data Type

Description

id
(required)

integer

The ID of the desired KMS configuration.

Example Request

GET 

  1. http://192.168.10.132/api/2.0/kms/config/3/.json

{ "KeyManagerServer": { "id": 3, "title": "play", "key_manager_type_id": 3, "modified": "1662983515505", "created": "1662983513993", "manifest_url": null, "server_url": null, "network_id": 1 } }

 


 

POST kms/config

Resource Information

Requires Authentication?

Yes

Response Formats

json

HTTP Methods

POST

Adds a new KMS.

Resource URL

http://{host}/api/2.0/kms/config/.format

Example Request

POST 

  1. http://192.168.10.132/api/2.0/kms/config/.json

{ "KeyManagerServer": { "title": "sim_2", "key_manager_type_id": 1, "network_id": 1 } }

  


 

PUT kms/config/{id}

Resource Information

Requires Authentication?

Yes

Response Formats

json

HTTP Methods

PUT

Updates an existing KMS configuration.

Resource URL

http://{host}/api/2.0/kms/config/{id}/.format

Parameters

Parameter

Data Type

Description

id
(required)

integer

The ID of the desired KMS to be updated.

Example Request

PUT 

  1. http://192.168.10.132/api/2.0/kms/config/1/.json

 


 

DELETE kms/config/{id}

Resource Information

Requires Authentication?

Yes

Response Formats

json

HTTP Methods

DELETE

Deletes an existing KMS configuration.

Resource URL

http://{host}/api/2.0/kms/config/{id}/.format

Parameters

Parameter

Data Type

Description

id
(required)

integer

The ID of the desired KMS configuration to be deleted.

Example Request

DELETE 

  1. http://192.168.10.132/api/2.0/kms/config/3/.json