Accessing Ceph Storage via restful API
Create an API user
Connect to console
$ ssh [email protected]
Warning: Permanently added '192.168.1.x' (ECDSA) to the list of known hosts.
Password:
To create an API user, please run the following command:
CLI: storage > restful > key_create
controller> storage
controller:storage> restful
controller:restful> key_create
Input username: bigstack
5343c5c8-dc07-4427-bc07-9e4956b05a44
To list all of your API keys, please run the following command:
CLI: storage > restful > key_list
controller:restful> key_list
{
"bigstack": "5343c5c8-dc07-4427-bc07-9e4956b05a44"
}
You can use curl in order to test your user with the API.
Here is an example:
curl -k https://bigstack:[email protected]:8003/server
Referrence
For additional usage please check out the links: Ceph Restful Module