manageRule

With this function, you can create/manage Tag Rules.

Parameters

Parameter name Type Description Possible values Example
_id String Required on action modify The ID of the tag.   _id=5cc3b7fc9dc6d60c9d04f0f2
action String Required The action you want to perform.
  • create
  • modify
 
name String Required on action create Tag name.   name=JBRule
conditions[] List Required on action create List of condition objects you want the rule to follow. To view the parameters that returned click on Tag Rule Condition Object.   conditions[2][dest_type]=Local
tags[] List List of tags attached to this rule.   tags[0]="5cc3b7fc9dc6d60c9d04f0f2"
disabled Boolean Whether to disable the rule.
  • 0
  • 1
  • disabled=0

Returns

This API call returns rule object.
To view the parameters that returned click on Rule Object.

Example

jetapi backupmc -F manageRule -D '_id=5cc3b8219dc6d60c9c406102&action=modify&name=JBRule'
https://1.1.1.1:3031/API/manageRule/?_id=5cc3b8219dc6d60c9c406102&action=modify&name=JBRule