是否有 API 列出属于特定存储帐户的媒体服务帐户中的资产

Is there any API to List Assets in the Media Services account which belongs to particular storage account

我已查看下面 API 以列出 Azure 媒体服务中的资产。

https://docs.microsoft.com/en-us/rest/api/media/assets/list

此 API 不允许基于 'properties/storageAccountName' 进行过滤。是否有任何其他方式或任何其他 API 列出附加到该媒体服务的特定存储帐户的 Azure 媒体服务中的资产。

假设您使用的是媒体服务 API v3,检查实体的过滤和排序选项 on Microsoft Docs,您可以看到 REST API 支持的所有选项范围。不幸的是,这不包括您需要的 属性,所以您最好的办法是解析响应,然后自行过滤。

编辑: 即使您设法输入 properties/storageAccountName eq 'test' 之类的查询 您获得状态代码 400 和响应正文:

{
  "error": {
    "code": "InvalidQuery",
    "message": "Filter by 'properties/storageAccountName' is not allowed."
  }
}