Developers API

assignRuleSet

Add a Metrics Rule Set to the specified host.

By assigning Rule Sets to Metrics-enabled hosts, alerts can be generated when rules in that set are breached.

Request Parameters

Parameter Data Type Description Required Default
hostid integer The HostID identifying the host to which the Rule Set is added Required -
rulesetid integer The RuleSetID identifying the Rule Set to add Required -

Response Data

Response Variable Data Type Description
errorcode integer Returns an errorcode of 0 if call is successful.
Try it out with the API Explorer:

Your API Key

API command to be called

Desired response format

The HostID identifying the host to which the Rule Set is added (integer)

The RuleSetID identifying the Rule Set to add (integer)