How can I extract the vendor attribute via DA REST API?

book

Article ID: 209811

calendar_today

Updated On:

Products

CA Performance Management - Usage and Administration

Issue/Introduction

How can I extract the vendor attribute via DA REST API?

http://DA:8581/rest/devices/

http://DA:8581/rest/devices/documentation

The following filter does not retrieve the Vendor value:

<FilterSelect xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="filter.xsd">
                <Filter>
                       <Item.Name type="CONTAINS">ATE</Item.Name>
                </Filter>
                  <Select use="exclude"   isa="exclude">
                   <Device use="exclude">
                   <Vendor use="include"/>
                   <PrimaryIPAddress use="include"/>
                   <PolledItemCount use="include"/>
                   <LocationDesc use="include"/>
                  </Device>
                     <Item use="exclude">
                        <Name use="include"/>
                        <Description use="include"/>
                     </Item>
                 </Select>
</FilterSelect>

 

Cause

The Vendor attribute is under the manageable folder. Not under the parent device folder.

http://DA:8581/rest/devices/manageable

http://DA:8581/rest/devices/manageable/documentation

Environment

Release : 20.2

Component : IM Reporting / Admin / Configuration

Resolution

1. Change the URL from: http://DA:8581/rest/devices/filtered/  to: http://DA:8581/rest/devices/manageable/filtered/

2. The Vendor information is under ManageableDevice section, instead of Device section, so use this example below:

<FilterSelect xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="filter.xsd">
<Filter>
<Item.Name type="CONTAINS">ATE</Item.Name>
</Filter>
<Select use="exclude">
    <Device>
        <PrimaryIPAddress use="include"/>
        <PolledItemCount use="include"/>
    </Device>
    <ManageableDevice>
        <Vendor use="include"/>
        <Location use="include"/>
        <SystemDescription use="include"/>
    </ManageableDevice>
    <Item>
        <Name use="include"/>
     </Item>
</Select>
</FilterSelect>

 

Attachments