diff --git a/examples/ibm-is-ng/main.tf b/examples/ibm-is-ng/main.tf index a080e06b8b..0a0762a529 100644 --- a/examples/ibm-is-ng/main.tf +++ b/examples/ibm-is-ng/main.tf @@ -1096,6 +1096,22 @@ resource "ibm_is_backup_policy_plan" "is_backup_policy_plan" { } name = "my-backup-policy-plan-1" } +resource "ibm_is_backup_policy_plan" "is_backup_policy_plan_clone" { + backup_policy_id = ibm_is_backup_policy.is_backup_policy.id + cron_spec = "30 09 * * *" + active = false + attach_user_tags = ["tag2"] + copy_user_tags = true + deletion_trigger { + delete_after = 20 + delete_over_count = "20" + } + name = "my-backup-policy-plan-1" + clone_policy { + zones = ["us-south-1", "us-south-2"] + max_snapshots = 3 + } +} data "ibm_is_backup_policies" "is_backup_policies" { } diff --git a/website/docs/r/is_backup_policy_plan.html.markdown b/website/docs/r/is_backup_policy_plan.html.markdown index 4893d1b488..5461394eb7 100644 --- a/website/docs/r/is_backup_policy_plan.html.markdown +++ b/website/docs/r/is_backup_policy_plan.html.markdown @@ -31,6 +31,19 @@ resource "ibm_is_backup_policy_plan" "example" { name = "example-backup-policy-plan" } ``` +## Example Usage (clones) + +```terraform +resource "ibm_is_backup_policy_plan" "example" { + backup_policy_id = "backup_policy_id" + cron_spec = "0 12 * * *" + name = "example-backup-policy-plan" + clone_policy { + zones = ["us-south-1", "us-south-2"] + max_snapshots = 3 + } +} +``` ->**Note:** Backup Policy Jobs are getting enhanced, will be available soon.