Hi,

I use the following to get a specific device by IP:

var postData = '<?xml version="1.0" encoding="UTF-8"?>'
                + '<rs:model-request throttlesize="5"'
                +    ' 
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";>'
                +                '<action-models>'
                +                    '<filtered-models>'
                +                        '<equals>'
                +                            
'<model-type>SearchManager</model-type>'
                +                        '</equals>'
                +                    '</filtered-models>'
                +                    '<action>FIND_DEV_MODELS_BY_IP</action>'
                +                    '<attribute 
id="AttributeID.NETWORK_ADDRESS">'
                +                        '<value>' + $scope.findString + 
'</value>'
                +                    '</attribute>'
                +                '</action-models>'
                +            '</rs:search-criteria>'
                +        '</rs:models-search>'
                +    '</rs:target-models>'
                +    '<rs:requested-attribute id="0x1006e" />'
                +    '<rs:requested-attribute id="0x12d7f" />'
                +    '<rs:requested-attribute id="0x129e7" />'
                +    '<rs:requested-attribute id="0x129f8" />'
                +    '<rs:requested-attribute id="0x12adb" />'
                +    '<rs:requested-attribute id="0x10000" />'
                +    '<rs:requested-attribute id="0x23000e" />'
                +    '<rs:requested-attribute id="0x10032" />'
                +    '<rs:requested-attribute id="0x10030" />'
                +    '<rs:requested-attribute id="0x23000d" />'
                +    '<rs:requested-attribute id="0x1295d" />'
                + '</rs:model-request>'


I'm also interested in how to get by range and also by model name or other 
attributes.



Rick Williams
Network and Systems Management
State of North Carolina
Office of Information Technology Services
919-754-6280 Office
919-274-5446 Cell
919-754-6000 ITS Service Desk
rick.willi...@nc.gov
www.its.state.nc.us

NOTICE: E-mail correspondence to and from this address may be subject to the 
North Carolina Public Records Law and may be disclosed to third parties by an 
authorized state official.

-----Original Message-----
From: Jon Magnus Dullerud [mailto:dulle...@gmail.com]
Sent: Tuesday, October 07, 2014 7:30 AM
To: spectrum
Subject: [spectrum] AW: Restful api: search for devices in a ip range.

Hi all.
We are trying to create a restful api request that pulls all the devices in= a 
ip range.
Do anyone know how to do this with rest?


Best Reagrds
Jon Magnus Dullerud
Norwegian Defence

---
To unsubscribe from spectrum, send email to lists...@unc.edu with the body: 
unsubscribe spectrum rick.willi...@nc.gov

________________________________

Email correspondence to and from this sender is subject to the N.C. Public 
Records Law and may be disclosed to third parties.

---
To unsubscribe from spectrum, send email to lists...@unc.edu with the body: 
unsubscribe spectrum arch...@mail-archive.com

Reply via email to