我正在使用 Windows azure blob 存储服务。我想保护我的 blob 免受公共访问(我的用户除外)。为此,我使用了共享访问签名 (SAS),它工作正常。但我的问题是我有一个在目录结构中包含 blob 的容器,例如:
https://xxxxxxx.blob.core.windows.net/myContainer/directory1/blob1
https://xxxxxxx.blob.core.windows.net/myContainer/directory1/blob2
https://xxxxxxx.blob.core.windows.net/myContainer/directory1/blob3
https://xxxxxxx.blob.core.windows.net/myContainer/directory1/blob4
https://xxxxxxx.blob.core.windows.net/myContainer/directory1/blob5
https://xxxxxxx.blob.core.windows.net/myContainer/directory2/blob1
https://xxxxxxx.blob.core.windows.net/myContainer/directory2/blob2
https://xxxxxxx.blob.core.windows.net/myContainer/directory2/blob3
https://xxxxxxx.blob.core.windows.net/myContainer/directory2/blob4
https://xxxxxxx.blob.core.windows.net/myContainer/directory2/blob5
and so on...
现在我的要求是我想公开访问所有 blob 中的 blob,myContainer under directory2
但不提供下directory1
的 blob,我想将 directory1 下的所有 blob 保持为私有。我怎样才能做到这一点?