O'Reilly logo

Learning Ceph - Second Edition by Karan Singh, Vaibhav Bhembre, Anthony D'Atri

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Performing Object Operations using the Swift API

Now that we have the Swift client installed, let's use it to create a new bucket on our Ceph object storage. We will cleverly name our new bucket example-bucket. Once the bucket creation completes we'll list all buckets our user has access to and verify that the previously created buckets are visible:

root@ceph-rgw0:~# swift -V 1.0 -A http://ceph-rgw.objectstorage.example.com/auth -U harshita:swift -K m38OvpnOMf8ILNZyfDuKTDTWKC7YCEUH9v4Te64o post example-bucketroot@ceph-rgw0:~# swift -V 1.0 -A http://ceph-rgw.objectstorage.example.com/auth -U harshita:swift -K m38OvpnOMf8ILNZyfDuKTDTWKC7YCEUH9v4Te64o listexample-bucketfirst-bucket

Swift commands are constructed using the following syntax:

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required