Skip to main content

List the backups of a PostgreSQL cluster

You can list all the backups available for a PostgreSQL cluster.

Backup types

There are two types of backups:

TypeDescription
ON_DEMANDManual backup triggered by the user
AUTOAutomatic backup generated by the system

Permissions

info

This action requires the following IAM (Identity and Access Management) permissions:

  • postgresql.cluster.get

The GET /postgresql/spaces/{spaceId}/clusters/{clusterId}/backups request lets you list all the backups of a PostgreSQL cluster.

Parameters

ParameterTypeRequiredDescription
spaceIdUUID (Universally Unique Identifier)YesSpace identifier
clusterIdUUIDYesUnique identifier of the cluster

Example response

{
"items": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"clusterId": "e592a4f6-2e49-46e7-b6d0-248a7711197a",
"clusterName": "my-cluster-postgresql",
"name": "my-backup",
"type": "ON_DEMAND",
"target": "PREFER_STANDBY",
"status": {
"state": "SUCCEEDED",
"message": "Backup completed successfully"
},
"startedAt": "2026-04-08T10:00:00Z",
"completedAt": "2026-04-08T10:30:00Z"
},
{
"id": "b2c3d4e5-f6a7-8901-bcde-f23456789012",
"clusterId": "e592a4f6-2e49-46e7-b6d0-248a7711197a",
"clusterName": "my-cluster-postgresql",
"name": "auto-backup-20260407",
"type": "AUTO",
"target": "PREFER_STANDBY",
"status": {
"state": "ACTIVE",
"message": "Backup schedule is active and running"
},
"startedAt": "2026-04-07T02:00:00Z",
"completedAt": "2026-04-07T02:15:00Z"
}
]
}

Response fields

FieldTypeDescription
idUUIDUnique identifier of the backup
clusterIdUUIDIdentifier of the source cluster
clusterNamestringName of the source cluster
namestringName of the backup
typestringType of backup (ON_DEMAND or AUTO)
targetstringTarget node for running the backup (PREFER_STANDBY, STANDBY or PRIMARY)
statusobjectCurrent status of the backup
startedAtstring (date-time)Start date of the backup
completedAtstring (date-time)End date of the backup (null if in progress)

Backup states

StateDescriptionApplicable to
CREATINGBackup request submitted, not yet startedON_DEMAND, AUTO
RUNNINGBackup in progress (on-demand backups)ON_DEMAND
ACTIVEBackup schedule active and running (automatic backups)AUTO
SUCCEEDEDBackup completed successfully (on-demand backups)ON_DEMAND
FAILEDBackup failedON_DEMAND, AUTO
DELETINGBackup being deletedON_DEMAND

See the full specification

Cette page vous a-t-elle été utile ?