DX NetOps

  • 1.  How to create a group rule in the Groups REST API?

    Posted Apr 12, 2019 01:46 PM

    I have been successful at creating a group using the PC REST API. However, now I want to add a rule (filter) to that group. For example:

     

    <Match>
    <Compare readOnly="true" using="MEMBER_OF">
    <Property label="Item" name="ItemID" subType="" type="device" typeLabel="Device" typeLabels="Devices"/>
    <Value displayValue="/All Groups">1</Value>
    </Compare>
    <Compare readOnly="false" using="BETWEEN">
    <Property label="Address" name="Address" subType="" type="device" typeLabel="Device" typeLabels="Devices"/>
    <ValueList>
    <Value>10.10.10.0</Value>
    <Value>10.10.10.255</Value>
    </ValueList>
    </Compare>
    </Match>

     

    I have tried every documented URL in the CA PM 3.6 docs with a POST and the rule will not get added to the group. The web service will return a successful OK 200 as well. When I do a get to get the group, nothing but the group ID and name show up in the XML.



  • 2.  Re: How to create a group rule in the Groups REST API?

    Broadcom Employee
    Posted Apr 17, 2019 06:22 PM

    Hi Mitch,

     

    Is that the full XML being entered in the body of the POST issued to the URL to update the group with those rules?

     

    What URL is used to issue the POST?

     

    We're both looking at the same docs here in the Add Group Rules section?

     

    Use Web Services to Manage Groups - CA Performance Management - 3.6 - CA Technologies Documentation 

     

    Thanks,

    Mike