netapp.storagegrid.na_sg_grid_info module – NetApp StorageGRID Grid information gatherer.
Note
This module is part of the netapp.storagegrid collection (version 21.13.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_info
.
New in netapp.storagegrid 20.11.0
Synopsis
This module allows you to gather various information about StorageGRID Grid configuration.
Parameters
Parameter |
Comments |
---|---|
The url to the StorageGRID Admin Node REST API. |
|
The authorization token for the API request |
|
When supplied, this argument will restrict the information collected to a given subset. Either the info name or the REST API can be given. Possible values for this argument include
Can specify a list of values to include a larger subset. Default: |
|
Allows for any rest option to be passed in. |
|
Should https certificates be validated? Choices:
|
Notes
Note
The modules prefixed with
na_sg
are built to manage NetApp StorageGRID.
Examples
- name: Gather StorageGRID Grid info
netapp.storagegrid.na_sg_grid_info:
api_url: "https://1.2.3.4/"
auth_token: "storagegrid-auth-token"
validate_certs: false
register: sg_grid_info
- name: Gather StorageGRID Grid info for grid/accounts and grid/config subsets
netapp.storagegrid.na_sg_grid_info:
api_url: "https://1.2.3.4/"
auth_token: "storagegrid-auth-token"
validate_certs: false
gather_subset:
- grid_accounts_info
- grid/config
register: sg_grid_info
- name: Gather StorageGRID Grid info for all subsets
netapp.storagegrid.na_sg_grid_info:
api_url: "https://1.2.3.4/"
auth_token: "storagegrid-auth-token"
validate_certs: false
gather_subset:
- all
register: sg_grid_info
- name: Gather StorageGRID Grid info for grid/accounts and grid/users subsets, limit to 5 results for each subset
netapp.storagegrid.na_sg_grid_info:
api_url: "https://1.2.3.4/"
auth_token: "storagegrid-auth-token"
validate_certs: false
gather_subset:
- grid/accounts
- grid/users
parameters:
limit: 5
register: sg_grid_info
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Returns various information about the StorageGRID Grid configuration. Returned: always Sample: |