问题描述
我一直遇到Azure Blob REST Api的“按标签获取”功能的问题。
我正在尝试从blob添加和读取标签,但是当通过邮递员从url向url请求时,类似于- https://xxxx.blob.core.windows.net/xxx/myblob?comp=tags,我收到以下答复
<?xml version="1.0" encoding="utf-8"?>
<Error>
<Code>InvalidQueryParameterValue</Code>
<Message>Value for one of the query parameters specified in the request URI is invalid.
RequestId:92580002-101e-001c-7af7-76bf3e000000
Time:2020-08-20T13:42:08.8566047Z</Message>
<QueryParameterName>comp</QueryParameterName>
<QueryParameterValue>tags</QueryParameterValue>
<Reason />
</Error>
解决方法
这是Blob的新功能。现在,此功能处于预览状态,并且仅支持以下区域:
- 加拿大中部
- 加拿大东部
- 法国中部
- 法国南部
由于此功能仅在公共预览中,因此您需要先注册订阅,然后才能使用该功能。阅读this article了解更多详情。