Backup Service API
- reference
The Backup Service API allows full and incremental data-backups to be planned and scheduled; allows the scheduling of merges of previously made backups; and allows existing backups to be archived.
API Overview
The Backup Service API provides endpoints categorized as follows: Cluster, Configuration, Repository, Plan, Task, and Data. The individual endpoints are listed by category, in the tables below. Each table-entry provides a link to an associated reference page, where more detailed information, including curl examples, is provided. For a conceptual overview of the Backup Service, see Backup Service. For information on using Couchbase Web Console to configure and use the Backup Service, see Manage Backup and Restore.
All calls listed below require the Full Admin role, and use port 8097
.
Each URI, in Couchbase Server Enterprise Edition Version 7.0, must be prefixed with /api/v1
.
Note that for all cluster references, in Couchbase Server Enterprise Edition Version 7.0, only the host cluster is supported, and is referred to as self
.
Cluster
HTTP method | URI | Description |
---|---|---|
GET |
|
Retrieves information on all active, archived, and imported repositories defined on a cluster. |
Configuration
HTTP method | URI | Description |
---|---|---|
GET |
|
Returns the rotation-configuration for the Backup Service. |
POST |
|
Creates the rotation-configuration for the Backup Service. |
PUT |
|
Edits the existing rotation-configuration for the Backup Service. |
Repository
HTTP method | URI | Description |
---|---|---|
GET |
|
Retrieves information on all active repositories, defined on a cluster. Information includes repository names, file or cluster paths, and plan details. |
GET |
|
Retrieves information on a specific, active repository, defined on a cluster. Information includes repository names, file or cluster paths, and plan details. |
GET |
|
Retrieves information on an active, archived, or imported repository, defined on a cluster. Information includes backup names and dates, buckets, items, and mutations. |
POST |
|
Creates an active repository on the cluster, specifying an associated plan. See Create a Repository. |
POST |
|
Restores data from a specified archived, or imported repository to the cluster. See Restore Data. |
POST |
|
Imports an existing repository into the Backup Service. See Import a Repository. |
POST |
|
Returns information on a specified document, within a specified scope and collection, within the specified active, archived, or imported repository. |
POST |
|
Triggers an immediate backup of the cluster, to the specified repository; specifying whether the backup should be incremental or full. |
POST |
|
Triggers an immediate merge of specified repositories; providing the start and end dates for the period of time within which backups are to be merged. |
POST |
|
Archives the specified, active repository. See Archive a Repository. |
GET |
|
Returns information on all the cluster’s archived and imported repositories. Information includes repository names, file or cluster paths, and plan details. |
GET |
|
Returns information on a single archived or imported repository. Information includes repository names, file or cluster paths, and plan details. |
GET |
|
Returns information on a single archived or imported repository. Information includes backup names and dates, buckets, items, and mutations. |
POST |
|
Triggers an immediate pause of the specified repository, so that all task-processing ceases. |
POST |
|
Triggers an immediate resumption of task-processing, on the specified, paused repository. |
DELETE |
|
Deletes an archived repository. See Delete a Repository. |
DELETE |
|
Deletes a backup. See Delete a Backup. |
Plan
HTTP method | URI | Description |
---|---|---|
GET |
|
Returns an array containing all plans defined on the cluster. |
GET |
|
Returns a specific plan, defined on the cluster. |
POST |
|
Creates a new plan on the cluster. |
PUT |
|
Edits an existing plan, defined on the cluster. |
DELETE |
|
Deletes a plan. See Delete a Plan. |
Task
HTTP method | URI | Description |
---|---|---|
GET |
|
Returns an array, containing the history of all tasks performed for the specified repository. |
GET |
|
Returns an array, containing the history of a specific subset of tasks performed for the specified repository. |
Data
HTTP method | URI | Description |
---|---|---|
DELETE |
|
Deletes the specified backup from the specified active repository.. See Delete Backups. |