Ashkan,

>/**
> >String provider   = "openstack-swift";
> >String identity   = "project:username";
> >String credential = "password";
> >Iterable<Module> modules = ImmutableSet.<Module>of(new
> SLF4JLoggingModule());
> >
> >SwiftApi swiftApi = ContextBuilder.newBuilder(provider)
> >                       .endpoint("https://identity.
> open.softlayer.com/v2.0/")
> >                       .credentials(identity, credential)
> >                       .modules(modules)
> >                       .buildApi(SwiftApi.class);
> >
> >ContainerApi containerApi = swiftApi.getContainerApi("dallas”);
> >
> >CreateContainerOptions options = CreateContainerOptions.Builder
> >       .metadata(ImmutableMap.of(
> >               "key1", "value1",
> >               "key2", "value2"));
> >
> >containerApi.create(“test-container", options);
> >*/
>
> Their official doc shows `v3` why are you using v2 [1]? Afaik jclouds
doesn't support keystone v3 yet though.

Notice also you can directly talk to softlayer object store by using
something like

-Djclouds.keystone.credential-type=tempAuthCredentials -Djclouds.endpoint=
https://ams01.objectstorage.softlayer.net/auth/v1.0

to talk to ams01 datacenter.

Another option is to use IBM Bluemix S3 Object Store [2] which is working
fine, is it a good option for you?

HTH,
Andrea

[1]:
https://console.ng.bluemix.net/docs/services/ObjectStorage/os_authenticate.html
[2]: https://ibm-public-cos.github.io/crs-docs/

Reply via email to