Is there a way to create a filtered REST call to only return a group name and the ID?

book

Article ID: 209115

calendar_today

Updated On:

Products

DX NetOps CA Performance Management - Usage and Administration

Issue/Introduction

Is there a way to create a filtered REST call to only return a group name and the ID?

Environment

Release : 20.2

Component :

Resolution

You can utilize the below cURL call to accomplish this.  This can also be adapted for use in a tool like Postman:

 

curl --header "Content-Type: application/xml" --request POST --data '<FilterSelect xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="filter.xsd"><Select use="exclude" isa="exclude"><Item><Name use="include"/></Item></Select></FilterSelect>' --url http://daHostname:8581/rest/groups/filtered