community.general.alerta_customer module – Manage customers in Alerta
Note
This module is part of the community.general collection (version 9.5.1).
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 community.general
.
To use it in a playbook, specify: community.general.alerta_customer
.
New in community.general 4.8.0
Synopsis
Create or delete customers in Alerta with the REST API.
Parameters
Parameter |
Comments |
---|---|
The Alerta API endpoint. |
|
The access token for the API. |
|
The password for the API using basic auth. |
|
The username for the API using basic auth. |
|
Name of the customer. |
|
The matching logged in user for the customer. |
|
Attributes
Attribute |
Support |
Description |
---|---|---|
Support: full |
Can run in |
|
Support: none |
Will return details on what has changed (or possibly needs changing in |
See Also
See also
- API documentation
Documentation for Alerta API
Examples
- name: Create customer
community.general.alerta_customer:
alerta_url: https://alerta.example.com
api_username: [email protected]
api_password: password
customer: Developer
match: [email protected]
- name: Delete customer
community.general.alerta_customer:
alerta_url: https://alerta.example.com
api_username: [email protected]
api_password: password
customer: Developer
match: [email protected]
state: absent
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Success or failure message. Returned: always Sample: |
|
The response from the API. Returned: always |