PostgreSQL Servers

The /postgresFlexibleServers resource collection represents Azure Database for PostgreSQL flexible servers that reside in Azure regions selected in backup policy settings and can be protected by Veeam Backup for Microsoft Azure.

Get Collection of PostgreSQL Servers

The HTTP GET request to the /postgresFlexibleServers endpoint retrieves all PostgreSQL servers that can be 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.

SubscriptionId
string or null <uuid>

Returns only PostgreSQL servers available in a subscription with the specified ID.

TenantId
string or null <uuid>

Returns only PostgreSQL servers available for a tenant with the specified ID.

ServiceAccountId
string

Returns only PostgreSQL servers to which a service account with the specified ID has access.

SearchPattern
string or null

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

CredentialsState
string or null (CredentialsStateFilterOptions)

Returns only PostgreSQL servers that have the specified credentials state.

Enum: "OnlyWithCredentials" "OnlyWithoutCredentials" "All"
RegionIds
Array of strings or null

Returns only PostgreSQL servers that reside in Azure regions with the specified IDs.

ProtectionStatus
Array of strings or null (ProtectionStatus)

Returns only PostgreSQL servers with the specified protection status.

Enum: "Unprotected" "Protected" "Unknown"
BackupDestination
Array of strings or null (SqlBackupDestinationFilterOptions)

Returns only PostgreSQL server with the specified backup type.

Enum: "AzureBlob" "ManualBackup" "Archive"
ServerFromProtectedRegions
boolean

Defines whether Veeam Backup for Microsoft Azure must return only PostgreSQL servers that reside in regions protected by backup policies.

Responses
200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

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

Get PostgreSQL Server Data

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

SecurityBearer
Request
path Parameters
serverId
required
string

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

query Parameters
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

404

Not Found

get/api/v10/postgresFlexibleServers/{serverId}
Request samples
Response samples
application/json
{
  • "id": "string",
  • "name": "string",
  • "resourceId": "string",
  • "subscriptionId": "d079718b-ff63-45dd-947b-4950c023750f",
  • "regionId": "string",
  • "_links": {}
}

Rescan PostgreSQL Servers

The HTTP POST request to the /postgresFlexibleServers/rescan endpoint launches a rescan operation for PostgreSQL servers in the Microsoft Azure environment.

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.

Request Body schema: application/json
required
subscriptionId
string or null <uuid>

Returns only PostgreSQL servers available in a subscription with the specified ID.

tenantId
string or null <uuid>

Returns only PostgreSQL servers available for a tenant with the specified ID.

serviceAccountId
string

Returns only PostgreSQL servers to which a service account with the specified ID has access.

searchPattern
string or null

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

credentialsState
string or null (CredentialsStateFilterOptions)
Enum: "OnlyWithCredentials" "OnlyWithoutCredentials" "All"
regionIds
Array of strings or null

Returns only PostgreSQL servers that reside in Azure regions with the specified IDs.

protectionStatus
Array of strings or null (ProtectionStatus)

Returns only PostgreSQL servers with the specified protection status.

Enum: "Unprotected" "Protected" "Unknown"
backupDestination
Array of strings or null (SqlBackupDestinationFilterOptions)

Returns only PostgreSQL servers with the specified backup type.

Enum: "AzureBlob" "ManualBackup" "Archive"
serverFromProtectedRegions
boolean

Defines whether Veeam Backup for Microsoft Azure must return only PostgreSQL servers that reside in regions protected by backup policies.

Responses
202

Accepted

400

Bad Request

401

Unauthorized

403

Forbidden

post/api/v10/postgresFlexibleServers/rescan
Request samples
application/json
{
  • "subscriptionId": "d079718b-ff63-45dd-947b-4950c023750f",
  • "tenantId": "f97df110-f4de-492e-8849-4a6af68026b0",
  • "serviceAccountId": "string",
  • "searchPattern": "string",
  • "credentialsState": "OnlyWithCredentials",
  • "regionIds": [
    ],
  • "protectionStatus": [
    ],
  • "backupDestination": [
    ],
  • "serverFromProtectedRegions": true
}
Response samples
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "startTime": "2019-08-24T14:15:22Z",
  • "status": "Canceled",
  • "error": {
    },
  • "_links": {},
  • "result": {
    }
}

Export Collection of PostgreSQL Servers

The HTTP POST request to the /postgresFlexibleServers/export endpoint exports a list of PostgreSQL servers 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
required
serverIds
Array of strings or null

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

subscriptionId
string or null <uuid>

Returns only PostgreSQL servers available in a subscription with the specified ID.

tenantId
string or null <uuid>

Returns only PostgreSQL servers available for a tenant with the specified ID.

serviceAccountId
string or null

Returns only PostgreSQL servers to which a service account with the specified ID has access.

searchPattern
string or null

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

credentialsState
string or null (CredentialsStateFilterOptions)
Enum: "OnlyWithCredentials" "OnlyWithoutCredentials" "All"
regionIds
Array of strings or null

Returns only PostgreSQL servers that reside in Azure regions with the specified IDs.

protectionStatus
Array of strings or null (ProtectionStatus)

Returns only PostgreSQL servers with the specified protection status.

Enum: "Unprotected" "Protected" "Unknown"
backupDestination
Array of strings or null (SqlBackupDestinationFilterOptions)

Returns only PostgreSQL servers with the specified backup type.

Enum: "AzureBlob" "ManualBackup" "Archive"
serverFromProtectedRegions
boolean

Defines whether Veeam Backup for Microsoft Azure must return only PostgreSQL servers that reside in regions protected by backup policies.

Responses
200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

409

Conflict

post/api/v10/postgresFlexibleServers/export
Request samples
application/json
{
  • "serverIds": [
    ],
  • "subscriptionId": "d079718b-ff63-45dd-947b-4950c023750f",
  • "tenantId": "f97df110-f4de-492e-8849-4a6af68026b0",
  • "serviceAccountId": "string",
  • "searchPattern": "string",
  • "credentialsState": "OnlyWithCredentials",
  • "regionIds": [
    ],
  • "protectionStatus": [
    ],
  • "backupDestination": [
    ],
  • "serverFromProtectedRegions": true
}
Response samples
application/problem+json
{
  • "detail": "string",
  • "errors": {
    },
  • "status": 0,
  • "title": "string",
  • "traceId": "string",
  • "type": "string"
}

Create Backups of PostgreSQL Servers

The HTTP POST request to the /postgresFlexibleServers/startManualBackup endpoint launches a backup operation for the specified PostgreSQL servers.

SecurityBearer
Request
Request Body schema: application/json
required
serverIds
required
Array of strings non-empty

Specifies the system IDs assigned to the PostgreSQL servers in the Veeam Backup for Microsoft Azure REST API.

repositoryId
required
string non-empty

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

tenantId
required
string or null <uuid>

Specifies the Microsoft Azure ID assigned to the tenant associated with a service account whose permissions will be used to manage PostgreSQL servers.

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 manage PostgreSQL servers.

object or null (PostgresFlexibleServerProcessingCredentials)

Specifies a list of credentials that will be used to connect to the specified PostgreSQL flexible servers.

enableEntraIdAuthenticationForServerIds
Array of strings or null

Specifies Microsoft Azure IDs of PostgreSQL servers against which Veeam Backup for Microsoft Azure will authenticate using the Entra ID application instead of database accounts.

Responses
202

Accepted

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

415

Client Error

post/api/v10/postgresFlexibleServers/startManualBackup
Request samples
application/json
{
  • "serverIds": [
    ],
  • "repositoryId": "string",
  • "tenantId": "f97df110-f4de-492e-8849-4a6af68026b0",
  • "serviceAccountId": "a814cf67-aaac-43ae-acb4-8d34e82a4b4c",
  • "credentialsList": {
    },
  • "enableEntraIdAuthenticationForServerIds": [
    ]
}
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": {}
}