前のトピック: destroy メソッド(msg オブジェクト)

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


get メソッド(msg オブジェクト)
説明

ダッシュボード メッセージのテキスト/属性を取得します。

構文
/api/v1/msg/get?id=id&vdc=controller-name 
引数
id

メッセージ ID。「NNN<text>」の形式にする必要があります。

vdc

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

トランザクション タイプ

同期

リクエスト タイプ

GET

ID が 123MSG のメッセージのテキストを取得します。

GET http://192.168.123.200/api/v1/msg/get?id=123MSG&vdc=mygrid 
サンプル出力
XML:
<message> 
   <name>123MSG</name> 
   <id>123MSG</id> 
   <severity>info</severity> 
   <text>Test message</text> 
   <timestamp>1271980131</timestamp> 
</message> 
JSON:
{ 
   "timestamp" : "1271980131", 
   "text" : "Test message", 
   "name" : "123MSG", 
   "id" : "123MSG", 
   "severity" : "info" 
}