list streaming locators.md

List Streaming Locators

POST https://app.mk.io/api/v1/projects/{project_name}/media/assets/{asset_name}/listStreamingLocators

List Streaming Locators for Asset. This API call is a convenience method to retrieve any and all playback configurations, or StreamingLocators, that are associated with this asset.

RBAC Capability Required: ams.asset.create

Authentication

Path parameters

Name Type Required Description
project_name string Yes
asset_name string Yes

Example request

curl -X POST "https://app.mk.io/api/v1/projects/{project_name}/media/assets/{asset_name}/listStreamingLocators" \
  -H "Authorization: Bearer <token>"

Responses

200 — Streaming Locators

Example:

{
  "streamingLocators": [
    {
      "alternativeMediaId": "string",
      "assetName": "string",
      "contentId": "string",
      "contentKeys": [
        {
          "id": "string",
          "labelReferenceInStreamingPolicy": "string",
          "policyName": "string",
          "tracks": [
            {
              "trackSelections": [
                {
                  "operation": {
                    "Equal": "string",
                    "Unknown": "string"
                  },
                  "property": "string",
                  "value": "string"
                }
              ]
            }
          ],
          "type": "CommonEncryptionCenc",
          "value": "string"
        }
      ],
      "defaultContentKeyPolicyName": "string",
      "defaultManifestFilename": "string",
      "endTime": "2024-01-01T00:00:00Z",
      "filters": [
        "string"
      ],
      "provisioningState": "InProgress",
      "resourceState": "Creating",
      "startTime": "2024-01-01T00:00:00Z",
      "streamingLocatorId": "00000000-0000-0000-0000-000000000000",
      "streamingPolicyName": "string",
      "suppressed": false
    }
  ]
}

400 — Bad Request

Example:

{
  "error": {
    "code": "string",
    "detail": "string",
    "extraDetail": {
      "key": null
    }
  },
  "ref": "string",
  "status": 0
}

401 — Unauthorized

Example:

{
  "error": {
    "code": "string",
    "detail": "string",
    "extraDetail": {
      "key": null
    }
  },
  "ref": "string",
  "status": 0
}

403 — Forbidden

Example:

{
  "error": {
    "code": "string",
    "detail": "string",
    "extraDetail": {
      "key": null
    }
  },
  "ref": "string",
  "status": 0
}

404 — Not Found

Example:

{
  "error": {
    "code": "string",
    "detail": "string",
    "extraDetail": {
      "key": null
    }
  },
  "ref": "string",
  "status": 0
}

429 — Too Many Requests

Example:

{
  "error": {
    "code": "string",
    "detail": "string",
    "extraDetail": {
      "key": null
    }
  },
  "ref": "string",
  "status": 0
}

500 — Internal Server Error

Example:

{
  "error": {
    "code": "string",
    "detail": "string",
    "extraDetail": {
      "key": null
    }
  },
  "ref": "string",
  "status": 0
}

Source spec: media-api · operationId: [post]_/api/v1/projects/{project_name}/media/assets/{asset_name}/listStreamingLocators