Skip to main content
Version: 3.1

Access Ceph storage via the RESTful API

When Users want to use the RESTful API to access the Ceph Storage, you must be have API Keys.

Create an API user​

Access the CubeCOS cluster VIP via SSH​


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

Create an API user​

Use command 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​

Use command storage > restful > key_list

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

Test the user against the API using curl​

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

Reference​

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