api:pbx:backup:downloadstored
Table of Contents
API : PBX : Backup download stored
Introduction
Downloads a PBX backup that is stored on the file server.
The API responds with a 302 redirect to the file on the file server - the file is never proxied through the API server. The redirect URL has the form https://doc.telecomx.dk/<fileId>/<name>.zip?token=<users-token> and the file server authorizes the download with the users token through its auth callback.
Request
| URL | https://api.telecomx.dk/pbx/backup/<id>/file | |
|---|---|---|
| Method | GET | |
| Access level | OWNER if the backup belongs to the users own customer. RESELLER if the customer belongs to the reseller. RESELLER_ADMIN and ADMIN for all customers. |
|
| Params | id | Id of the stored backup. |
Query example
https://api.telecomx.dk/pbx/backup/12345678901234567890ABCD/file
Response
302 redirect to the backup ZIP file on the file server.
Errors
| Error code | Message | Description |
|---|---|---|
| 403 | access_denied | Insufficient access level |
| 404 | id | Backup not found |
| 500 | internal_error | <Unspecified> |
api/pbx/backup/downloadstored.txt · Last modified: by Per Møller