アプリケーション テンプレートを一覧表示します。
/api/v1/template/list?vdc=controller-name
ターゲットの仮想データ センターの名前
同期
GET
アプリケーション テンプレートを一覧表示します。
GET http://192.168.123.200/api/v1/template/list?vdc=mygrid
XML
<templates> template> name>TWiki_r11</name> description>TWiki 4.3.1 collaboration platform (v4.3.1-7)</description> destroy_on_stop>0</destroy_on_stop> doc_url>http://doc.3tera.net/AppLogic29/RefAppsTWiki4.html</doc_url> id>2</id> state>stopped</state> template>0</template> user1></user1> user2></user2> </template> . . . </templates>
JSON
{
"template" : [
{
"template" : "0",
"user1" : "",
"name" : "TWiki_r11",
"description" : "TWiki 4.3.1 collaboration platform (v4.3.1-7)",
"state" : "stopped",
"doc_url" : "http://doc.3tera.net/AppLogic29/RefAppsTWiki4.html",
"destroy_on_stop" : "0",
"id" : "2",
"user2" : ""
},
.
.
.
}
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 名が指定されました。
| Copyright © 2011 CA. All rights reserved. | このトピックについて CA Technologies に電子メールを送信する |