跳到主內容
版本:2.5

透過 RESTful API 存取 Ceph 儲存空間

建立 API 使用者

連接至控制器


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

建立 API 使用者

命令列介面:儲存 > RESTful > 建立金鑰

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

List All API Keys

命令列介面:儲存空間 > RESTful > 鍵值清單

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

欲了解其他用法,請參閱以下連結:Ceph Restful 模組