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

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

すべてのAPIキーを表示

コマンド 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