MariaDB Clusters

This is a simple module that supports listing existing MariaDB Clusters

Example Syntax


    - name: List MariaDB Clusters
        mariadb_cluster_info:
        register: mariadb_clusters_response

    - name: Show MariaDB Clusters
        debug:
            var: mariadb_clusters_response.result

Returned object

{
    "changed": false,
    "mariadb_clusters": [
        {
            "id": "7182ab85-3671-45e5-b2bb-e943c4479e03",
            "metadata": {
                "created_date": "2024-02-27T16:02:55+00:00",
                "created_by": "<USER_EMAIL>",
                "created_by_user_id": "<USER_ID>",
                "last_modified_date": "2024-02-27T16:02:55+00:00",
                "last_modified_by": "<USER_EMAIL>",
                "last_modified_by_user_id": "<USER_ID>",
                "state": "AVAILABLE"
            },
            "properties": {
                "display_name": "MariaDB-cluster",
                "mariadb_version": "10.6",
                "dns_name": "<CLUSTER_DNS>",
                "instances": 1,
                "ram": 4,
                "cores": 4,
                "storage_size": 10,
                "connections": [
                    {
                        "datacenter_id": "3e223566-5a98-495a-9e4c-2c5fc71c057b",
                        "lan_id": "2",
                        "cidr": "<CIDR"
                    }
                ],
                "maintenance_window": {
                    "time": "14:17:42",
                    "day_of_the_week": "Tuesday"
                }
            }
        }
    ],
    "failed": false
}

For more examples please check out the tests here.

Available parameters:

Name
Required
Description

filters dict

False

Filter that can be used to list only objects which have a certain set of propeties. Filters should be a dict with a key containing keys and value pair in the following format: 'properties.name': 'server_name'

api_url str

False

The Ionos API base URL.

certificate_fingerprint str

False

The Ionos API certificate fingerprint.

username str

False

The Ionos username. Overrides the IONOS_USERNAME environment variable.

password str

False

The Ionos password. Overrides the IONOS_PASSWORD environment variable.

token str

False

The Ionos token. Overrides the IONOS_TOKEN environment variable.

Last updated