Skip to content

Commit

Permalink
Sync bitbucket and GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
carchi8py committed Jul 12, 2023
1 parent bbaac13 commit 7647da9
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
64 changes: 64 additions & 0 deletions docs/resources/storage_aggregate_resource.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
---
page_title: "netapp-ontap_storage_aggregate_resource Resource - terraform-provider-netapp-ontap"
subcategory: "storage"
description: |-
Aggregate resource
---

# Resource netapp-ontap_storage_aggregate_resource

Create/Modify/Delete an aggregate resource

## Example Usage

```terraform
# Create an aggregate
resource "netapp-ontap_storage_aggregate_resource" "example" {
cx_profile_name = "cluster4"
name = "test_aggr"
node = "swenjun-vsim1"
disk_count = 5
disk_size = 1
disk_size_unit= "gb"
is_mirrored = false
raid_type = "raid4"
snaplock_type = "compliance"
encryption = true
state = "offline"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `cx_profile_name` (String) Connection profile name
- `disk_count` (Number) Number of disks to place into the aggregate, including parity disks.
The disks in this newly-created aggregate come from the spare disk pool.
The smallest disks in this pool join the aggregate first, unless the disk_size argument is provided.
Modifiable only if specified disk_count is larger than current disk_count.
If the disk_count % raid_size == 1, only disk_count/raid_size * raid_size will be added.
If disk_count is 6, raid_type is raid4, raid_size 4, all 6 disks will be added.
If disk_count is 5, raid_type is raid4, raid_size 4, 5/4 * 4 = 4 will be added. 1 will not be added.
- `name` (String) The name of the aggregate to manage
- `node` (String) Node for the aggregate to be created on. If no node specified, mgmt lif home will be used. If disk_count is present, node name is required.

### Optional

- `disk_class` (String) Class of disk to use to build aggregate. capacity_flash is listed in swagger, but rejected as invalid by ONTAP.
- `disk_size` (Number) Disk size to use in 4K block size. Disks within 10 precent of specified size will be used.
- `disk_size_unit` (String) Disk size to use in the specified unit. This is converted to bytes, assuming K=1024.
- `encryption` (Boolean) Whether to enable software encryption. This is equivalent to -encrypt-with-aggr-key when using the CLI.Requires a VE license.
- `is_mirrored` (Boolean) Specifies that the new aggregate be mirrored (have two plexes).
If set to true, then the indicated disks will be split across the two plexes. By default, the new aggregate will not be mirrored.
- `raid_size` (Number) Sets the maximum number of drives per raid group.
- `raid_type` (String)
- `snaplock_type` (String) Type of snaplock for the aggregate being created.
- `state` (String) Whether the specified aggregate should be enabled or disabled. Creates aggregate if doesnt exist.

### Read-Only

- `id` (String) Aggregate identifier


1 change: 1 addition & 0 deletions scripts/generate_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
'snaplock': [],
'snapmirror': [],
'storage': [
"storage_aggregate_resource.md",
"storage_snapshot_policy_resource.md",
"storage_volume_snapshot_data_source.md",
"storage_volume_resource.md",
Expand Down

0 comments on commit 7647da9

Please sign in to comment.