Skip to main content
Version: 2.5

Accessing Ceph Storage via RESTful API

Create an API User

Connect to a Controller

ssh [email protected]

Warning: Permanently added '192.168.1.x' (ECDSA) to the list of known hosts.
Password:

Create an API User

CLI: storage > restful > key_create

controller> storage
controller:storage> restful
controller:restful> key_create
Input username: bigstack
5343c5c8-dc07-4427-bc07-9e4956b05a44

List All API Keys

CLI: storage > restful > key_list

controller:restful> key_list
{
"bigstack": "5343c5c8-dc07-4427-bc07-9e4956b05a44"
}

Test the User against the API Using curl

Here is an example:

curl -k https://bigstack:[email protected]:8003/server

Referrence

For additional usage please check out the link: Ceph Restful Module.