Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added flexcache resource, data source and data sources. #134

Merged
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
7c8f83a
added flexcache resource, data source and data sources.
wenjun666 Feb 15, 2024
1f1ba5b
fix build fails.
wenjun666 Feb 15, 2024
d9738d4
pull intergration/main
wenjun666 Feb 23, 2024
adbd057
added missing files
wenjun666 Feb 23, 2024
41d43ff
Add edited files.
wenjun666 Feb 23, 2024
6c25289
fix build
wenjun666 Feb 23, 2024
462679c
fix flexcaches data source.
wenjun666 Feb 24, 2024
9ef5dc7
Lint.
wenjun666 Feb 28, 2024
a100454
Merge branch 'integration/main' of https://github.com/NetApp/terrafor…
wenjun666 Mar 1, 2024
87c8ffe
added import.
wenjun666 Mar 11, 2024
8bc4911
Edited docs for flexcache data source and resource
wenjun666 Mar 26, 2024
4397187
Added test for import in acc test.
wenjun666 Mar 26, 2024
1272f53
Edit generate_docs.py
wenjun666 Mar 26, 2024
9293dbc
edit flexcache acc test.
wenjun666 Apr 1, 2024
8825b54
edit flexcache example.
wenjun666 Apr 1, 2024
0eda414
edit flexcache acc test.
wenjun666 Apr 2, 2024
7826854
edit acc test.
wenjun666 Apr 2, 2024
a6465a4
edit acc test.
wenjun666 Apr 2, 2024
6990201
resolve conflict.
wenjun666 Apr 2, 2024
af2bf27
Edit test.
wenjun666 Apr 2, 2024
c2abe50
edit acc test.
wenjun666 Apr 2, 2024
f509bac
added id in read function.
wenjun666 Apr 2, 2024
f02e01c
edit acc test and reportcard.yml
wenjun666 Apr 2, 2024
db763ba
edit acc test.
wenjun666 Apr 2, 2024
1d25ce8
Edited examples/resources/netapp-ontap_storage_flexcache/resource.tf
wenjun666 Apr 3, 2024
4800da6
resolve conflict.
wenjun666 Apr 4, 2024
46c87f5
added if statements for size and size_unit
wenjun666 Apr 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Edited docs for flexcache data source and resource
wenjun666 committed Mar 26, 2024
commit 8bc49111c87771b305405b8d5f48b1f27ae37b70
18 changes: 15 additions & 3 deletions docs/data-sources/storage_flexcache_data_source.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,27 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "netapp-ontap_storage_flexcache_data_source Data Source - terraform-provider-netapp-ontap"
subcategory: ""
subcategory: "storage"
description: |-
Flexcache resource
Flexcache data source
---

# netapp-ontap_storage_flexcache_data_source (Data Source)

Flexcache resource
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 -->
86 changes: 62 additions & 24 deletions docs/data-sources/storage_flexcaches_data_source.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,28 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "netapp-ontap_storage_flexcaches_data_source Data Source - terraform-provider-netapp-ontap"
subcategory: ""
subcategory: "storage"
description: |-
Flexcache resource
Flexcaches data source
---

# netapp-ontap_storage_flexcaches_data_source (Data Source)

Flexcache resource
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"
}
}
```



@@ -18,59 +32,83 @@ Flexcache resource
### 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

### Optional

- `filter` (Attributes) (see [below for nested schema](#nestedatt--filter))

### Read-Only

- `aggregates` (Attributes Set) (see [below for nested schema](#nestedatt--aggregates))
- `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--guarantee))
- `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--origins))
- `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--aggregates"></a>
### Nested Schema for `aggregates`
<a id="nestedatt--storage_flexcaches--aggregates"></a>
### Nested Schema for `storage_flexcaches.aggregates`

Read-Only:

- `id` (String) UUID of the aggregate
- `id` (String) ID of the aggregate
- `name` (String) Name of the aggregate


<a id="nestedatt--guarantee"></a>
### Nested Schema for `guarantee`
<a id="nestedatt--storage_flexcaches--guarantee"></a>
### Nested Schema for `storage_flexcaches.guarantee`

Read-Only:

- `type` (String) The type of guarantee
- `type` (String) The type of the guarantee


<a id="nestedatt--origins"></a>
### Nested Schema for `origins`
<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--origins--svm))
- `volume` (Attributes) Origin volume (see [below for nested schema](#nestedatt--origins--volume))
- `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--origins--svm"></a>
### Nested Schema for `origins.svm`
<a id="nestedatt--storage_flexcaches--origins--svm"></a>
### Nested Schema for `storage_flexcaches.origins.svm`

Read-Only:

- `id` (String) ID of the origin volume
- `name` (String) Name of the origin volume
- `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`
<a id="nestedatt--storage_flexcaches--origins--volume"></a>
### Nested Schema for `storage_flexcaches.origins.volume`

Read-Only:

34 changes: 34 additions & 0 deletions docs/resources/storage_flexcache_resource.md
Original file line number Diff line number Diff line change
@@ -10,6 +10,40 @@ description: |-

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 -->