netapp.storagegrid.na_sg_grid_ec_profile module – Manage EC profiles 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_ec_profile
.
New in netapp.storagegrid 21.14.0
Synopsis
Interact with EC profiles on NetApp StorageGRID.
Parameters
Parameter |
Comments |
---|---|
Rest endpoint for all invocations against the grid |
|
The authorization token for the API request |
|
The EC Profile’s name |
|
The Storage Pool ID of the selected scheme |
|
The selected scheme for the EC profile |
|
Whether the specified policy should be created or deactivated. State “absent” only deactivates the EC profile. Deactivated EC profiles cannot be activated Choices:
|
|
Should https certificates be validated? Choices:
|
Notes
Note
The modules prefixed with
na_sg
are built to manage NetApp StorageGRID.
Examples
- name: Create EC profile
na_sg_grid_ec_profile:
api_url: "https://<storagegrid-endpoint-url>"
auth_token: "storagegrid-auth-token"
name: "profile1"
pool_id: p10771105546308032398
scheme_id: "1"
- name: Deactivate existing EC profile
na_sg_grid_ec_profile:
api_url: "https://<storagegrid-endpoint-url>"
auth_token: "storagegrid-auth-token"
name: "profile1"
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 EC profile. Returned: If state is ‘present’. Sample: |