HTTP GET for /service/{service-id}/device
When the NSM client user requests the /service/{service-id}/device
URI
using the GET
method, a list of devices affected
by the service that matches the service ID entered is returned.
Input parameters
{service-id}
Available HTTP Headers
Accept: application/json
Accept: text/xml
Sample request
http://www.example.com:16310/nsm/service/4/device
Sample response
XML<devices>
<device>
<id>2</id>
<name>192.168.16.22</name>
<fqName>ITNCM/EMULATED/emulcli4-17</fqName>
<vendor>Cisco</vendor>
<type>Router</type>
<model>2621</model>
<os>C2600-IS-M-12.2(3)</os>
<parentId>1</parentId>
<parentName>ITNCM/EMULATED</parentName>
<createdDate>2012-10-25 16:49:04.717 GMT+00:00</createdDate>
<lastModifiedDate>2012-11-19 17:56:42.412 GMT+00:00</lastModifiedDate>
<lastModifiedBy>administrator</lastModifiedBy>
<status>Managed</status>
</device>
</devices>
JSON{
"devices": [
{
"id": 2,
"name": "192.168.16.22",
"fqName": "ITNCM/EMULATED/emulcli4-17",
"vendor": "Cisco",
"type": "Router",
"model": "2621",
"os": "C2600-IS-M-12.2(3)",
"parentId": 1,
"parentName": "ITNCM/EMULATED",
"createdDate": 1351183744717,
"lastModifiedBy": "administrator",
"status": "Managed",
"lastModifiedDate": 1353347802412
}
]
}