首页 > 解决方案 > 使用其 Rest API 时,Microsoft Azure 媒体服务通道 ID 应如何格式化?

问题描述

我一直在阅读 Microsoft Azure文档,该文档理想化了在调用 Microsoft Azure Media Services REST API for Channels 时应如何格式化字符串。该文档显示格式应如下所示:

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

因此,据我了解,这需要更改为:

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

我的问题是,我是否需要去掉 URI 中的任何引号或括号才能访问 Channels API?

标签: azureuriazure-media-services

解决方案


文档中的示例:

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

所以你需要 ' 围绕 id 名称。


推荐阅读