Get All Devices in Service Insight
Use this API to retrieve information, including attributes, that are available for EOL reports, notifications and so forth, about all devices in Junos Space Service Insight.
URI
https://[host]/api/juniper/serviceinsight/exposureanalyzer/sidevices (HTTP method = GET)
Consumes
None
Produces
application/vnd.juniper.serviceinsight.exposureanalyzer.devices+xml;version=1
application/vnd.juniper.serviceinsight.exposureanalyzer.devices+json;version=1
Response
Element | Type | Description |
---|---|---|
uri | String | URI to the collection of Service Insight devices |
size | Integer | Number of records in the collection |
device | device | A Service Insight device |
key | Integer | Unique key to identify the device |
hostName | String | Device hostname |
ipAddress | String | Device IP address |
serialNumber | String | Device serial number |
eolStatus | String | Indicates whether EOL data is available or not EOL data is not available unless there has been an EOL bulletin. |
lastUpdated | String | Date and time the device information was last updated |
productName | String | Device product name, such as SRX 650 |
deviceGroup | String | Device group name to which this device is associated |
EOLParts | Integer | Number of parts in this device that has reached EOL status |
connectedMember | String | if an end-customer device, the end customer to whom the device belongs |
matchingPBNs | String | Number of Proactive Bug Notifications (PBNs) associated with this device |
connectionStatus | String | Indicates whether this device is power on or off |
criticalPBNs | Integer | Number of PBNs with a severity of Critical |
majorPBNs | Integer | Number of PBNs with a severity of Major |
Sample Output
Sample XML Output
<devices uri="/api/juniper/serviceinsight/exposureanalyzer/sidevices" size="1"> <device key="196609" uri="/api/juniper/serviceinsight/exposureanalyzer/sidevices/196609" href="/api/juniper/serviceinsight/exposureanalyzer/sidevices/196609"> <hostName>device</hostName> <ipAddress>192.0.2.47</ipAddress> <serialNumber>J1213</serialNumber> <eolStatus>EOL Data available</eolStatus> <lastUpdated>2012-03-07 23:00:51.0</lastUpdated> <productName>M7I</productName> <deviceGroup>testDeviceGroup</deviceGroup> <EOLParts>3</EOLParts> <connectedMember></connectedMember> <matchingPBNs>4</matchingPBNs> <connectionStatus>up</connectionStatus> <criticalPBNs>0</criticalPBNs> <majorPBNs>0</majorPBNs> </device> </devices>
Sample JSON Output
devices:{ uri:'/api/juniper/serviceinsight/exposureanalyzer/sidevices', size:1, device:{ key:196609, uri:'/api/juniper/serviceinsight/exposureanalyzer/sidevices/196609', href:'/api/juniper/serviceinsight/exposureanalyzer/sidevices/196609', hostname:'device', ipaddress:'192.0.2.47', serialnumber:'J1213', eolstatus:'EOL Data available', lastupdated:'2012-03-07 23:00:51.0', productname:'M7I', devicegroup:'testDeviceGroup', eolparts:3, connectedmember:{ }, matchingpbns:4, connectionstatus:'up', criticalpbns:0, majorpbns:0 } }
Response Status Code
Message | Description |
---|---|
204 No Content | No devices are available |