Dear community,
I want to search for a bulk of devices. I am only interested in devices having FOO in their Model_Name and only located in the specific landscape 0x5000000.
My XML is:
<?xml version="1.0" encoding="UTF-8"?>
<rs:model-request throttlesize="10000"
xmlns:rs="http://www.ca.com/spectrum/restful/schema/request"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.ca.com/spectrum/restful/schema/request ../../../xsd/Request.xsd ">
<rs:target-models>
<rs:models-search>
<rs:search-criteria xmlns="http://www.ca.com/spectrum/restful/schema/filter">
<devices-only-search />
<filtered-models>
<has-substring-ignore-case>
<attribute id="0x1006e">
<value>FOO</value>
</attribute>
</has-substring-ignore-case>
</filtered-models>
</rs:search-criteria>
</rs:models-search>
</rs:target-models>
<rs:requested-attribute id="0x1000a" /> <!-- Condition -->
<rs:requested-attribute id="0x1006e" /> <!-- Model_Name -->
<rs:requested-attribute id="0x11564" /> <!-- Notes -->
<rs:requested-attribute id="0x12d7f" /> <!-- Network_Address -->
<rs:requested-attribute id="0x129e7" /> <!-- TopologyModelNameString -->
</rs:model-request>
URL is
http://<OC>:<PORT>/spectrum/restful/models?landscapeid=0x5000000
But it does not work. The response gives devices in other landscapes than 0x5000000.
Moreover if I try the same request with HTTPS, the request is rejected by Spectrum unless I remove the landscapeid criteria in the URL.
How is it possible to run the search on a specific landscape ?
I mean run the search should be run on a specific landscape and not the others. The goal is not to request the whole infrastructure and filter the list with a criteria on Model_Handle which starts with 0x50. Eek.
BR
Yann