前のトピック: import メソッド(app オブジェクト)次のトピック: put_desc メソッド(app オブジェクト)


get_desc メソッド(app オブジェクト)
説明

アプリケーション パッケージ記述子を取得します。

構文
/api/v2/app/get_desc?app=application&vdc=controller-name
引数
app

アプリケーションの名前

vdc

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

トランザクション タイプ

同期

リクエスト タイプ

GET

アプリケーション test のパッケージ記述子を取得します。

GET http://192.168.123.200/api/v2/app/get_desc?app=test&vdc=mygrid 
サンプル出力
XML:
<message>package test
   { 
   type          = application 
   description   = quot;test description&quot; 
   uid           = 12 
 
   package local : file = local/package.desc , type      = catalog 
 
   class top     : top                       , singleton 
   class main    : file = main.desc          , singleton 
   } 
 
assembly top 
   { 
   .category        = General 
 
   subordinate main : .class = main 
 
   visual 
      { 
      color = gray 
      style = small 
      pan_x = 0 
      pan_y = 0 
      } 
   } 
</message>
JSON:
{ 
   "message" : "package test¥n   {¥n   type          = application¥n   description   = ¥"test description¥"¥n uid           = 12¥n¥n   package local : file = local/package.desc , type      = catalog¥n¥n   class top : top                       , singleton¥n   class main    : file = main.desc          , singleton¥n   }¥n¥nassembly top¥n   {¥n   .category = General¥n¥n   subordinate main : .class = main¥n¥n visual¥n      {¥n      color = gray¥n      style = small¥n pan_x = 0¥n      pan_y = 0¥n      }¥n   }¥n"
}

HTTP エラー コード
404

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

400.4

必要な引数(app)がありません。リクエストに引数 app=app がありません。

404.1

エンティティが見つかりません - 権限が拒否されました – アプリケーション test が存在しません。