Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Returns a list of KMS configurations.
Resource URL
http://{host}/api/2.0/kms/config/.format
Example Request
GET
Code Block | ||
---|---|---|
| ||
[ { "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? | |
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 | integer | The ID of the desired KMS configuration. |
Example Request
GET
Code Block | ||
---|---|---|
| ||
{ "KeyManagerServer": { "id": 3, "title": "play", "key_manager_type_id": 3, "modified": "1662983515505", "created": "1662983513993", "manifest_url": null, "server_url": null, "network_id": 1 } } |
Adds a new KMS.
Resource URL
http://{host}/api/2.0/kms/config/.format
Example Request
POST
Body
Code Block | ||
---|---|---|
| ||
{ "KeyManagerServer": { "title": "sim_2", "key_manager_type_id": 1, "network_id": 1 } } |
Response
Code Block | ||
---|---|---|
| ||
{ "KeyManagerServer": { "id": 1, "title": "sim_2", "key_manager_type_id": 1, "modified": "1664363654499", "created": "1664363654499", "network_id": 1 } } |
PUT kms/config/{id}
Resource Information
Requires Authentication? | |
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 | integer | The ID of the desired KMS to be updated. |
Example Request
PUT
Body
Code Block | ||
---|---|---|
| ||
{ "KeyManagerServer": { "id": 1, "title": "sim_2_ed", "key_manager_type_id": 1, "modified": "1664371585658", "created": "1664371585658", "network_id": 1 } } |
Response
Code Block | ||
---|---|---|
| ||
{ "KeyManagerServer": { "id": 1, "title": "sim_2_ed", "key_manager_type_id": 1, "modified": "1664377683935", "created": "1664377679037", "network_id": 1 } } |
DELETE kms/config/{id}
Resource Information
Requires Authentication? | |
Response Formats | json |
HTTP Methods | DELETE |
Deletes an existing Display AgentKMS configuration.
Resource URL
http://{host}/api/2.0/kms/config/{id}/.format
Parameters
Parameter | Data Type | Description |
---|---|---|
id | integer | The ID of the desired KMS configuration to be deleted. |
Example Request
DELETE
Code Block | ||
---|---|---|
| ||
{ "success": true } |