Developers API

getHostSensors

Fetches all sensors belonging to the specified host

Request Parameters

Parameter Data Type Description Required Default
hostid integer The HostID identifying the host whose sensors you want to list Required -

Response Data

Response Variable Data Type Description
errorcode integer Returns an errorcode of 0 if call is successful.
sensors This is an array - its' contents follow:
hsid integer The HostSensorID of the sensor
sensorid integer The ID of the sensor type
enabled boolean Whether this sensor is enabled for testing
nickname string The (optional) nickname for this sensor
params string An array of sensor parameters
Try it out with the API Explorer:

Your API Key

API command to be called

Desired response format

The HostID identifying the host whose sensors you want to list (integer)