DX Spectrum - Adding a Pingable device using the Restful API fails

book

Article ID: 197501

calendar_today

Updated On:

Products

CA Spectrum CA eHealth

Issue/Introduction

Using Post Model in the Restful API fails when adding model type handle 0x10290 (Pingable) and an IP address.

Cause

The ip address needs to be added as an attribute and then add the value for the ip address.

Environment

Release : 10.4.1

Component : Spectrum Core / SpectroSERVER

Resolution

The ip address needs to be added as an attribute and then add the value for the ip address
&attr=0x12d7f&val=x.x.x.x

http://localhost/spectrum/restful/model?mtypeid=0x00010290&parentmh=0x4000000&attr=0x12d7f&val=x.x.x.x

where x.x.x.x is the ip address. It is discussed here

https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/spectrum/10-4-2/programming/web-services-api-reference/how-to-use-the-ca-spectrum-web-services-api/restful-resources-nouns/model/example-create-a-model-based-on-model-type.html

Additional Information

https://community.broadcom.com/communities/community-home/digestviewer/viewthread?MID=820574