アプリケーション コンポーネントのリストを取得します。
/api/v1/comp/list?app=application&vdc=controller-name
アプリケーションの名前
ターゲットの仮想データ センターの名前
同期
GET
アプリケーション test のコンポーネントのリストを取得します。
GET http://192.168.123.200/api/v1/comp/list?app=test&vdc=mygrid
<application> <name>sugarcrm</name> <components> <component> <name>main.admin</name> <bw>50000000</bw> <cpu>0.05</cpu> <mem>67108864</mem> <server>srv2</server> <state>running</state> </component> <component> <name>main.config</name> <bw>150000000</bw> <cpu>0.20</cpu> <mem>268435456</mem> <server>srv3</server> <state>running</state> </component> <component> <name>main.dbase</name> <bw>100000000</bw> <cpu>0.40</cpu> <mem>536870912</mem> <server>srv1</server> <state>running</state> </component> </components> </application>
{ "component" : [ { "bw" : "50000000", nbsp; "cpu" : "0.05", "name" : "main.admin", "mem" : "67108864", "server" : "srv2", "state" : "running" }, { "bw" : "150000000", "cpu" : "0.20", "name" : "main.config", "mem" : "268435456", "server" : "srv3", "state" : "running" }, { "bw" : "100000000", "cpu" : "0.40", "name" : "main.dbase", "mem" : "536870912", "server" : "srv1", "state" : "running" }, ], "name" : "sugarcrm" }
エンティティ vdc mygrid が見つかりません。WS_API アプリケーションに設定されていない VDC 名が指定されました。
必要な引数(app)がありません。リクエストに引数 app=app がありません。
アプリケーション test のコンポーネントを一覧表示できませんでした。インストールされていません。リクエストに無効なアプリケーション名が指定されました。
アプリケーション ws_api のコンポーネントを一覧表示できませんでした。情報の取得に失敗しました。実行中でないことが原因である可能性があります。 コンポーネント リストをリクエストしたアプリケーションは停止状態にあります。
Copyright © 2012 CA. All rights reserved. |
|