透過 RESTful API 存取 Ceph 儲存空間
當使用者欲使用 RESTful API 存取 Ceph 儲存系統時,必須具備 API 金鑰。
建立 API 使用者
透過 SSH 存取 CubeCOS 叢集 VIP
Warning: Permanently added '192.168.1.x' (ECDSA) to the list of known hosts.
Password:
建立 API 使用者
使用指令 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
使用指令 storage > restful > key_list
controller:restful> key_list
{
"bigstack": "5343c5c8-dc07-4427-bc07-9e4956b05a44"
}
Test the User against the API Using curl
Reference
欲了解其他用法,請參閱以下連結:Ceph Restful 模組。