Search for devices using REST

book

Article ID: 222210

calendar_today

Updated On:

Products

CA Performance Management - Usage and Administration

Issue/Introduction

How can I search for individual devices using a REST client so I can see the device information?

Environment

Dx NetOps Performance Management any version

Resolution

- Use a REST client to hit this endpoint: http://DA_HOST:8581/rest/devices/filtered
- The method would be POST
- The filter syntac would be:

<FilterSelect xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="filter.xsd">
            <Filter>
                        <Item.Name type="EQUAL">{DEVICE_NAME}</Item.Name>
            </Filter>
            <Select use="include" isa="include"/>
</FilterSelect> 

... this gives you the option to search by device name