Get Expired Backup Information
Description
This HTTP method and URI return an array containing the expiry information of the backups in a repository specified by the REPO_NAME path-parameter.
HTTP Methods and URI
GET /api/v1/cluster/self/repository/{REPO_STATUS}/{REPO_NAME}/expiredBackups
| These URIs are only available from the Backup Service port (8097 by default) on nodes running the Backup Service. |
| Name | Description | Schema |
|---|---|---|
|
The status of the backup repository. |
Must be one of:
|
|
The name of the repository |
String |
Curl Syntax
curl -X GET http://$BACKUP_SERVICE_NODE:$BACKUP_SERVICE_PORT/cluster/self\
/repository/$REPO_STATUS/$REPOSITORY_NAME/expiredBackups \
-u $USERNAME:$PASSWORD
Responses
| Value | Description |
|---|---|
|
Successful call. |
|
Invalid parameter. |
|
The repository in the endpoint URI does not exist. |
|
Authorization failure due to incorrect username or password. |
|
The provided username has insufficient privileges to call this method. |
|
Error in the URI path. |
|
Error in Couchbase Server. |
Examples
| The following examples assume you’re running the curl command from a node that is running the Backup Service. |
The following call returns the details of expired backups for the active repository repoNewForPrune:
curl -v -X GET http://127.0.0.1:8097/api/v1/cluster/self/\
repository/active/repoNewForPrune/expiredBackups \
-u Administrator:password
If the call is successful, the output may appear as follows:
[
{
"expired_backups": [
"2025-07-27T10_01_47.657575+05_30"
],
"expired_backups_with_non_expired_dependents": [
"2025-07-27T10_01_48.657595+05_30"
]
}
]
See Also
-
For a an overview of the Backup Service, see Backup Service.
-
For a step-by-step guide to configure and use the Backup Service using the Couchbase Server Web Console, see Manage Backup and Restore.