Skip to main content

kobana dashboards backups

Commands of kobana dashboards backups. Every global option (Global options) applies here.

CommandHTTPDescription
backups listGET /v1/backupsList backups
backups createPOST /v1/backupsRequest backup
backups restorePOST /v1/backups/restoreRestore backup
backups getGET /v1/backups/{id}Get backup
backups deleteDELETE /v1/backups/{id}Delete backup
backups cancelPOST /v1/backups/{id}/cancelCancel restore
backups downloadGET /v1/backups/{id}/downloadDownload backup

backups list​

List backups

kobana dashboards backups list [OPTIONS]

GET /v1/backups

Lists the organization backups and restores (metadata only) and whether a new backup may be requested now (backup_allowed, next_backup_at — one every 12 hours in production). Organization-level.

Query parameters

NameTypeRequiredDescription
pageintegernoPage (starts at 1). Default: 1.
per_pageintegernoItems per page. Default: 20. Maximum: 100.
sort_bystringnoSort field. Default depends on the resource.
sort_orderstringnoSort direction. Default: desc. Values: asc, desc.
typestringnobackup or restore. Values: backup, restore.
statusstringnoFilter by status. Values: pending, processing, completed, failed, canceled.

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Responses

HTTPDescription
200Page of backups.
404Resource not found in the current organization.

backups create​

Request backup

kobana dashboards backups create [OPTIONS]

POST /v1/backups

Queues a full backup (ZIP) of the organization, every workspace included. Asynchronous: 202; poll GET /backups/{id}.

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Responses

HTTPDescription
202Backup queued.
404Resource not found in the current organization.

backups restore​

Restore backup

kobana dashboards backups restore [OPTIONS]

POST /v1/backups/restore

DESTRUCTIVE: restores a backup into the workspace of the call (X-Workspace-Id), rewriting portal users matched by e-mail/public id. Send backup_id (a completed backup of this organization — its file is copied) OR file_name (.zip) + content_base64 (bounded by the 2 MB request limit). Requires settings.update and access to every workspace. Asynchronous: 202; follow it on GET /backups/{id} and cancel with /cancel.

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Request body

NameTypeRequiredDescription
backup_idstring (uuid)noCompleted backup of this organization to restore.
file_namestringno.zip file name, together with content_base64.
content_base64stringnoThe backup ZIP in base64.

More fields and nested objects: kobana schema dashboards.backups.restore.

Responses

HTTPDescription
202Restore queued (a restore record).
400Missing body, invalid JSON or incompatible fields.
404Resource not found in the current organization.
422Request body failed validation.

backups get​

Get backup

kobana dashboards backups get [ID] [OPTIONS]

GET /v1/backups/{id}

Status and progress of a backup or restore. An in-progress restore whose queue job is gone is marked failed.

Path arguments: id

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Responses

HTTPDescription
200The backup.
404Resource not found in the current organization.

backups delete​

Delete backup

kobana dashboards backups delete [ID] [OPTIONS]

DELETE /v1/backups/{id}

Deletes the record and its file from storage. Permanent.

Path arguments: id

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Responses

HTTPDescription
200Removed.
404Resource not found in the current organization.

backups cancel​

Cancel restore

kobana dashboards backups cancel [ID] [OPTIONS]

POST /v1/backups/{id}/cancel

Stops a pending or running restore. What was already restored stays. 422 for a backup or a restore that already ended.

Path arguments: id

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Responses

HTTPDescription
200The backup.
404Resource not found in the current organization.
422Request body failed validation.

backups download​

Download backup

kobana dashboards backups download [ID] [OPTIONS]

GET /v1/backups/{id}/download

Returns the backup ZIP. Requires backups.export and, for a person token, being an organization owner or holding access to every workspace — the backup holds all of them. Audited.

Path arguments: id

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Responses

HTTPDescription
200The ZIP file.
404Resource not found in the current organization.