List Templates

Service name: list_templates

Base URL

https://{SERVER}/api/?apikey={yourAPIkey}&service=list_templates

Description

List all of the account's server or workstation monitoring templates.

Parameters

Required parameters

Add required parameters immediately after the base URL.

https://{SERVER}/api/?apikey={yourAPIkey}&service=list_templates&required_parameters={parameter-value}

Parameter

Type

Description

Options

Default

describe

Boolean

Optional. Returns a description of the service.

0

0

devicetype

string

The devicetype is optional but if used should be either "server" or "workstation"

server
workstation

0

Optional parameters

Add optional parameters immediately after the base URL.

https://{SERVER}/api/?apikey={yourAPIkey}&service=list_templates&optional_parameters={parameter-value}
ParameterDescriptionTypeRequiredOptionsDefault
describeReturns a description of the service.booleannotrue0

Determine parameter values

Use the following associated service calls to determine parameter values.

ParameterCallURL Format
checkidlist_checkshttps://{SERVER}/api/?apikey={yourAPIkey}&service=list_checks&deviceid=DEVICEID
deviceidlist_devices_at_clienthttps://{SERVER}/api/?apikey={yourAPIkey}&service=list_devices_at_client&clientid=CLIENTID&devicetype=server
list_servershttps://{SERVER}/api/?apikey={yourAPIkey}&service=list_servers&siteid=SITEID
list_workstationshttps://{SERVER}/api/?apikey={yourAPIkey}&service=list_workstations&siteid=SITEID
siteidlist_siteshttps://{SERVER}/api/?apikey={yourAPIkey}&service=list_sites&clientid=CLIENTID
clientidlist_clientshttps://{SERVER}/api/?apikey={yourAPIkey}&service=list_clients

Examples

List Templates

https://{SERVER}/api/?apikey={yourAPIkey}&service=list_templates

Example response

<?xml version="1.0"?>
<result created="2024-05-26T16:43:19+01:00" host="SERVER" status="OK">
<items>
<installation_template>
<templateid>34</templateid>
<name>A Server Template</name>
</installation_template>
<installation_template>
<templateid>35</templateid>
<name>A Workstation Template</name>
</installation_template>
<installation_template>
<templateid>36</templateid>
<name>Another Server Template</name>
</installation_template>
<installation_template>
<templateid>37</templateid>
<name>Another WorkstationTemplate</name>
</installation_template>
</items>
</result>

List Templates - Server

https://{SERVER}/api/?apikey={yourAPIkey}&service=list_templates&devicetype=server

Example response

<?xml version="1.0"?>
<result created="2024-05-26T16:43:19+01:00" host="SERVER" status="OK">
<items>
<installation_template>
<templateid>34</templateid>
<name>A Server Template</name>
</installation_template>
<installation_template>
<templateid>36</templateid>
<name>Another Server Template</name>
</installation_template>
</items>
</result>

List Templates - Workstation

https://{SERVER}/api/?apikey={yourAPIkey}&service=list_templates&devicetype=workstation

Example response

<?xml version="1.0"?>
<result created="2024-05-26T16:43:19+01:00" host="SERVER" status="OK">
<items>
<installation_template>
<templateid>35</templateid>
<name>A Workstation Template</name>
</installation_template>
<installation_template>
<templateid>37</templateid>
<name>Another WorkstationTemplate</name>
</installation_template>
</items>
</result>

Returned fields

FieldTypeCan Be EmptyDescription
templateidintegernoMonitoring Template ID
namestringyesMonitoring Template name