简体   繁体   English

没有API的Azure Blob共享访问签名

[英]Azure Blob Shared Access Signature without the api

I'm trying to create a REST call to Azure to List Blobs within a container. 我正在尝试创建对Azure的REST调用以列出容器内的Blob。 The container is private so I need to access it through a Shared Access Signature (SAS). 该容器是私有的,因此我需要通过共享访问签名(SAS)访问它。

I make that call in a Silverlight application so I cannot use the Client API. 我在Silverlight应用程序中进行了该调用,因此无法使用客户端API。

I find a lot of examples with ClientAPI but nothing really clear and obvious for REST. 我在ClientAPI上找到了很多示例,但对于REST来说并没有真正清楚的地方。

Anyone has a nice... clean and simple example on how to do that? 任何人都有一个很好的...关于如何做到这一点的干净简单示例?

Thanks 谢谢

I wrote a blog post a few days ago about exactly the same: http://gauravmantri.com/2013/02/13/revisiting-windows-azure-shared-access-signature/ . 我几天前写了一篇博客文章,内容大致相同: http : //gauravmantri.com/2013/02/13/revisiting-windows-azure-shared-access-signature/ I've included samples for various common functions both using REST API and Client library. 我提供了使用REST API和客户端库的各种常用功能的示例。 As far as listing blobs is concerned, if you use REST API you get raw XML back which you would need to parse in your SL app. 就列出blob而言,如果您使用REST API,则会返回原始XML,您需要在SL应用程序中对其进行解析。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM