Get a List of Recovery Points Older Than X Days
Returns a list of recovery points that are older than the specified number of days or a list of legacy recovery points that are older than the specified number of days and do not belong to any job.
To bulk remove the chosen type of recovery points, note this request's response and proceed to Bulk Remove Recovery Points.
Endpoint
https://<Director_IP_address>:4443/c/router
Request Example 1
curl --request POST \
--url https://<Director_IP_address>:4443/c/router \
--header "content-type: application/json" \
--cookie @cookies.txt \
--data "{
"action": "BackupManagement",
"method": "collectSavepointRemoveList",
"data": [{
"removeOption": "SAVEPOINTS_OLDER_THAN",
"olderThanDays": 30,
"backupRepositoryId": 2
}],
"type": "rpc",
"tid": 1
}"
Request Example 2
curl --request POST \
--url https://<Director_IP_address>:4443/c/router \
--header "content-type: application/json" \
--cookie @cookies.txt \
--data "{
"action": "BackupManagement",
"method": "collectSavepointRemoveList",
"data": [{
"removeOption": "NO_JOB_SAVEPOINTS_OLDER_THAN",
"olderThanDays": 30,
"backupRepositoryId": 2
}],
"type": "rpc",
"tid": 1
}"
Request Fields
|
Field |
Type |
Value(s) |
|---|---|---|
action
|
string |
|
method
|
string |
|
data
|
array | The filtration parameters (see below) |
type
|
string | rpc
|
tid
|
int | 1 |
Data
|
Field |
Type |
Description |
|---|---|---|
|
|
string | "SAVEPOINTS_OLDER_THAN" or "NO_JOB_SAVEPOINTS_OLDER_THAN" |
|
|
int |
Minimum age of the recovery points in days |
backupRepositoryId
|
int | ID of the backup repository containing the recovery points |
Response Sample
{
"action": "BackupManagement",
"method": "collectSavepointRemoveList",
"tid": "1",
"type": "rpc",
"message": null,
"where": null,
"cause": null,
"data": {
"items": [{
"vid": "SAVEPOINT-105",
"parentVid": "BACKUP_OBJECT-34",
"name": "VM",
"timestamp": "2019-04-10T06:55:25.799-07:00"
}, {
"vid": "SAVEPOINT-85",
"parentVid": "BACKUP_OBJECT-19",
"name": "Win7",
"timestamp": "2019-04-10T06:52:00.577-07:00"
}, {
"vid": "SAVEPOINT-91",
"parentVid": "BACKUP_OBJECT-23",
"name": "VMware",
"timestamp": "2019-04-10T06:52:13.983-07:00"
}
],
"totalDependSavepoints": 0
}
}
Response Fields
|
Field |
Value |
Description |
|---|---|---|
message
|
string | Message if the request failed |
where
|
string | Reference to the method where the problem occurred |
cause
|
string | Cause of failure |
data
|
array | Parameters of the recovery points (see below) |
data
|
Field |
Value |
Description |
|---|---|---|
items
|
array | Recovery point list (see below) |
totalDependSavepoints
|
int | Number of recovery points dependent on the listed recovery points |
data.items
|
Field |
Value |
Description |
|---|---|---|
vid
|
string | Recovery point VID |
|
|
string | Backup object VID |
|
|
string | Backup object name |
timestamp
|
DateTime | Date and time the recovery point was created |