PostgreSQL Restore Points

The /restorePoints/postgresFlexible resource collection represents restore points of Azure Database for PostgreSQL flexible servers available in Veeam Backup for Microsoft Azure.

Get PostgreSQL Server Restore Points

The HTTP GET request to the /restorePoints/postgresFlexible endpoint retrieves a list of restore points created for PostgreSQL server by Veeam Backup for Microsoft Azure.

SecurityBearer
Request
query Parameters
ServerId
string or null

Returns only restore points of a PostgreSQL server with the specified ID.

OnlyLatest
boolean

Defines whether to return only recently created restore points.

DataRetrievalStatuses
Array of strings or null (DataRetrievalStatus)

Returns only restore points with the specified data retrieval status.

Enum: "None" "Retrieving" "Retrieved" "Unknown"
PointInTime
string or null <date-time>

Returns only restore points created on the specified date and time.

Offset
integer <int32> >= 0

Specifies the first N items of a resource collection that will be excluded from the response.

Limit
integer <int32> >= -1

Specifies the maximum number of items of a resource collection that will be returned in the response.

StorageAccessTier
Array of strings or null or null (StorageAccessTier)

Returns only restore points stored in repositories with the specified access tier.

Enum: "Hot" "Cool" "Archive" "Inferred" "Cold"
ImmutabilityEnabled
boolean

Returns only restore points with the specified immutability.

Responses
200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

get/api/v10/restorePoints/postgresFlexible
Request samples
Response samples
application/json
{
  • "offset": 0,
  • "limit": 0,
  • "totalCount": 0,
  • "_links": {},
  • "results": [
    ]
}

Get PostgreSQL Server Restore Point Data

The HTTP GET request to the /restorePoints/postgresFlexible/{restorePointId} endpoint retrieves information on a specific restore point of a PostgreSQL server.

SecurityBearer
Request
path Parameters
restorePointId
required
string <uuid>

Specifies the system ID assigned to a restore point in the Veeam Backup for Microsoft Azure REST API.

Responses
200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

get/api/v10/restorePoints/postgresFlexible/{restorePointId}
Request samples
Response samples
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "type": "Full",
  • "serverId": "string",
  • "serverName": "string",
  • "databases": [
    ],
  • "vbrId": "string",
  • "pointInTime": "2019-08-24T14:15:22Z",
  • "backupSizeBytes": 0,
  • "isCorrupted": true,
  • "gfsFlags": "string",
  • "jobSessionId": "string",
  • "backupDestination": "AzureBlob",
  • "state": "Ok",
  • "dataRetrievalStatus": "None",
  • "retrievedDataExpirationDate": "2019-08-24T14:15:22Z",
  • "notifyBeforeRetrievedDataExpirationHours": 0,
  • "immutableTill": "2019-08-24T14:15:22Z",
  • "accessTier": "Hot",
  • "latestChainSizeBytes": 0,
  • "_links": {}
}

Remove PostgreSQL Server Restore Point

The HTTP DELETE request to the /restorePoints/postgresFlexible/{restorePointId} endpoint removes a specific restore point of a PostgreSQL server from the Veeam Backup for Microsoft Azure configuration database.

SecurityBearer
Request
path Parameters
restorePointId
required
string <uuid>

Specifies the system ID assigned to a restore point in the Veeam Backup for Microsoft Azure REST API.

Responses
202

Accepted

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

423

Locked

delete/api/v10/restorePoints/postgresFlexible/{restorePointId}
Request samples
Response samples
application/json
{
  • "id": "string",
  • "type": "BackupRetention",
  • "localizedType": "string",
  • "executionStartTime": "2019-08-24T14:15:22Z",
  • "executionStopTime": "2019-08-24T14:15:22Z",
  • "executionDuration": "string",
  • "status": "Canceled",
  • "traceId": "string",
  • "eventIds": [
    ],
  • "timezones": [
    ],
  • "regions": [
    ],
  • "tenantIds": [
    ],
  • "backupJobInfo": {
    },
  • "healthCheckJobInfo": {
    },
  • "policyConfigurationCheckJobInfo": {
    },
  • "restoreJobInfo": {
    },
  • "fileLevelRestoreJobInfo": {
    },
  • "fileShareFileLevelRestoreJobInfo": {
    },
  • "repositoryJobInfo": {
    },
  • "restorePointDataRetrievalJobInfo": {
    },
  • "retentionJobInfo": {
    },
  • "_links": {}
}

Perform PostgreSQL Server Restore

The HTTP POST request to the /restorePoints/postgresFlexible/{restorePointId}/restore endpoint launches a PostgreSQL server restore operation using a specific restore point.

SecurityBearer
Request
path Parameters
restorePointId
required
string <uuid>

Specifies the system ID assigned to a restore point in the Veeam Backup for Microsoft Azure REST API.

Request Body schema: application/json
required
serviceAccountId
required
string <uuid>

Specifies the system ID assigned in the Veeam Backup for Microsoft Azure REST API to a service account whose permissions will be used to perform the restore operation.

Array of objects or null (PostgresFlexibleDatabaseRestoreOptions)

Specifies the restore options for databases on the PostgreSQL servers.

reason
string or null

Specifies a reason for the restore operation.

accountId
string or null

Specifies a system ID assigned in the Veeam Backup for Microsoft Azure REST API to the PostgreSQL server account in the Veeam Backup for Microsoft Azure REST API.

targetServerId
string

Specifies the system ID assigned to a target PostgreSQL server in the Veeam Backup for Microsoft Azure REST API.

enableEntraIdAuthentication
boolean or null

Defines whether to use the Entra ID application instead of a database account to authenticate against the target PostgreSQL server.

Responses
202

Accepted

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

409

Conflict

415

Client Error

post/api/v10/restorePoints/postgresFlexible/{restorePointId}/restore
Request samples
application/json
{
  • "databasesRestoreOptions": [
    ],
  • "serviceAccountId": "a814cf67-aaac-43ae-acb4-8d34e82a4b4c",
  • "reason": "string",
  • "accountId": "string",
  • "targetServerId": "string",
  • "enableEntraIdAuthentication": true
}
Response samples
application/json
{
  • "id": "string",
  • "type": "BackupRetention",
  • "localizedType": "string",
  • "executionStartTime": "2019-08-24T14:15:22Z",
  • "executionStopTime": "2019-08-24T14:15:22Z",
  • "executionDuration": "string",
  • "status": "Canceled",
  • "traceId": "string",
  • "eventIds": [
    ],
  • "timezones": [
    ],
  • "regions": [
    ],
  • "tenantIds": [
    ],
  • "backupJobInfo": {
    },
  • "healthCheckJobInfo": {
    },
  • "policyConfigurationCheckJobInfo": {
    },
  • "restoreJobInfo": {
    },
  • "fileLevelRestoreJobInfo": {
    },
  • "fileShareFileLevelRestoreJobInfo": {
    },
  • "repositoryJobInfo": {
    },
  • "restorePointDataRetrievalJobInfo": {
    },
  • "retentionJobInfo": {
    },
  • "_links": {}
}

Retrieve Data from Archive

The HTTP POST request to the /restorePoints/postgresFlexible/{restorePointId}/retrieveData endpoint retrieves data of an archived restore point with the specified ID.

SecurityBearer
Request
path Parameters
restorePointId
required
string <uuid>

Specifies the system ID assigned to a restore point in the Veeam Backup for Microsoft Azure REST API.

Request Body schema: application/json
required
dataRetrievalPriority
required
string (DataRetrievalPriority)

Specifies the priority type for the data retrieval operation.

Enum: "Normal" "High" "Unknown"
daysToKeep
integer <int32> [ 1 .. 30 ]

Specifies the number of days for which the retrieved data will be kept.

notifyBeforeExpirationHours
integer or null <int32>

Specifies the time when a notification will be sent (in hours remaining until the expiration).

notifyAfterComplete
boolean or null

Defines whether a notification must be sent after the operation is complete.

Responses
202

Accepted

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

409

Conflict

415

Client Error

post/api/v10/restorePoints/postgresFlexible/{restorePointId}/retrieveData
Request samples
application/json
{
  • "dataRetrievalPriority": "Normal",
  • "daysToKeep": 1,
  • "notifyBeforeExpirationHours": 0,
  • "notifyAfterComplete": true
}
Response samples
application/json
{
  • "id": "string",
  • "type": "BackupRetention",
  • "localizedType": "string",
  • "executionStartTime": "2019-08-24T14:15:22Z",
  • "executionStopTime": "2019-08-24T14:15:22Z",
  • "executionDuration": "string",
  • "status": "Canceled",
  • "traceId": "string",
  • "eventIds": [
    ],
  • "timezones": [
    ],
  • "regions": [
    ],
  • "tenantIds": [
    ],
  • "backupJobInfo": {
    },
  • "healthCheckJobInfo": {
    },
  • "policyConfigurationCheckJobInfo": {
    },
  • "restoreJobInfo": {
    },
  • "fileLevelRestoreJobInfo": {
    },
  • "fileShareFileLevelRestoreJobInfo": {
    },
  • "repositoryJobInfo": {
    },
  • "restorePointDataRetrievalJobInfo": {
    },
  • "retentionJobInfo": {
    },
  • "_links": {}
}

Extend Data Availability Period

The HTTP POST request to the /restorePoints/postgresFlexible/{restorePointId}/extendRetrievedDataAvailability endpoint extends the data availability period of a retrieved restore point with the specified ID.

SecurityBearer
Request
path Parameters
restorePointId
required
string <uuid>

Specifies the system ID assigned to a restore point in the Veeam Backup for Microsoft Azure REST API.

Request Body schema: application/json
required
numberOfDays
integer <int32> [ 1 .. 30 ]

Specifies the number of days for which the data availability period will be extended.

Responses
204

No Content

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

415

Client Error

post/api/v10/restorePoints/postgresFlexible/{restorePointId}/extendRetrievedDataAvailability
Request samples
application/json
{
  • "numberOfDays": 1
}
Response samples
application/problem+json
{
  • "detail": "string",
  • "errors": {
    },
  • "status": 0,
  • "title": "string",
  • "traceId": "string",
  • "type": "string"
}