netapp.storagegrid.na_sg_grid_alert_receiver module – NetApp StorageGRID manage alert receiver.
Note
This module is part of the netapp.storagegrid collection (version 21.16.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_alert_receiver.
New in netapp.storagegrid 21.15.0
Synopsis
- Create, update, or delete alert receivers on NetApp StorageGRID.
Parameters
Parameter | Comments |
|---|---|
api_url string / required | The url to the StorageGRID Admin Node REST API. |
auth_token string / required | The authorization token for the API request |
ca_cert string | CA certificate used to verify the identity of the SMTP server. |
client_cert string | Client certificate for the SMTP server. |
client_key string | The PEM-encoded private key for the client certificate. |
enable boolean | Whether alert notifications are sent to this receiver. Choices:
|
from_email string | Sender email address. |
minimum_severity string | Minimum severity level for triggering an alert. Choices:
|
password string | Use This parameter has been deprecated. |
smtp_host string | The IP address or hostname of the SMTP server. |
smtp_password string added in netapp.storagegrid 21.16.0 | Password for the SMTP server. |
smtp_port integer | The port to use to communicate with the SMTP server. |
smtp_username string added in netapp.storagegrid 21.16.0 | Username for the SMTP server. |
state string | Whether the alert receiver should be present or absent. Choices:
|
to_emails list / elements=string | List of recipient email addresses. |
type string / required | The type of notification receiver. Choices:
|
username string | Use This parameter has been deprecated. |
validate_certs boolean | Should https certificates be validated? Choices:
|
Notes
Note
- The modules prefixed with
na_sgare built to manage NetApp StorageGRID.
Examples
- name: Create alert receiver
netapp.storagegrid.na_sg_grid_alert_receiver:
api_url: "https://<storagegrid-endpoint-url>"
auth_token: "storagegrid-auth-token"
validate_certs: false
state: present
type: email
enable: true
smtp_host: "smtp.example.com"
smtp_port: 25
smtp_username: "smtp-user"
smtp_password: "smtp-password"
from_email: "user@example.com"
to_emails:
- "user@example.com"
minimum_severity: "minor"
ca_cert: "-----BEGIN CERTIFICATE-----*******-----END CERTIFICATE-----"
client_cert: "-----BEGIN CERTIFICATE-----*******-----END CERTIFICATE-----"
client_key: "-----BEGIN PRIVATE KEY-----*******-----END PRIVATE KEY-----"
- name: Delete alert receiver
netapp.storagegrid.na_sg_alert_receiver:
api_url: "https://<storagegrid-endpoint-url>"
auth_token: "storagegrid-auth-token"
validate_certs: false
state: present
type: email
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key | Description |
|---|---|
resp dictionary | Returns the response from the StorageGRID API for alert receiver. Returned: success Sample: |
Collection links
© 2012–2018 Michael DeHaan
© 2018–2025 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/projects/ansible/latest/collections/netapp/storagegrid/na_sg_grid_alert_receiver_module.html