Data source servercore_cloudbackup_plan_v2
Provides a list of backup plans for Servercore Cloud Backups. For more information about backup plans, see the official Servercore documentation.
Usage Example
data "servercore_cloudbackup_plan_v2" "plan_1" {
project_id = servercore_project_v2.project_1.id
region = "ru-3"
filter {
name = "my-backup-plan"
volume_name = "my-volume"
status = "started"
}
}
Argument Reference
-
project_id- (Required) Unique identifier of the associated project. Retrieved from the servercore_project_v2 resource. Learn more about Projects. -
region- (Required) The pool where the backup plan is located, for example,ru-3. Learn more about available pools in the Availability matrix. -
filter- (Optional) Values for filtering backup plans.-
name- (Optional) Backup plan name. -
volume_name- (Optional) Volume name. -
status- (Optional) Backup plan status.
-
Attribute Reference
-
plans- List of backup plans:-
list- Plans list:-
id- Unique backup plan identifier. -
name- Backup plan name. -
description- Backup plan description. -
status- Backup plan status. -
backup_mode- Backup mode. -
created_at- Time when the backup plan was created. -
full_backups_amount- Number of full backups. -
resources- List of resources backed up according to the backup plan:-
id- Unique identifier of the resource backed up according to the backup plan. -
name- Resource name. -
type- Resource type.
-
-
schedule_pattern- Schedule pattern for the backup plan. -
schedule_type- Schedule type for the backup plan.
-
-
total- Total number of backup plans.
-