Switch branches/tags
Nothing to show
Find file History
Latest commit 5662aae Nov 24, 2016 @andreaturli andreaturli update blobstore-basics to use 2.0.0
update README with SL Object Storage example
address comments



This is a simple example command line client that creates a container in a BlobStore provider and lists the size of all the other containers.


Ensure you have maven 3.02 or higher installed, then execute 'mvn install' to build the example.


Invoke the jar, passing the name of the cloud provider you with to access (ex. aws-s3, googlestorage), identity (ex. accesskey, username), credential (ex. secretkey, password), then the name of the container you'd like to create.

For Amazon S3

java -jar target/blobstore-basics-jar-with-dependencies.jar aws-s3 accesskey secretkey myfavoritecontainer

For Rackspace CloudFiles

java -jar target/blobstore-basics-jar-with-dependencies.jar cloudfiles-us username apikey myfavoritecontainer

For IBM SoftLayer ObjectStore in ams01

java -Djclouds.keystone.credential-type=tempAuthCredentials -Djclouds.endpoint=https://ams01.objectstorage.softlayer.net/auth/v1.0/ -jar target/blobstore-basics-jar-with-dependencies.jar openstack-swift username apikey myfavoritecontainer https://ams01.objectstorage.softlayer.net/auth/v1.0/


Copyright (C) 2009-2014 The Apache Software Foundation

Licensed under the Apache License, Version 2.0