-
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.
Merge pull request #134 from NetApp/46-new-resource-storageflexcachef…
…lexcaches added flexcache resource, data source and data sources.
- Loading branch information
Showing
21 changed files
with
2,128 additions
and
9 deletions.
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
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,92 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "netapp-ontap_storage_flexcache_data_source Data Source - terraform-provider-netapp-ontap" | ||
subcategory: "storage" | ||
description: |- | ||
Flexcache data source | ||
--- | ||
|
||
# netapp-ontap_storage_flexcache_data_source (Data Source) | ||
|
||
Retrieves the details of a flexcache. | ||
|
||
### Related ONTAP commands | ||
* volume flexcache show | ||
|
||
## Example Usage | ||
```terraform | ||
data "netapp-ontap_storage_flexcache_data_source" "storage_flexcache" { | ||
# required to know which system to interface with | ||
cx_profile_name = "cluster1" | ||
name = "fc1" | ||
svm_name = "automation" | ||
} | ||
``` | ||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `cx_profile_name` (String) Connection profile name | ||
- `name` (String) The name of the flexcache volume | ||
- `svm_name` (String) Name of the svm to use | ||
|
||
### Read-Only | ||
|
||
- `aggregates` (Attributes Set) (see [below for nested schema](#nestedatt--aggregates)) | ||
- `constituents_per_aggregate` (Number) The number of constituents per aggregate | ||
- `dr_cache` (Boolean) The state of the dr cache | ||
- `global_file_locking_enabled` (Boolean) The state of the global file locking | ||
- `guarantee` (Attributes) The guarantee of the volume (see [below for nested schema](#nestedatt--guarantee)) | ||
- `id` (String) The UUID of the flexcache volume | ||
- `junction_path` (String) Name of the junction path | ||
- `origins` (Attributes Set) Set of the origin volumes (see [below for nested schema](#nestedatt--origins)) | ||
- `size` (Number) The size of the flexcache volume | ||
- `size_unit` (String) The unit used to interpret the size parameter | ||
- `use_tiered_aggregate` (Boolean) The state of the use tiered aggregates | ||
|
||
<a id="nestedatt--aggregates"></a> | ||
### Nested Schema for `aggregates` | ||
|
||
Read-Only: | ||
|
||
- `id` (String) UUID of the aggregate | ||
- `name` (String) Name of the aggregate | ||
|
||
|
||
<a id="nestedatt--guarantee"></a> | ||
### Nested Schema for `guarantee` | ||
|
||
Read-Only: | ||
|
||
- `type` (String) The type of guarantee | ||
|
||
|
||
<a id="nestedatt--origins"></a> | ||
### Nested Schema for `origins` | ||
|
||
Required: | ||
|
||
- `svm` (Attributes) Origin volume SVM (see [below for nested schema](#nestedatt--origins--svm)) | ||
- `volume` (Attributes) Origin volume (see [below for nested schema](#nestedatt--origins--volume)) | ||
|
||
<a id="nestedatt--origins--svm"></a> | ||
### Nested Schema for `origins.svm` | ||
|
||
Read-Only: | ||
|
||
- `id` (String) ID of the origin volume | ||
- `name` (String) Name of the origin volume | ||
|
||
|
||
<a id="nestedatt--origins--volume"></a> | ||
### Nested Schema for `origins.volume` | ||
|
||
Read-Only: | ||
|
||
- `id` (String) ID of the origin volume | ||
- `name` (String) Name of the origin volume | ||
|
||
|
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,118 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "netapp-ontap_storage_flexcaches_data_source Data Source - terraform-provider-netapp-ontap" | ||
subcategory: "storage" | ||
description: |- | ||
Flexcaches data source | ||
--- | ||
|
||
# netapp-ontap_storage_flexcaches_data_source (Data Source) | ||
|
||
Retrieves the details of one or more flexcaches by filter. | ||
|
||
### Related ONTAP commands | ||
* volume flexcache show | ||
|
||
## Example Usage | ||
data "netapp-ontap_storage_flexcaches_data_source" "storage_flexcache" { | ||
# required to know which system to interface with | ||
cx_profile_name = "cluster1" | ||
filter = { | ||
name = "fc*" | ||
svm_name = "automation" | ||
} | ||
} | ||
``` | ||
<!-- 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_flexcaches` (Attributes List) (see [below for nested schema](#nestedatt--storage_flexcaches)) | ||
<a id="nestedatt--filter"></a> | ||
### Nested Schema for `filter` | ||
Optional: | ||
- `name` (String) StorageFlexcache name | ||
- `svm_name` (String) StorageFlexcache svm name | ||
<a id="nestedatt--storage_flexcaches"></a> | ||
### Nested Schema for `storage_flexcaches` | ||
Required: | ||
- `cx_profile_name` (String) Connection profile name | ||
- `name` (String) The name of the flexcache volume to manage | ||
- `svm_name` (String) Name of the svm to use | ||
Read-Only: | ||
- `aggregates` (Attributes Set) (see [below for nested schema](#nestedatt--storage_flexcaches--aggregates)) | ||
- `constituents_per_aggregate` (Number) The number of constituents per aggregate | ||
- `dr_cache` (Boolean) The state of the dr cache | ||
- `global_file_locking_enabled` (Boolean) The state of the global file locking | ||
- `guarantee` (Attributes) The guarantee of the volume (see [below for nested schema](#nestedatt--storage_flexcaches--guarantee)) | ||
- `id` (String) The UUID of the flexcache volume | ||
- `junction_path` (String) Name of the junction path | ||
- `origins` (Attributes Set) Set of the origin volumes (see [below for nested schema](#nestedatt--storage_flexcaches--origins)) | ||
- `size` (Number) The size of the flexcache volume | ||
- `size_unit` (String) The unit used to interpret the size parameter | ||
- `use_tiered_aggregate` (Boolean) The state of the use tiered aggregates | ||
<a id="nestedatt--storage_flexcaches--aggregates"></a> | ||
### Nested Schema for `storage_flexcaches.aggregates` | ||
Read-Only: | ||
- `id` (String) ID of the aggregate | ||
- `name` (String) Name of the aggregate | ||
<a id="nestedatt--storage_flexcaches--guarantee"></a> | ||
### Nested Schema for `storage_flexcaches.guarantee` | ||
Read-Only: | ||
- `type` (String) The type of the guarantee | ||
<a id="nestedatt--storage_flexcaches--origins"></a> | ||
### Nested Schema for `storage_flexcaches.origins` | ||
Required: | ||
- `svm` (Attributes) Origin volume SVM (see [below for nested schema](#nestedatt--storage_flexcaches--origins--svm)) | ||
- `volume` (Attributes) Origin volume (see [below for nested schema](#nestedatt--storage_flexcaches--origins--volume)) | ||
<a id="nestedatt--storage_flexcaches--origins--svm"></a> | ||
### Nested Schema for `storage_flexcaches.origins.svm` | ||
Read-Only: | ||
- `id` (String) ID of the origin volume SVM | ||
- `name` (String) Name of the origin volume SVM | ||
<a id="nestedatt--storage_flexcaches--origins--volume"></a> | ||
### Nested Schema for `storage_flexcaches.origins.volume` | ||
Read-Only: | ||
- `id` (String) ID of the origin volume | ||
- `name` (String) Name of the origin volume | ||
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,118 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "netapp-ontap_storage_flexcache_resource Resource - terraform-provider-netapp-ontap" | ||
subcategory: "storage" | ||
description: |- | ||
Flexcache resource | ||
--- | ||
|
||
# netapp-ontap_storage_flexcache_resource (Resource) | ||
|
||
Flexcache resource | ||
|
||
### Related ONTAP commands | ||
* volume flexcache create | ||
* volume flexcache prepopulate start | ||
|
||
## Example Usage | ||
resource "netapp-ontap_storage_flexcache_resource" "storage_flexcache" { | ||
# required to know which system to interface with | ||
cx_profile_name = "cluster1" | ||
name = "fc1" | ||
svm_name = "automation" | ||
origins = [ | ||
{ | ||
volume = { | ||
name = "vol1" | ||
}, | ||
svm = { | ||
name = "automation" | ||
} | ||
} | ||
] | ||
size = 400 | ||
size_unit = "mb" | ||
guarantee = { | ||
type = "none" | ||
} | ||
dr_cache = false | ||
global_file_locking_enabled = false | ||
aggregates = [ | ||
{ | ||
name = "aggr1" | ||
} | ||
] | ||
} | ||
``` | ||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
### Required | ||
- `cx_profile_name` (String) Connection profile name | ||
- `name` (String) The name of the flexcache volume to manage | ||
- `origins` (Attributes Set) Set of the origin volumes (see [below for nested schema](#nestedatt--origins)) | ||
- `svm_name` (String) Name of the svm to use | ||
### Optional | ||
- `aggregates` (Attributes Set) Set of the aggregates to use (see [below for nested schema](#nestedatt--aggregates)) | ||
- `constituents_per_aggregate` (Number) The number of constituents per aggregate | ||
- `dr_cache` (Boolean) The state of the dr cache | ||
- `global_file_locking_enabled` (Boolean) The state of the global file locking | ||
- `guarantee` (Attributes) The guarantee of the volume (see [below for nested schema](#nestedatt--guarantee)) | ||
- `junction_path` (String) Name of the junction path | ||
- `size` (Number) The size of the flexcache volume | ||
- `size_unit` (String) The unit used to interpret the size parameter | ||
- `use_tiered_aggregate` (Boolean) The state of the use tiered aggregates | ||
### Read-Only | ||
- `id` (String) The ID of the volume | ||
<a id="nestedatt--origins"></a> | ||
### Nested Schema for `origins` | ||
Required: | ||
- `svm` (Attributes) origin volume SVM (see [below for nested schema](#nestedatt--origins--svm)) | ||
- `volume` (Attributes) origin volume (see [below for nested schema](#nestedatt--origins--volume)) | ||
<a id="nestedatt--origins--svm"></a> | ||
### Nested Schema for `origins.svm` | ||
Optional: | ||
- `id` (String) ID of the origin volume SVM | ||
- `name` (String) Name of the origin volume SVM | ||
<a id="nestedatt--origins--volume"></a> | ||
### Nested Schema for `origins.volume` | ||
Optional: | ||
- `id` (String) ID of the origin volume | ||
- `name` (String) Name of the origin volume | ||
<a id="nestedatt--aggregates"></a> | ||
### Nested Schema for `aggregates` | ||
Optional: | ||
- `id` (String) UUID of the aggregate | ||
- `name` (String) Name of the aggregate | ||
<a id="nestedatt--guarantee"></a> | ||
### Nested Schema for `guarantee` | ||
Optional: | ||
- `type` (String) The type of guarantee | ||
6 changes: 6 additions & 0 deletions
6
examples/data-sources/netapp-ontap_storage_flexcache/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,6 @@ | ||
data "netapp-ontap_storage_flexcache_data_source" "storage_flexcache" { | ||
# required to know which system to interface with | ||
cx_profile_name = "cluster5" | ||
name = "fc5" | ||
svm_name = "automation" | ||
} |
1 change: 1 addition & 0 deletions
1
examples/data-sources/netapp-ontap_storage_flexcache/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 @@ | ||
../../provider/provider.tf |
11 changes: 11 additions & 0 deletions
11
examples/data-sources/netapp-ontap_storage_flexcache/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 | ||
} |
8 changes: 8 additions & 0 deletions
8
examples/data-sources/netapp-ontap_storage_flexcaches/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,8 @@ | ||
data "netapp-ontap_storage_flexcaches_data_source" "storage_flexcache" { | ||
# required to know which system to interface with | ||
cx_profile_name = "cluster4" | ||
filter = { | ||
name = "f*" | ||
svm_name = "automation" | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
examples/data-sources/netapp-ontap_storage_flexcaches/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 @@ | ||
../../provider/provider.tf |
Oops, something went wrong.