azure - 使用其 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?
解决方案
文档中的示例:
POST https://testrest.cloudapp.net/api/Channels ('nb:chid:UUID:2c30f424-ab90-40c6-ba41-52a993e9d393')/启动 HTTP/1.1
所以你需要 ' 围绕 id 名称。
推荐阅读
- sharepoint - 将现有文档库连接到共享点站点
- python - python selenium present_of_element_located 超时
- java - 文件不断报错
- python - img 不是 numpy 数组,也不是标量
- google-bigquery - Is it possible to stream to a BigQuery partitioned table while preserve caching?
- javascript - 在图像 onError 函数上无法在渲染期间更新
- html - 单行布局,多行子元素,折叠到最小宽度
- c# - C# 网格视图未从工作过程中填充
- python - Python:将元组十六进制字符串转换为整数
- kotlin - TornadoFX:如何保留 `ItemViewModel` 的属性?