データ駆動型 REST Web サービス用の関係は以下のメソッドを使用して作成し、削除します。
PUT http://hostname:port/rest/endpoint/id/relatesto/endpoint/id DELETE http://hostname:port/rest/endpoint/id/relatesto/endpoint/id
また、以下のメソッドを使用して、入れ子になった関係を表示させることもできます。
http://hostname:port/rest/endpoint/id/relatesto/endpoint/endpoint
例
以下の URL を使用して、特定の監視プロファイル ID 781 と関連付けられたグループおよびデバイスをすべて参照します。
GET http://hostname:port/rest/monitoringprofile/781/relatesto/groups/devices
レスポンス URL は、指定された監視プロファイル ID に関連するデバイスとグループすべてをリスト表示します。この監視プロファイル ID には、現在の getlist.xsd ファイルにリスト表示されている属性が備わっています。
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|