前のトピック: template オブジェクト

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


list メソッド(template オブジェクト)
説明

アプリケーション テンプレートのリストを取得します

構文
/api/v1/template/list?vdc=controller-name 
引数
vdc

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

トランザクション タイプ

同期

リクエスト タイプ

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" : "" 
      }, 
         
         
         
} 

HTTP エラー コード
404

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