Azure DataProtection Backup Policy PostgreSQL
This page shows how to write Terraform and Azure Resource Manager for DataProtection Backup Policy PostgreSQL and write them securely.
azurerm_data_protection_backup_policy_postgresql (Terraform)
The Backup Policy PostgreSQL in DataProtection can be configured in Terraform with the resource name azurerm_data_protection_backup_policy_postgresql
. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
An example could not be found in GitHub.
Parameters
The following arguments are supported:
name
- (Required) The name which should be used for this Backup Policy PostgreSQL. Changing this forces a new Backup Policy PostgreSQL to be created.resource_group_name
- (Required) The name of the Resource Group where the Backup Policy PostgreSQL should exist. Changing this forces a new Backup Policy PostgreSQL to be created.vault_name
- (Required) The name of the Backup Vault where the Backup Policy PostgreSQL should exist. Changing this forces a new Backup Policy PostgreSQL to be created.backup_repeating_time_intervals
- (Required) Specifies a list of repeating time interval. It supports weekly back. It should followISO 8601
repeating time interval. Changing this forces a new Backup Policy PostgreSQL to be created.default_retention_duration
- (Required) The duration of default retention rule. It should followISO 8601
duration format. Changing this forces a new Backup Policy PostgreSQL to be created.
retention_rule
- (Optional) One or moreretention_rule
blocks as defined below. Changing this forces a new Backup Policy PostgreSQL to be created.
A retention_rule
block supports the following:
name
- (Required) The name which should be used for this retention rule. Changing this forces a new Backup Policy PostgreSQL to be created.duration
- (Required) Duration after which the backup is deleted. It should followISO 8601
duration format. Changing this forces a new Backup Policy PostgreSQL to be created.criteria
- (Required) Acriteria
block as defined below. Changing this forces a new Backup Policy PostgreSQL to be created.priority
- (Required) Specifies the priority of the rule. The priority number must be unique for each rule. The lower the priority number, the higher the priority of the rule. Changing this forces a new Backup Policy Postgre Sql to be created.
A criteria
block supports the following:
absolute_criteria
- (Optional) Possible values areAllBackup
,FirstOfDay
,FirstOfWeek
,FirstOfMonth
andFirstOfYear
. These values mean the first successful backup of the day/week/month/year. Changing this forces a new Backup Policy PostgreSQL to be created.days_of_week
- (Optional) Possible values areMonday
,Tuesday
,Thursday
,Friday
,Saturday
andSunday
. Changing this forces a new Backup Policy PostgreSQL to be created.months_of_year
- (Optional) Possible values areJanuary
,February
,March
,April
,May
,June
,July
,August
,September
,October
,November
andDecember
. Changing this forces a new Backup Policy PostgreSQL to be created.scheduled_backup_times
- (Optional) Specifies a list of backup times for backup in theRFC3339
format. Changing this forces a new Backup Policy Postgre Sql to be created.weeks_of_month
- (Optional) Possible values areFirst
,Second
,Third
,Fourth
andLast
. Changing this forces a new Backup Policy PostgreSQL to be created.
In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of the Backup Policy PostgreSQL.
Explanation in Terraform Registry
Manages a Backup Policy to back up PostgreSQL.
Microsoft.DataProtection/backupVaults/backupPolicies (Azure Resource Manager)
The backupVaults/backupPolicies in Microsoft.DataProtection can be configured in Azure Resource Manager with the resource name Microsoft.DataProtection/backupVaults/backupPolicies
. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
An example could not be found in GitHub.
Parameters
apiVersion
required - stringname
required - stringName of the policy
properties
requireddatasourceTypes
required - arrayType of datasource for the backup management
systemData
optionalcreatedAt
optional - stringThe timestamp of resource creation (UTC).
createdBy
optional - stringThe identity that created the resource.
createdByType
optional - stringThe type of identity that created the resource.
lastModifiedAt
optional - stringThe type of identity that last modified the resource.
lastModifiedBy
optional - stringThe identity that last modified the resource.
lastModifiedByType
optional - stringThe type of identity that last modified the resource.
type
required - string