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


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

クラス記述子を表示します。

構文
/api/v2/class/get_desc?class=class&vdc=controller-name 
引数
クラス

クラスの名前

vdc

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

トランザクション タイプ

同期

リクエスト タイプ

GET

/test:LUX5 の記述子を表示します。

GET http://192.168.123.200/api/v2/class/get_desc?class=/test:LUX5&vdc=mygrid 
サンプル出力
XML:
<message>component LUX5 
   { 
   .category         = Generic 
   .description      = &quot;Generic Linux Appliance - based on CentOS 5.4 (v1.3.1-1)&quot; 
   .doc_url          = &quot;http://doc.3tera.com/AppLogic29/CatGenericLux.html&quot; 
   .config_mode      = dhcp 
   .migrateable      = 1 
 
   volume boot       : class               , boot           , dev  = /dev/hda1 , type = instantiable 
   volume usr        : class               , shared         , ro               , dev  = /dev/hda2    , type = common 
 
   resource cpu      : min      = 0.05     , max      = 4   , dflt = 0.05 
   resource mem      : min      = 64M      , max      = 2G  , dflt = 128M 
   resource bw       : min      = 1M       , max      = 2G  , dflt = 100M 
 
   input in          : protocol = any 
   output out        : protocol = any 
   output net        : gateway             , protocol = any 
   output mon        : protocol = cce 
 
   interface default 
 
   virtualization    : mode     = paravirt 
      { 
      console       = &quot;ssh:22,text&quot; 
      device_schema = /dev/hdaX 
      } 
 
   visual 
      { 
      color      = gray 
      style      = small 
      size       = 3 
      east       = ooo 
      west       = i 
      picture    = linux 
 
      output out : orient = east 
      input in   : orient = west 
      output mon : orient = east 
      output net : orient = east 
      } 
   } 
</message>
JSON:
{ 
   "message" : "component LUX5¥n   {¥n   .category         = Generic¥n   .description      = ¥"Generic Linux Appliance - based on CentOS 5.4 (v1.3.1-1)¥"¥n   .doc_url          = ¥"http://doc.3tera.com/AppLogic29/CatGenericLux.html¥"¥n   .config_mode      = dhcp¥n   .migrateable      = 1¥n¥n   volume boot       : class               , boot           , dev  = /dev/hda1 , type = instantiable¥n   volume usr        : class               , shared         , ro               , dev  = /dev/hda2    , type = common¥n¥n   resource cpu      : min      = 0.05     , max      = 4   , dflt = 0.05¥n   resource mem      : min      = 64M      , max      = 2G  , dflt = 128M¥n   resource bw       : min      = 1M       , max      = 2G  , dflt = 100M¥n¥n   input in          : protocol = any¥n   output out        : protocol = any¥n   output net        : gateway             , protocol = any¥n   output mon        : protocol = cce¥n¥n   interface default¥n¥n   virtualization    : mode     = paravirt¥n      {¥n      console       = ¥"ssh:22,text¥"¥n      device_schema = /dev/hdaX¥n      }¥n¥n   visual¥n      {¥n      color      = gray¥n      style      = small¥n      size       = 3¥n      east       = ooo¥n      west       = i¥n      picture    = linux¥n¥n      output out : orient = east¥n      input in   : orient = west¥n      output mon : orient = east¥n      output net : orient = east¥n      }¥n   }¥n" 
}

HTTP エラー コード
404

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

400.4

必要な引数(class)がありません。引数 class=class がありません。

404.1

グローバル カタログ test が見つかりません。無効なカタログが指定されています。

404.1

カタログ クラス LUX が見つかりません。無効なクラスが指定されています。