Last modified November 7, 2024
listBackupForType
This function will list the most recent Backup for an account matching the given Backup Type/Contains.
Parameter name | Type | Description | Possible Values | Example |
---|---|---|---|---|
type | Integer | REQUIRED The Backup Type. |
|
type=1 |
contains | Integer | REQUIRED Integer value indicating the contains. | Please see the Backup Contains below for a all available contains values. | contains=511 |
account_id | String | REQUIRED Only for Backup Type Accounts. The Account ID whose backups you want to list. | See listAccounts to find the account_id. | account_id=60898b7f0510b07a0833d136 |
Example Call JETAPI
jetbackup5api -F listBackupForType -D "type=1&contains=511&account_id={$ACCOUNT_ID}"
success: 1
message:
system:
version: 5.3.3
version_panel: 5.3.3
tier: EDGE
type: cPanel
retry_ms: 0
disableui:
dr:
agreement_panel:
agreement:
licenseIssue:
data:
accounts:data:
backups:
0:
_id: 6504e935bad4bea7340c760a
parent_id: 6504e6cabad4bea7340c75d3
account_id: 6503d48bfc45b1addf0a9636
destination: 6503eec8ebbf07708d06f1d2
destination_name: s3
name: user
created: 2023-09-15T23:20:42+00:00
path:
backup_type: 1
backup_contains: 511
account: user
account_data:
_id: 6503d48bfc45b1addf0a9636
username: user
owner: root
owner_id: 6503d48bfc45b1addf0a9632
package: default
suspended:
reseller:
root:
size: 7813234004
params:
backup_structure: 1
notes:
location:
safety:
deleted:
lock:
lock_ttl:
damaged:
disabled:
schedules:
0: 8
hidden:
encrypted:
encryption_id:
encryption_key_required:
encryption_key_exists: 1
total: 3
total: 1
Example Call HTTP
https://hostname.example.com:2087/cpsess##########/cgi/addons/jetbackup5/api.cgi?function=listBackupForType&type=1&contains=511&account_id={$ACCOUNT_ID}
- To view available listing parameters, please visit List Parameters.
- API List calls have a default limit of 100 items.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.