パッケージ内のクラスのリストを表示します。
/api/v1/class/list?class=class&vdc=controller-name
パッケージの名前
ターゲットの仮想データ センターの名前
同期
GET
/test 内のクラスを一覧表示します。
GET http://192.168.123.200/api/v1/class/list?class=/test&vdc=mygrid
XML
<catalog> <name>filer</name> <class> <class> <name>Filer_Linux</name> <category>Filer</category> <description>Linux Filer based on Ubuntu 7.04 (v3.1.2-1)</description> <locked>1</locked> </class> <class> <name>Filer_Solaris</name> <category>Filer</category> <description>Solaris Filer based on OpenSolaris build 2008.11 (v3.1.5-1)</description> <locked>1</locked> </class> </class> </catalog>
JSON
{
"name" : "filer",
"class" : [
{
"locked" : 1,
"name" : "Filer_Linux",
"category" : "Filer",
"description" : "Linux Filer based on Ubuntu 7.04 v3.1.2-1)"
},
{
"locked" : 1,
"name" : "Filer_Solaris",
"category" : "Filer",
"description" : "Solaris Filer based on OpenSolaris build 2008.11 (v3.1.5-1)"
}
]
}
JSON の出力はすべて UTF8 にエンコードされています。 UTF8 デコードを使用して UTF8 にエンコードされた出力をデコードします。
UTF8 にエンコードされた JSON 出力をデコードするシンプルな PHP スクリプトの例を以下に示します。
<?
$json = '{"a": "¥u00e3¥u0081¥u0082" }';
$j = json_decode($json);
echo utf8_decode($j->{'a'});
?>
エンティティ vdc mygrid が見つかりません。WS_API アプリケーションに設定されていない VDC 名が指定されました。
必要な引数(class)がありません。 リクエストに引数 class=entity がありません。
アプリケーション test がありません。 リクエストに無効なアプリケーションが指定されています。
グローバル カタログ test が見つかりません。 リクエストで無効なグローバル カタログが指定されています。
| Copyright © 2011 CA. All rights reserved. | このトピックについて CA Technologies に電子メールを送信する |