OpManager ナレッジベース

associateNotificationProfilesのRestAPIが動作しない


【現象/要望】

associateNotificationProfilesのRestAPIが動作しない。

【原因】

ver 11.6とver 12.3では、associateNotificationProfilesのRestAPIの仕様が変更になりました。
【解決方法】

ver 12.3では以下を実行します。

http://XXX.XXX.XXX.XXX/api/json/admin/associateNotificationProfiles?apiKey=yyyyyyyyyyyyyyyyyyyyy&profiles=301,302&deviceName=opman-k8r2s-64-3.testdomain.com,opman-k8r2s-64-4.testdomain.com
profilesのパラメータ 0301や302は通知プロファイルのIDです。
通知プロファイルのIDは以下のAPIで確認できます。
http://XXX.XXX.XXX.XXX/api/json/admin/listNotificationProfiles?apiKey=yyyyyyyyyyyyyyyyyyyyy&isFluidic=true&profileFilter=All

 

【対応リリース】x.x