devices

内容
casp1032jp
内容
devices リソースを使用して、
CA Spectrum
デバイスおよび属性情報を取得します。
注: 
デバイス
は、
SpectroSERVER
アクション FIND_ALL_DEVICE_MODELS (0x1023a)によって返されるすべてのモデルとして定義されます。
  • ベース URL
    http://<hostname><:portnumber>/spectrum/restful/devices
GET devices
GET devicesはすべてのモデル ハンドルを返します。&attr=<
attr_id
> パラメータを使用して、特定のモデル属性を取得することができます。
  • URL
    http://<hostname><:portnumber>/spectrum/restful/devices[?attr=<attr_ID>][&landscape=<landscape_handle>][&throttlesize=<num>]
  • HTTP メソッド
    GET
  • ボディ
    なし
  • ボディ コンテンツ
    使用されません
  • ヘッダ
    application/xml、application/json
  • 出力
    SpectroSERVER
     または分散
    SpectroSERVER
     すべてのデバイス モデル ハンドルおよび要求された属性を一覧化する XML または JSON 
URL パラメータ
  • &attr=<
    attr_ID
    >
    (オプション)要求する属性を指定します。複数の属性パラメータを指定できます。
    注:
     モデルには多くの属性があります。最高のパフォーマンスのためには、属性の選択を目的の属性に制限する必要があります。
  • &landscape=<
    landscape_handle
    >
    (オプション)照会するランドスケープをフィルタします。複数のランドスケープ パラメータを指定できます。
  • &throttlesize=<
    num
    >
    (オプション)スロットル サイズを指定します。
以下の URL は、すべてのデバイスの名前およびモデル タイプを要求します。
http://<hostname><:portnumber>/spectrum/restful/devices?attr=0x1006e&attr=0x10000
要求に対して以下が返されます。
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> - <model-response-list xmlns="http://www.ca.com/spectrum/restful/schema/response" error="EndOfResults" throttle="5" total-models="5"> - <model-responses> - <model mh="0x1800178"> <attribute id="0x1006e">ciscoRPM-9.18.ca.com</attribute> <attribute id="0x10000">Rtr_Cisco</attribute> </model> - <model mh="0x1800351"> <attribute id="0x1006e">Rtr7301IPT_248</attribute> <attribute id="0x10000">Rtr_Cisco</attribute> </model> - <model mh="0x1800082"> <attribute id="0x1006e">jun2300-96.17</attribute> <attribute id="0x10000">JuniperJUNOSRtr</attribute> </model> - <model mh="0x1800062"> <attribute id="0x1006e">junM7i-96.20</attribute> <attribute id="0x10000">JuniperJUNOSRtr</attribute> </model> - <model mh="0x18002fb"> <attribute id="0x1006e">AdminActive</attribute> <attribute id="0x10000">HPBladeOnboardAdmin</attribute> </model> </model-responses> </model-response-list>