Skip to content

Commit

Permalink
doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
ujjwal-ibm committed Feb 20, 2023
1 parent f64c13a commit a843b7f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
16 changes: 16 additions & 0 deletions examples/ibm-is-ng/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
}
Expand Down
13 changes: 13 additions & 0 deletions website/docs/r/is_backup_policy_plan.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit a843b7f

Please sign in to comment.