PostgreSQL Servers Protected by Veeam Backup for Microsoft Azure

The /protectedItem/postgresFlexible resource collection represents Azure Database for PostgreSQL flexible servers protected by Veeam Backup for Microsoft Azure.

Get Collection of Protected PostgreSQL Servers

The HTTP GET request to the /protectedItem/postgresFlexible endpoint retrieves a list of PostgreSQL servers protected by Veeam Backup for Microsoft Azure.

SecurityBearer
Request
query Parameters
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.

SearchPattern
string or null

Returns only those items of a resource collection that match the specified search pattern in the parameter value.

ServerIds
Array of strings or null

Returns only PostgreSQL servers with the specified IDs.

Sync
boolean or null

Defines whether to force rescanning of the Microsoft Azure infrastructure before the response.

Responses
200

OK

202

Accepted

400

Bad Request

401

Unauthorized

403

Forbidden

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

Get Protected PostgreSQL Server Data

The HTTP GET request to the /protectedItem/postgresFlexible/{serverId} endpoint retrieves information on a protected PostgreSQL server with the specified ID.

SecurityBearer
Request
path Parameters
serverId
required
string

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

query Parameters
sync
boolean or null

Defines whether to force rescanning of the Microsoft Azure infrastructure before the response.

Responses
200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

get/api/v10/protectedItem/postgresFlexible/{serverId}
Request samples
Response samples
application/json
{
  • "id": "string",
  • "azureId": "string",
  • "name": "string",
  • "azureEnvironment": "Global",
  • "sizeInMb": 0,
  • "subscriptionId": "d079718b-ff63-45dd-947b-4950c023750f",
  • "lastBackup": "2019-08-24T14:15:22Z",
  • "subscription": {
    },
  • "region": {
    },
  • "resourceGroup": {
    },
  • "_links": {}
}

Export Collection of Protected PostgreSQL Servers

The HTTP POST request to the /protectedItem/postgresFlexible/export endpoint exports a list of PostgreSQL servers protected by Veeam Backup for Microsoft Azure to a .CSV or an .XML file.

SecurityBearer
Request
header Parameters
Accept
string or null

Specifies a media type of representation of the exported data. The default value is text/csv media type.

Request Body schema: application/json
serverIds
Array of strings or null

Specifies system IDs assigned in the Veeam Backup for Microsoft Azure REST API to the PostgreSQL servers whose data will be exported.

searchPattern
string or null

Exports only data on those items of a resource collection that match the specified search pattern in the parameter value.

Responses
200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

409

Conflict

post/api/v10/protectedItem/postgresFlexible/export
Request samples
application/json
{
  • "serverIds": [
    ],
  • "searchPattern": "string"
}
Response samples
application/problem+json
{
  • "detail": "string",
  • "errors": {
    },
  • "status": 0,
  • "title": "string",
  • "traceId": "string",
  • "type": "string"
}

Remove Backups of Protected PostgreSQL Server

The HTTP POST request to the /protectedItem/postgresFlexible/{serverId}/deleteBackups endpoint deletes backups created for a PostgreSQL server with the specified ID.

SecurityBearer
Request
path Parameters
serverId
required
string

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

query Parameters
BackupTier
string (ProtectedDataBackupTier)

Specifies the type of the backups that will be deleted.

Enum: "NonArchive" "Archive" "Unknown" "All"
Responses
202

Accepted

204

No Content

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

post/api/v10/protectedItem/postgresFlexible/{serverId}/deleteBackups
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": {}
}

Remove Manual Backups of Protected PostgreSQL Server

The HTTP POST request to the /protectedItem/postgresFlexible/{serverId}/deleteManualBackups endpoint deletes backups created manually for a PostgreSQL server with the specified ID.

SecurityBearer
Request
path Parameters
serverId
required
string

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

Responses
202

Accepted

204

No Content

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

post/api/v10/protectedItem/postgresFlexible/{serverId}/deleteManualBackups
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": {}
}