-
Notifications
You must be signed in to change notification settings - Fork 19
status_page_info
Note
This module is part of the lucasheld.uptime_kuma collection (version 1.2.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 lucasheld.uptime_kuma
.
To use it in a playbook, specify: lucasheld.uptime_kuma.status_page_info
.
- Retrieves facts about status pages.
The below requirements are needed on the host that executes this module.
- uptime-kuma-api
Parameter |
Comments |
---|---|
Headers that are passed to the socketio connection. |
|
The Uptime Kuma password. Only required if no api_token specified and authentication is enabled. |
|
true to verify SSL certificates, or false to skip SSL certificate verification, allowing connections to servers with self signed certificates. Choices:
|
|
How many seconds the client should wait for the connection, an expected event or a server response. Default: 10 |
|
The Uptime Kuma login token. Only required if no api_username and api_password specified and authentication is enabled. |
|
The Uptime Kuma URL. Default: "http://127.0.0.1:3001" |
|
The Uptime Kuma username. Only required if no api_token specified and authentication is enabled. |
|
How many seconds the client should wait for the next event of the same type. There is no way to determine when the last message of a certain type has arrived. Therefore, a timeout is required. If no further message has arrived within this time, it is assumed that it was the last message. Default: 0.2 |
|
The slug of the status page to inspect. |
- name: get all status_pages
lucasheld.uptime_kuma.status_page_info:
api_url: http://127.0.0.1:3001
api_username: admin
api_password: secret123
register: result
Key |
Description |
---|---|
The status pages as list Returned: always |
|
The custom CSS of the status page. Returned: always Sample: "None" |
|
The description of the status page. Returned: always Sample: "description 1" |
|
The domain name list of the status page. Returned: always Sample: [] |
|
The footer text of the status page. Returned: always Sample: "None" |
|
The Google Analytics ID of the status page. Returned: always Sample: "None" |
|
The icon of the status page. Returned: always Sample: "/icon.svg" |
|
The id of the status page. Returned: always Sample: 4 |
|
The incident of the status page. Returned: always Sample: {"content": "sample content", "createdDate": "2022-08-26 12:07:00", "id": 2, "lastUpdatedDate": "None", "pin": 1, "style": "danger", "title": "sample title"} |
|
The maintenance list of the status page. Returned: always Sample: [] |
|
The public group list of the status page. Returned: always Sample: [{"id": 5, "monitorList": [{"id": 18, "name": "sample monitor", "type": "http"}], "name": "Services", "weight": 1}] |
|
True if the status page is published. Returned: always Sample: true |
|
Show Certificate Expiry. Returned: always Sample: false |
|
True if the show powered by is enabled. Returned: always Sample: false |
|
True if the show tags is enabled. Returned: always Sample: false |
|
The slug of the status page. Returned: always Sample: "slug1" |
|
The theme of the status page. Returned: always Sample: "auto" |
|
The title of the status page. Returned: always Sample: "status page 1" |
- Lucas Held (@lucasheld)