Last modified November 7, 2024

managePlugin

This function lets you manage and enable Plugins.
Parameter name Type Description Possible values Example
_id String REQUIRED The Plugin ID.   _id=608b1c5f160247613b11dc02
disabled Boolean True if disabled.   disabled=1
repo string Set or Change the Repository by Repo ID.   repo=608b1c707cf97c14601472e2
visible Boolean JetBackup Linux Only True if visiblility enabled in JetBackup Panel.   visible=1
permissions Integer JetBackup Linux Only The Plugin permission value (may vary by Plugin).
  • 1 (Root Access)
  • 3 (Root & Reseller Access)
  • 7 (Root, Reseller & User Access)
 

Returns

Parameter name Type Description Possible values Example
items List [] Returns a list of data for the Plugin Object. To view the parameters returned by this function, click on Plugin Item Object.  

Example Call JETAPI

jetbackup5api -F managePlugin -D "_id={$PLUGIN_ID}&disabled=0&visible=1&permissions=7"
success: 1
message: Plugin 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:
  _id: 65092deda67f7fafca057242
  code: JetBackupMC
  name: JBMC Backward Compatible Plugin
  description: Supporting plugin that allows the push of JetBackup 5 Data to the registered JetBackup MC Instance.
  icon: fas fa-star
  version: 1.1.0
  type: addon
  author: JetApps
  permissions: 7
  experimental: JetApps does not guarantee the error-free functionality of experimental features, and we provide it on an experimental basis only. You assume all risk for any function that you use marked "Experimental". Installation of this software could cause functionality failures, even for experienced administrators. Eventually this function will be released to our STABLE tier, once adequate testing and refinement is completed.
  repo: 6507537fa8f98c6ea7022b52
  options:
  repo_name: JetApps Repository
  disabled:
  visible: 1
  available_package:

Example Call HTTP

https://hostname.example.com:2087/cpsess##########/cgi/addons/jetbackup5/api.cgi?function=managePlugin&_id={$PLUGIN_ID}&disabled=0&visible=1&permissions=7