search cancel

PM - How to insert an Interface into a Group through the Rest API?

book

Article ID: 227162

calendar_today

Updated On:

Products

CA Performance Management - Usage and Administration DX NetOps

Issue/Introduction

We are trying to insert the interface into a group by REST without success, is there an example we can follow?

Environment

PM 3.7 onwards

Resolution

See below an example for adding an Interface into a Group:

1. Create a new Group, eg: "Interfaces REST"

 

2. Navigate to Inventory -> Items -> Interfaces, and click on the Interface you are interested in adding into the Group, eg:

 

3. Note the ID for this interface in the URL ("7321"):

4. Use the following Rest call in your Rest client to insert the interface into the group:

http://CAPC:8181/pc/center/webservice/groups/groupPath/All%20Groups%2FInterfaces REST/items

NOTE: Make sure you have updated Headers so Content-Type = application/xml and that the Body field includes the interfaces to be added in the group:

 

 

5. Check that the Interface has been added to the Group:

 

Additional Information

Use Web Services to Manage Groups

Attachments