-
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
13 changed files
with
872 additions
and
3 deletions.
There are no files selected for viewing
85 changes: 85 additions & 0 deletions
85
docs/data-sources/storage_snapshot_policies_data_source.md
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,85 @@ | ||
--- | ||
page_title: "netapp-ontap_storage_snapshot_policies_data_source Data Source - terraform-provider-netapp-ontap" | ||
subcategory: "storage" | ||
description: |- | ||
Retrieves Snapshot Policies information | ||
--- | ||
|
||
# NetApp Ontap snapshot policies data source | ||
|
||
Snapshot Policies data source | ||
|
||
## Example Usage | ||
```terraform | ||
data "netapp-ontap_storage_snapshot_policies_data_source" "storage_snapshot_policies" { | ||
# required to know which system to interface with | ||
cx_profile_name = "cluster4" | ||
filter = { | ||
name = "ansible*" | ||
} | ||
} | ||
``` | ||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `cx_profile_name` (String) Connection profile name | ||
|
||
### Optional | ||
|
||
- `filter` (Attributes) (see [below for nested schema](#nestedatt--filter)) | ||
|
||
### Read-Only | ||
|
||
- `storage_snapshot_policies` (Attributes List) (see [below for nested schema](#nestedatt--storage_snapshot_policies)) | ||
|
||
<a id="nestedatt--filter"></a> | ||
### Nested Schema for `filter` | ||
|
||
Optional: | ||
|
||
- `name` (String) SnapshotPolicy name | ||
- `svm_name` (String) SnapshotPolicy vserver name | ||
|
||
|
||
<a id="nestedatt--storage_snapshot_policies"></a> | ||
### Nested Schema for `storage_snapshot_policies` | ||
|
||
Required: | ||
|
||
- `cx_profile_name` (String) Connection profile name | ||
- `name` (String) SnapshotPolicy name | ||
|
||
Read-Only: | ||
|
||
- `comment` (String) A comment associated with the Snapshot copy policy | ||
- `copies` (Attributes List) Snapshot copy (see [below for nested schema](#nestedatt--storage_snapshot_policies--copies)) | ||
- `enabled` (Boolean) Is the Snapshot copy policy enabled? | ||
- `svm_name` (String) IPInterface vserver name | ||
- `uuid` (String) SnapshotPolicy UUID | ||
|
||
<a id="nestedatt--storage_snapshot_policies--copies"></a> | ||
### Nested Schema for `storage_snapshot_policies.copies` | ||
|
||
Required: | ||
|
||
- `schedule` (Attributes) Schedule at which Snapshot copies are captured on the volume (see [below for nested schema](#nestedatt--storage_snapshot_policies--copies--schedule)) | ||
|
||
Read-Only: | ||
|
||
- `count` (Number) The number of Snapshot copies to maintain for this schedule | ||
- `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--storage_snapshot_policies--copies--schedule"></a> | ||
### Nested Schema for `storage_snapshot_policies.copies.schedule` | ||
|
||
Read-Only: | ||
|
||
- `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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- | ||
page_title: "netapp-ontap_snapshot_policy_data_source Data Source - terraform-provider-netapp-ontap" | ||
subcategory: "storage" | ||
description: |- | ||
Retrieves Snapshot Policy information | ||
--- | ||
|
||
# NetApp Ontap snapshot policy data source | ||
|
||
Snapshot Policy data source | ||
|
||
## Example Usage | ||
```terraform | ||
data "netapp-ontap_storage_snapshot_policy_data_source" "storage_snapshot_policy" { | ||
# required to know which system to interface with | ||
cx_profile_name = "cluster4" | ||
name = "ansible2" | ||
} | ||
``` | ||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `cx_profile_name` (String) Connection profile name | ||
- `name` (String) SnapshotPolicy name | ||
|
||
### Read-Only | ||
|
||
- `comment` (String) A comment associated with the Snapshot copy policy | ||
- `copies` (Attributes List) Snapshot copy (see [below for nested schema](#nestedatt--copies)) | ||
- `enabled` (Boolean) Is the Snapshot copy policy enabled? | ||
- `svm_name` (String) IPInterface vserver name | ||
- `uuid` (String) SnapshotPolicy UUID | ||
|
||
<a id="nestedatt--copies"></a> | ||
### Nested Schema for `copies` | ||
|
||
Required: | ||
|
||
- `schedule` (Attributes) Schedule at which Snapshot copies are captured on the volume (see [below for nested schema](#nestedatt--copies--schedule)) | ||
|
||
Read-Only: | ||
|
||
- `count` (Number) The number of Snapshot copies to maintain for this schedule | ||
- `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` | ||
|
||
Read-Only: | ||
|
||
- `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 | ||
|
||
|
7 changes: 7 additions & 0 deletions
7
examples/data-sources/netapp-ontap_storage_snapshot_policies/data-source.tf
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,7 @@ | ||
data "netapp-ontap_storage_snapshot_policies_data_source" "storage_snapshot_policies" { | ||
# required to know which system to interface with | ||
cx_profile_name = "cluster4" | ||
filter = { | ||
name = "ansible*" | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
examples/data-sources/netapp-ontap_storage_snapshot_policies/provider.tf
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,44 @@ | ||
terraform { | ||
required_providers { | ||
netapp-ontap = { | ||
source = "NetApp/netapp-ontap" | ||
version = "0.0.1" | ||
} | ||
} | ||
} | ||
|
||
|
||
provider "netapp-ontap" { | ||
# A connection profile defines how to interface with an ONTAP cluster or svm. | ||
# At least one is required. | ||
connection_profiles = [ | ||
{ | ||
name = "cluster1" | ||
hostname = "********219" | ||
username = var.username | ||
password = var.password | ||
validate_certs = var.validate_certs | ||
}, | ||
{ | ||
name = "cluster2" | ||
hostname = "********222" | ||
username = var.username | ||
password = var.password | ||
validate_certs = var.validate_certs | ||
}, | ||
{ | ||
name = "cluster3" | ||
hostname = "10.193.176.159" | ||
username = var.username | ||
password = var.password | ||
validate_certs = var.validate_certs | ||
}, | ||
{ | ||
name = "cluster4" | ||
hostname = "10.193.180.108" | ||
username = var.username | ||
password = var.password | ||
validate_certs = var.validate_certs | ||
} | ||
] | ||
} |
11 changes: 11 additions & 0 deletions
11
examples/data-sources/netapp-ontap_storage_snapshot_policies/variables.tf
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,11 @@ | ||
# Terraform will prompt for values, unless a tfvars file is present. | ||
variable "username" { | ||
type = string | ||
} | ||
variable "password" { | ||
type = string | ||
sensitive = true | ||
} | ||
variable "validate_certs" { | ||
type = bool | ||
} |
5 changes: 5 additions & 0 deletions
5
examples/data-sources/netapp-ontap_storage_snapshot_policy/data-source.tf
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,5 @@ | ||
data "netapp-ontap_storage_snapshot_policy_data_source" "storage_snapshot_policy" { | ||
# required to know which system to interface with | ||
cx_profile_name = "cluster4" | ||
name = "ansible2" | ||
} |
44 changes: 44 additions & 0 deletions
44
examples/data-sources/netapp-ontap_storage_snapshot_policy/provider.tf
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,44 @@ | ||
terraform { | ||
required_providers { | ||
netapp-ontap = { | ||
source = "NetApp/netapp-ontap" | ||
version = "0.0.1" | ||
} | ||
} | ||
} | ||
|
||
|
||
provider "netapp-ontap" { | ||
# A connection profile defines how to interface with an ONTAP cluster or svm. | ||
# At least one is required. | ||
connection_profiles = [ | ||
{ | ||
name = "cluster1" | ||
hostname = "********219" | ||
username = var.username | ||
password = var.password | ||
validate_certs = var.validate_certs | ||
}, | ||
{ | ||
name = "cluster2" | ||
hostname = "********222" | ||
username = var.username | ||
password = var.password | ||
validate_certs = var.validate_certs | ||
}, | ||
{ | ||
name = "cluster3" | ||
hostname = "10.193.176.159" | ||
username = var.username | ||
password = var.password | ||
validate_certs = var.validate_certs | ||
}, | ||
{ | ||
name = "cluster4" | ||
hostname = "10.193.180.108" | ||
username = var.username | ||
password = var.password | ||
validate_certs = var.validate_certs | ||
} | ||
] | ||
} |
11 changes: 11 additions & 0 deletions
11
examples/data-sources/netapp-ontap_storage_snapshot_policy/variables.tf
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,11 @@ | ||
# Terraform will prompt for values, unless a tfvars file is present. | ||
variable "username" { | ||
type = string | ||
} | ||
variable "password" { | ||
type = string | ||
sensitive = true | ||
} | ||
variable "validate_certs" { | ||
type = bool | ||
} |
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
Oops, something went wrong.