Backup definitions can be created using the Maintenance web interface. This command returns a list of all available backup definitions.
Requests a list of backup definitions.
RESPONSE Fields | Value Type | Description |
---|---|---|
id | string | The unique ID of definition |
name | string | The name of the definition |
# Request # Use user:password for authorization GET /api/backup/definitions HTTP/1.1 Authorization: Bearer VGhpcyBpcyBqdXN0IGEgZGVtbyBhY2Nlc3MgdG9rZW4u # Response HTTP/1.1 200 OK Content-Type: application/json [ { "uuid": "d7b3a485-b946-4edc-96db-1a41870f2584", "name": "Test" } ]
# Browser access http://127.0.0.1:9000/api/backup/definitions # Shell access using curl curl -LsH "Authorization: Bearer <access_token>" "http://127.0.0.1:9000/api/backup/definitions" # Shell access using curl using username and password curl -Lsu username:password "http://127.0.0.1:9000/api/backup/definitions"