且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

带有Curl的Azure存储表API REST

更新时间:2022-04-14 00:12:56

查询实体时无需更改 string_to_sign ,请参见

No need to change string_to_sign when querying entity, see Authorization Header.

查询字符串应包含问号和comp参数(例如,?comp = metadata).查询字符串中不应包含其他任何参数.

The query string should include the question mark and the comp parameter (for example, ?comp=metadata). No other parameters should be included on the query string.

如果要使用PartitionKey获取整个实体,请将url更改为($需要编码为%24)

If you want to get whole entity using PartitionKey, change url to($ need encoding to %24)

https://${storage_account}.${table_store_url}/${table_name}?%24filter=PartitionKey%20eq%20'YourPartitionKey'

或者,如果您只想检索RowKey,请在其后附加&%24select = RowKey .

Or if you only want to retrieve RowKey, append &%24select=RowKey after that.

-H"Content-Length:0" 是没有用的,只需将其删除即可.

Also -H "Content-Length: 0" is useless, just delete it.