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

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"
}

APIを使ってユーザーをテストするには、curl を使用できます

例を以下に示します:

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

参照

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