Get CSL Protocols

Retrieves a list of protocols that are supported by CSL slicers.

Request

Request syntax:

GET /managed-slicer/slicers/protocols

Authentication

Pass a digital signature based off of msg.

Learn more.

Response

The response for a successful request contains the following properties:

NameData TypeDescription
@idStringIndicates the relative path to this endpoint.
@typeStringReturns ManagedSlicerProtocol.
protocolsList of string valuesContains a list of the protocols supported by CSL slicers.

Sample Request/Response

Call the get_csl_slicer_protocols module (Python 3) to retrieve a list of protocols. This module imports names from the api_auth module.

import requests
from api_auth import APICredentials, APIParams

class CSLSlicerProtocol:
    def __init__(self):
        self.host = "https://services.uplynk.com"

    def run(self):
        self._get_csl_slicer_protocols()

    def _get_csl_slicer_protocols(self):
        url = "{}{}".format(self.host, "/api/v4/managed-slicer/slicers/protocols")

        headers = {'Content-Type': 'application/json'}

        response = requests.get(
            url, params=APIParams(APICredentials()).get_params({}), headers=headers
        )

        print(response.json())

CSLSlicerProtocol().run()

Response:

{
	'@id': '/api/v4/managed-slicer/slicers/protocols',
	'@type': 'ManagedSlicerProtocol',
	'protocols': ['RTMP', 'RTP', 'SRT', 'RIST']
}}