-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
82 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
--- | ||
page_title: "netapp-ontap_storage_snapshot_policy_resource Resource - terraform-provider-netapp-ontap" | ||
subcategory: "storage" | ||
description: |- | ||
SnapshotPolicy resource | ||
--- | ||
|
||
# Resource storage_snapshot_policy_resource | ||
|
||
Create/Modify/Delete a SnapshotPolicy resource | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
# Create a storage snapshot policy | ||
resource "netapp-ontap_storage_snapshot_policy_resource" "storage_snapshot_policy" { | ||
# required to know which system to interface with | ||
cx_profile_name = "cluster4" | ||
name = "testsnapshotpolicy" | ||
svm_name = "ansibleSVM" | ||
comment = "Test for terraform snapshot policy resource" | ||
enabled = false | ||
copies = [ | ||
{ | ||
count = 2 | ||
schedule = { | ||
name = "weekly" | ||
} | ||
}, | ||
{ | ||
count = 4 | ||
schedule = { | ||
name = "hourly" | ||
} | ||
}, | ||
] | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `copies` (Attributes List) Snapshot copy (see [below for nested schema](#nestedatt--copies)) | ||
- `cx_profile_name` (String) Connection profile name | ||
- `name` (String) SnapshotPolicy name | ||
|
||
### Optional | ||
|
||
- `comment` (String) A comment associated with the Snapshot copy policy | ||
- `enabled` (Boolean) Is the Snapshot copy policy enabled? | ||
- `svm_name` (String) SnapshotPolicy vserver name | ||
|
||
### Read-Only | ||
|
||
- `uuid` (String) SnapshotPolicy UUID | ||
|
||
<a id="nestedatt--copies"></a> | ||
### Nested Schema for `copies` | ||
|
||
Required: | ||
|
||
- `count` (Number) The number of Snapshot copies to maintain for this schedule | ||
- `schedule` (Attributes) Schedule at which Snapshot copies are captured on the volume (see [below for nested schema](#nestedatt--copies--schedule)) | ||
|
||
Optional: | ||
|
||
- `prefix` (String) The prefix to use while creating Snapshot copies at regular intervals | ||
- `retention_period` (String) The retention period of Snapshot copies for this schedule | ||
- `snapmirror_label` (String) Label for SnapMirror operations | ||
|
||
<a id="nestedatt--copies--schedule"></a> | ||
### Nested Schema for `copies.schedule` | ||
|
||
Required: | ||
|
||
- `name` (String) Some common schedules already defined in the system are hourly, daily, weekly, at 15 minute intervals, and at 5 minute intervals. Snapshot copy policies with custom schedules can be referenced | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters