从Azure表存储Rest API删除实体

问题描述 投票:0回答:1

我收到HTTP错误400。从表中删除Enatity时,请求的格式错误,这是我使用的其余api

https://myaccount.table.core.windows.net:443/DeviceList(PartitionKey=hhhh, RowKey=test1)

Headers =

Authorization :SharedKey accountname:Base64(HMAC-SHA256(DELETE + "\n" +"\n"+"\n"+Sat, 25 May 2013 15:50:20+"\n"+/accountname/Tables))
azure azure-table-storage
1个回答
0
投票

我遇到了同样的问题,但终于解决了。就我而言,我必须添加带有“ *”值的“ If-Match”请求标头。这就是使我的通话正常的原因。

在这里您可以找到删除操作的请求标题信息,https://docs.microsoft.com/en-us/rest/api/storageservices/delete-entity1#request

© www.soinside.com 2019 - 2024. All rights reserved.