get streaming locator.md

Get Streaming Locator

Media API · Streaming Locators

GET https://app.mk.io/api/v1/projects/{project_name}/media/streamingLocators/{locator_name}

Returns a single Streaming Locator for a given project.

RBAC Capability Required: ams.streaminglocator.get

Authentication

Path parameters

Name Type Required Description
project_name string Yes
locator_name string Yes

Example request

curl -X GET "https://app.mk.io/api/v1/projects/{project_name}/media/streamingLocators/{locator_name}" \
  -H "Authorization: Bearer <token>"

Responses

200 — one Streaming Locator

Example:

{
  "id": "string",
  "name": "name",
  "properties": {
    "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
  },
  "systemData": {
    "createdAt": "2024-01-01T00:00:00Z",
    "createdBy": "string",
    "createdByType": "User",
    "internalId": "00000000-0000-0000-0000-000000000000",
    "lastModifiedAt": "2024-01-01T00:00:00Z",
    "lastModifiedBy": "string",
    "lastModifiedByType": "User"
  },
  "type": "string"
}

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: [get]_/api/v1/projects/{project_name}/media/streamingLocators/{locator_name}