当我尝试在 microsoft flow 中调用此https://docs.microsoft.com/en-us/rest/api/storageservices/get-blob-metadata api 时,我总是收到 400 错误请求的错误。
我编辑了有关此答案的授权标头https://stackoverflow.com/a/22029178/10389562但不知道我做错了什么。
Method: GET
Uri: https://myaccount.blob.core.windows.net/containername/blobname?comp=metadata
Headers :
{
"Authorization": "SharedKey storageaccountname: primary key in the storage
account properties",
"x-ms-date": "Thu, 21 Sep 2018 23:45:00 GMT",
"x-ms-version": "2018-03-28"
}
调用此 API 后,我得到了此输出
<?xml version="1.0" encoding="utf-8"?><Error>
<Code>InvalidAuthenticationInfo</Code><Message>Authentication information is
not given in the correct format. Check the value of Authorization header.
RequestId:f3b3051b-601e-00a4-4b3c-51c58d000000
Time:2018-09-20T23:46:40.6659210Z</Message></Error>
谢谢你的帮助