netapp.storagegrid.na_sg_grid_ilm_rule module – Manage ILM rules on StorageGRID.
Note
This module is part of the netapp.storagegrid collection (version 21.14.0).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install netapp.storagegrid
.
To use it in a playbook, specify: netapp.storagegrid.na_sg_grid_ilm_rule
.
New in netapp.storagegrid 21.14.0
Synopsis
Interact with ILM rules on NetApp StorageGRID.
Parameters
Parameter |
Comments |
---|---|
Rest endpoint for all invocations against the grid |
|
The authorization token for the API request |
|
S3 or Swift bucket(s) to which the ILM rule applies. If omitted, matches all objects in any specified tenant accounts |
|
Operator used to match bucket(s) with the value Choices:
|
|
str value used to match bucket(s) with the specified operator |
|
A short description of the ILM rule to indicate its purpose |
|
Filtering criteria used to determine if the ILM rule shall be applied to the evaluated object. An ILM rule without filters applies to all objects Default: |
|
A group of logical conditions based on object metadata |
|
System metadata identifier, user metadata name, or tag name |
|
Indicates the type of filtered metadata |
|
Used to compare the “metadataName” with the “value” str Choices:
|
|
Entry against which the metadata values specified by metadataName should be compared |
|
Logical operator connecting filtering criteria when more than one criterion provided |
|
How objects matching this rule are stored on ingest. dual-commit creates interim copies and applies the rule later. strict and balanced immediately create the copies specified in the rule’s day 0 instructions. balanced uses dual-commit if following the rule instructions is not possible. Choices:
|
|
Displayed name of the ILM rule. A representative and unique name for the ILM rule. Immutable once the ILM rule is created |
|
Specifies where and how object data that matches the ILM rule is stored |
|
Creates erasure coded copies of object data; otherwise, must be omitted |
|
Storage pool where object data is stored |
|
Erasure coding profile used. Erasure coded object data only |
|
Creates replicated copies of object data; otherwise, must be omitted |
|
Cloud Storage Pool where object data is saved. Cloud Storage Pools cannot be used in the same placement as a storage pool. Either poolId or cloudStoragePoolId is required. |
|
Number of replicated copies |
|
One or more storage pools where object data is saved, specified as comma-separated values. Either poolId or cloudStoragePoolId is required. |
|
Temporary locations are deprecated and should not be used for new ILM rules. If you select the Strict ingest behavior, the temporary location is ignored. |
|
Specifies where and how object data that matches the ILM rule is stored over time |
|
Day when object storage starts |
|
Number of days object data to be stored at the specified locations. Objects stored forever if null |
|
Indicates the time from which the ILM rule is applied Choices:
|
|
Whether the specified rule should exist. Choices:
|
|
One or more S3 or Swift tenant account IDs to which the ILM rule applies If omitted, applies to all objects |
|
Should https certificates be validated? Choices:
|
Notes
Note
The modules prefixed with
na_sg
are built to manage NetApp StorageGRID.
Examples
- name: Create ILM rule with existing EC pool
na_sg_grid_ilm_rule:
api_url: "https://<storagegrid-endpoint-url>"
auth_token: "storagegrid-auth-token"
name: "1 Copy Per Site"
state: present
reference_time: "ingestTime"
ingest_behavior: "balanced"
filters: []
placements:
- retention:
after: 0
erasureCoded:
- profileId: "1"
poolId: "p10771105546308032398"
- name: Delete existing ILM rule
na_sg_grid_ilm_rule:
api_url: "https://<storagegrid-endpoint-url>"
auth_token: "storagegrid-auth-token"
name: "1 Copy Per Site"
state: absent
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Returns information about the StorageGRID ILM rule. Returned: If state is ‘present’. Sample: |