Can someone tell how to list available containers in Openstack SWIFT using Jcloud ? We have used keystone for authentication.
有人能说出如何使用Jcloud在Openstack SWIFT中列出可用的容器吗?我们使用keystone进行身份验证。
Any help is appreciated :)
任何帮助表示赞赏:)
2 个解决方案
#1
1
If you are using the portable abstraction, you can list all containers with BlobStore.list
. Note that this differs from BlobStore.list(String)
, which lists blobs within a container.
如果您使用的是可移植抽象,则可以使用BlobStore.list列出所有容器。请注意,这与BlobStore.list(String)不同,后者列出容器中的blob。
#2
0
If you're looking for a complete Swift example, read the OpenStack: Getting Started Guide for jclouds. It has an example for listing containers.
如果您正在寻找一个完整的Swift示例,请阅读jStouds的OpenStack:入门指南。它有一个列出容器的例子。
#1
1
If you are using the portable abstraction, you can list all containers with BlobStore.list
. Note that this differs from BlobStore.list(String)
, which lists blobs within a container.
如果您使用的是可移植抽象,则可以使用BlobStore.list列出所有容器。请注意,这与BlobStore.list(String)不同,后者列出容器中的blob。
#2
0
If you're looking for a complete Swift example, read the OpenStack: Getting Started Guide for jclouds. It has an example for listing containers.
如果您正在寻找一个完整的Swift示例,请阅读jStouds的OpenStack:入门指南。它有一个列出容器的例子。