Search code examples
azureuriazure-media-services

How should the Microsoft Azure Media Services Channel ID be formatted when using its Rest API?


I've been reading through the Microsoft Azure documentation idealizing how one should format the strings when making calls to Microsoft Azure Media Services REST API for Channels. The documentation reads that the format should be the following:

https://<accountname>.restv2.<location>.media.azure.net/api/Channels

Therefore as I understand it, this would need to be changed to read:

https://genericAccountName.restv2.eastus.media.azure.net/api/Channels(‘genericChannelName’)

My question is, would I need to get rid of any quotes or parenthesis in the URI for accessing the Channels API?


Solution

  • The example from the doc:

    POST https://testrest.cloudapp.net/api/Channels('nb:chid:UUID:2c30f424-ab90-40c6-ba41-52a993e9d393')/Start HTTP/1.1

    so you need ' around the id name.