我研究了以下用于在Azure Media Service中列出资产的API。
https://docs.microsoft.com/en-us/rest/api/media/assets/list
该API不允许基于'properties / storageAccountName'进行过滤。是否有其他方法或任何其他API可以列出该媒体服务所附加的特定存储帐户的Azure媒体服务中的资产。
答案 0 :(得分:1)
假设您正在使用Media Services API v3,请检查实体on Microsoft Docs的过滤和排序选项,您可以看到REST API范围支持的所有选项。不幸的是,这不包括您所需的属性,所以最好的办法是解析响应,然后自己过滤。
编辑:
即使您成功输入了properties/storageAccountName eq 'test'
之类的查询
您获得带有响应正文的状态码400:
{
"error": {
"code": "InvalidQuery",
"message": "Filter by 'properties/storageAccountName' is not allowed."
}
}