[Merging threads] Hi Ashkan,
You can use jclouds for some parts of IBM Bluemix. For Object Storage I suggest you try jclouds openstack-swift provider. For IBM Bluemix Private Cloud you can use jclouds openstack-nova [1] [1] http://jclouds.apache.org/guides/openstack/ Cheers, Valentin. On 6/8/17, 2:43 PM, "Paya, Ashkan" <ashkan.p...@dell.com> wrote: >When I try to create the SwiftApi object and issue create operation on it: > >/** >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); >*/ > >It returns 401 unauthorized. The only suspect I can think of is the way we’re >constructing identity. Credentials block has the following fields: > >{ >"auth_url": "https://identity.open.softlayer.com", > >"project": “XX", > "projectId": “XX", > "region": "dallas", > "userId": “XX", > "username": “XX", > "password": “XX", > "domainId": “XX", > "domainName": “XX", > "role": "admin" > >} > > > >Any help will be appreciated. > >Ashkan > >On 6/8/17, 12:29 PM, "Ignasi Barrera" <n...@apache.org> wrote: > >>It looks like it is compatible with the Swift API from OpenStack. In That >>case you should be able to use the jclouds Swift API: >>https://jclouds.apache.org/guides/openstack/#swift >> >>On Jun 8, 2017 8:36 PM, "Paya, Ashkan" <ashkan.p...@dell.com> wrote: >> >>Hi everyone, >> >>Can we use jclouds to connect to IBM Bluemix? I searched the web and went >>through their documentations but it seems we need other libraries for this. >>Just wanted to see if anyone has experienced this in the past? >> >>Ref: https://developer.ibm.com/recipes/tutorials/connecting- >>to-ibm-object-storage-for-bluemix-with-java/ >> >>Thank you, >>Ashkan