Assets - List Streaming Locators

List Streaming Locators
Lists Streaming Locators which are associated with this asset.

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/listStreamingLocators?api-version=2022-08-01

URI Parameters

Name In Required Type Description
accountName
path True

string

The Media Services account name.

assetName
path True

string

The Asset name.

resourceGroupName
path True

string

The name of the resource group within the Azure subscription.

subscriptionId
path True

string

The unique identifier for a Microsoft Azure subscription.

api-version
query True

string

The version of the API to be used with the client request.

Responses

Name Type Description
200 OK

ListStreamingLocatorsResponse

OK

Other Status Codes

ErrorResponse

Detailed error information.

Examples

List Asset SAS URLs

Sample Request

POST https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountSaintHelens/listStreamingLocators?api-version=2022-08-01

Sample Response

{
  "streamingLocators": [
    {
      "name": "secureStreamingLocator",
      "assetName": "ClimbingMountSaintHelens",
      "created": "2018-08-08T18:29:26.9729344Z",
      "endTime": "9999-12-31T23:59:59.9999999Z",
      "streamingLocatorId": "36b74ce3-20b4-4de0-84f1-97e9138e886c",
      "streamingPolicyName": "secureStreamingPolicy"
    },
    {
      "name": "clearStreamingLocator",
      "assetName": "ClimbingMountSaintHelens",
      "created": "2018-08-08T18:29:26.9487636Z",
      "endTime": "9999-12-31T23:59:59.9999999Z",
      "streamingLocatorId": "3e8d9ac3-50f6-4f6d-8482-078ceb56f23a",
      "streamingPolicyName": "clearStreamingPolicy"
    }
  ]
}

Definitions

Name Description
AssetStreamingLocator

Properties of the Streaming Locator.

ErrorAdditionalInfo

The resource management error additional info.

ErrorDetail

The error detail.

ErrorResponse

Error response

ListStreamingLocatorsResponse

The Streaming Locators associated with this Asset.

AssetStreamingLocator

Properties of the Streaming Locator.

Name Type Description
assetName

string

Asset Name.

created

string

The creation time of the Streaming Locator.

defaultContentKeyPolicyName

string

Name of the default ContentKeyPolicy used by this Streaming Locator.

endTime

string

The end time of the Streaming Locator.

name

string

Streaming Locator name.

startTime

string

The start time of the Streaming Locator.

streamingLocatorId

string

StreamingLocatorId of the Streaming Locator.

streamingPolicyName

string

Name of the Streaming Policy used by this Streaming Locator.

ErrorAdditionalInfo

The resource management error additional info.

Name Type Description
info

object

The additional info.

type

string

The additional info type.

ErrorDetail

The error detail.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

The error additional info.

code

string

The error code.

details

ErrorDetail[]

The error details.

message

string

The error message.

target

string

The error target.

ErrorResponse

Error response

Name Type Description
error

ErrorDetail

The error object.

ListStreamingLocatorsResponse

The Streaming Locators associated with this Asset.

Name Type Description
streamingLocators

AssetStreamingLocator[]

The list of Streaming Locators.