Last modified November 7, 2024

manageSecurityPlugin

This function enables or disables the Imunify360 Security Plugin. If no data is passed to the manageSecurityPlugin API call, the plugin is disabled.
Parameter name Type Description Possible values Example
plugin String REQUIRED The Security Plugin ID.   plugin=6095b151ae9021718f3c75022
lock Boolean Boolean flag to determine whether or not to Lock the most recent "clean" backup after detection.
  • 0 (false)
  • 1 (true)
lock=1
restore Boolean Boolean flag to determine whether or not to Restore the most recent "clean" backup after detection.
  • 0 (false)
  • 1 (true)
restore=1

Example Call JETAPI

jetbackup5api -F manageSettingsSecurity -D "plugin={$SECURITY_PLUGIN_ID}&restore=1&lock=1"
success: 1
message: Security Settings Updated Successfully.
system:
  version: 5.3.3
  version_panel: 5.3.3
  tier: EDGE
  type: cPanel
  retry_ms: 0
  disableui:
  dr:
  agreement_panel:
  agreement:
  licenseIssue:
data:
  plugin: 6509f689ccf13c8ba0026112
  restore: 1
  lock: 1

Example Call HTTP

https://hostname.example.com:2087/cpsess##########/cgi/addons/jetbackup5/api.cgi?function=manageSettingsSecurity&plugin={$SECURITY_PLUGIN_ID}&restore=1&lock=1