jetbackup5api backup -F listBackups -D "type=127" -O json
Part | Description |
---|---|
Function | The JetBackup API function.
-F/--func FUNCTION_NAME
|
Data | The parameters you want to pass to the API call.
-D/--data "PARAM_NAME=PARAM_VALUE&...&PARAM_NAME=PARAM_VALUE"
|
Output format | The output format you want the API call to be returned as.
-O/--output json/plain
|
For more information about jetapi, run the following command:
jetbackup5api --help
This are the available parameters you can pass to all the list API calls.
Parameter name | Value | Description | Possible values | Example |
---|---|---|---|---|
limit | Integer | Limit the specified number of records returned. | 10 | |
skip | Integer | Skip the specified number of records returned. | 2 | |
sort[] | List | The value you want to sort by. |
|
sort[type]=1 |
To create an API token in cPanel, use WHM's Manage API Tokens interface (WHM > Home > Development > Manage API Tokens).
To create an API Login Key in DirectAdmin, use WCP's Login Keys interface (WCP > User Level > Login Keys).
Once your key/token is generated, include that API key/token in your custom code.