メインコンテンツにスキップ
バージョン: 2.5

RESTful API 経由での Ceph ストレージへのアクセス

APIユーザーを作成する

コントローラーに接続


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

APIユーザーを作成する

CLI: storage > restful > key_create

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

すべてのAPIキーを表示

CLI: storage > restful > key_list

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

curl を使用して API に対してユーザーをテストする

例を以下に示します:

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

参照

その他の使用方法については、以下のリンクをご覧ください:Ceph Restful Module