How can we create rest API call with custom locator search in Spectrum?
All Spectrum versions.
We are following the documentation but need guidance
1. create a custom locator search, e.g.
The xml file for this search will be created in /usr/Spectrum/custom/console/config
mine was called as follows:
-rw-r----- 1 spectrum spectrum 219 Jan 11 11:14 search-659fcda6-0224-1000-1834-0afd8231.xml
Swap the new xml name created on the your system in the xml below and use that with a POST to <OneClick host>:<tomcat port>/spectrum/restful/models
Swap the attributes in bold below that you want to see in the results.
<?xml version="1.0" encoding="UTF-8"?>
<rs:model-request throttlesize="50"
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-file>
../../../../custom/console/config/search-659fcda6-0224-1000-1834-0afd8231.xml
</rs:search-criteria-file>
</rs:models-search>
</rs:target-models>
<rs:requested-attribute id="0x1006e" />
<rs:requested-attribute id="0x10000" />
</rs:model-request>