前のトピック: fsrepair メソッド(vol オブジェクト)

次のトピック: repair メソッド(vol オブジェクト)

check メソッド(vol オブジェクト)

説明

修復を必要とするボリュームのバックグラウンド チェックを開始します。

構文
/api/v1/vol/check?vdc=controller-name 
引数
controller-name

ターゲットの仮想データ センターの名前

トランザクション タイプ

非同期

リクエスト タイプ

GET

ボリュームのバックグラウンド チェックを開始します。

GET http://192.168.123.200/api/v1/vol/check?vdc=mygrid 
サンプル出力

XML

<message>A background check for volumes that need repair has been initiated and may take a few minutes to complete. Execute 'vol repair --status' to retrieve the current state of the volumes that are being repaired.</message> 



JSON

{
"message" : "A background check for volumes that need repair has been initiated and may take ¥na few minutes to complete. Execute 'vol repair --status' to retrieve the ¥ncurrent state of the volumes that are being repaired.¥n"
} 

メモ

JSON の出力はすべて UTF8 にエンコードされています。 UTF8 デコードを使用して UTF8 にエンコードされた出力をデコードします。

UTF8 にエンコードされた JSON 出力をデコードするシンプルな PHP スクリプトの例を以下に示します。

<? 
$json = '{"a": "¥u00e3¥u0081¥u0082" }'; 
$j = json_decode($json); 
echo utf8_decode($j->{'a'}); 
?>

HTTP エラー コード
404

エンティティ vdc mygrid が見つかりません。WS_API アプリケーションに設定されていない VDC 名が指定されました。

404

修復が必要なボリュームのバックグラウンド チェックはすでに進行中です。