Hello All
I am trying to receive some data from spectrum for our CMDB.
Now I have the following which works.
Now the problem is that I have another spectrum where there are more landscapes and I only want models from on specific landscape
http://IP_SPECTRUM/spectrum/restful/model?
<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>
<is-derived-from>
<model-type>0x1004b</model-type>
</is-derived-from>
</filtered-models>
</rs:search-criteria>
</rs:models-search>
</rs:target-models>
<rs:requested-attribute id='0x1006e' />
<rs:requested-attribute id='0x10000' />
<rs:requested-attribute id='0x12d7f' />
<rs:requested-attribute id='0x12d80' />
<rs:requested-attribute id='0x12dbd' />
<rs:requested-attribute id='0x12a1f' />
</rs:model-request>
Invoke-RestMethod -Uri $spectrumHost -Credential $Credential -Body $xml -ContentType "application/xml" -Method Post
Now I want to extend this with a landscape filter.
Can somebody tell me what to add ?
I already tried http://IP_SPECTRUM/spectrum/restful/model?landscape=0x4.... but with the GET Tunneling this parameter is ignored.
I hope someone can help me
Greetings
Brent