HTTP GET for /servicetemplate/{servicetemplate-id}/deviceid/{device-id}
When the NSM client user requests the /servicetemplate/{servicetemplate-id}/deviceid/{device-id}
URI
using the GET
method, the latest version of a particular NSM service
template that
matches the NSM service
template ID
and device ID entered is returned. The NSM service
template that
is returned contains client parameters that can be populated.
Input parameters
{servicetemplate-id} and {device-id}Available HTTP Headers
Accept: application/json
Accept: text/xml
Sample request
http://www.example.com:16310/nsm/servicetemplate/1/deviceid/4
Sample response
<serviceTemplate serviceTemplateId="2">
<deviceID>2</deviceID>
<clientParameters>
<clientParameter>
<name>CPO1</name>
<value></value>
</clientParameter>
<clientParameter>
<name>CPO2</name>
<value></value>
</clientParameter>
</clientParameters>
</serviceTemplate>
{
"deviceID": 2,
"clientParameters": [
{
"name": "CP01",
"value": ""
},
{
"name": "CP02",
"value": ""
}
],
"id": 2
}
XML response details
Element/Tag | Type | Description |
---|---|---|
<serviceTemplate> |
Integer | The
|
serviceTemplateId |
String | Specifies the unique identifier of the NSM service
template. In the Sample
Response, the specified NSM service
template identifier is
the value 2. Note: In version Netcool Configuration
Manager version 6.4.2.2 and
later, use
id for JSON input, instead of the previous name
serviceTemplateId . XML input is unchanged. |
<deviceID> |
Integer | Specifies the device identifier for the device that this NSM service template is being applied against. In the Sample Response, the specified device identifier is the value 2. |
Client parameter descriptions | ||
<clientParameters> |
Container | Specifies a container that includes one or
more client parameters that the NSM client user can edit. The client
parameters are encapsulated within the |
<clientParameter> |
String | Specifies each parameter. Each client parameter
is encapsulated within the |
<name> |
String | Specifies the name of the parameter. Each
client parameter name is encapsulated within the |
<value> |
String | Specifies the tag where the NSM client user can populate the value of each client parameter. In the Sample Response, the NSM client user can populate the CPO1 client parameter in this tag pair: <value> </value>. |
Client parameter lists descriptions | ||
<clientParameterLists> |
Container | Specifies a container that includes one or
more client parameter lists. The client parameter lists are encapsulated
within the |
<clientParameterList> |
String | The
|
name |
Specifies the name of the client parameter list. | |
<parameter> |
String | Each client parameter defined within a client
parameter list is encapsulated within the |
name |
String | Specifies the name of the parameter. |
<values> |
Container | Specifies a container that includes a client
parameter value for the client parameter specified in the |
<value> |
String | Specifies the tag where the NSM client user
can populate values for each client parameter in the client parameter
list. The NSM client user can populate the client parameter value
in this tag pair: <value> and </value>. There
can be multiple For example:
|