Last modified November 7, 2024

manageRestoreCondition

This function allows you to create/modify the Restore Condition Object.
Parameter name Type Description Possible Values Example
action String REQUIRED on both create/modify. The action you want to perform
  • modify
  • create
action=create
condition String REQUIRED on both create/modify. The string of text for the user to agree.    
_id String REQUIRED on action modify. Restore Condition ID is used for when you want to modify any of the Restore Condition Object Fields.   type_data=5f864533cde674169f42ffe2

Example Call JETAPI

jetbackup5api -F manageRestoreCondition -D "action=create&condition=Are you sure?" jetbackup5api -F manageRestoreCondition -D "action=modify&_id={$RESTORE_CONDITION_ID}&condition=Are you sure?"
success: 1 message: Restore Condition Created/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: 650a09c88a71e8105406e6c2 condition: Are you sure? disabled:

Example Call HTTP

https://hostname.example.com:2087/cpsess##########/cgi/addons/jetbackup5/api.cgi?function=manageRestoreCondition&action=create&condition=Are you sure? https://hostname.example.com:2087/cpsess##########/cgi/addons/jetbackup5/api.cgi?function=manageRestoreCondition&action=modify&_id={$RESTORE_CONDITION_ID}&condition=Are you sure?