Mongo Cluster Users

This is a simple module that supports listing existing the users in a Mongo Cluster

Example Syntax


name: List Mongo Clusters
ionoscloudsdk.ionoscloud.mongo_cluster_info: null
register: mongo_clusters_response

Returned object

{
    "result": [
        {
            "type": "cluster",
            "id": "3fdd2940-f9b4-425d-b52b-4199a84188d2",
            "metadata": {
                "created_date": "2023-05-30T13:43:20+00:00",
                "created_by": "<USER_EMAIL>",
                "created_by_user_id": "<USER_ID>",
                "last_modified_date": null,
                "last_modified_by": null,
                "last_modified_by_user_id": null,
                "state": "AVAILABLE",
                "health": "HEALTHY"
            },
            "properties": {
                "display_name": "AnsibleTestMongoDBCluster",
                "mongo_db_version": "5.0",
                "location": "de/fra",
                "instances": 3,
                "connections": [
                    {
                        "datacenter_id": "6b36f398-2089-414b-a57f-85f7b88aee5b",
                        "lan_id": "1",
                        "cidr_list": [
                            "<CIDR1>",
                            "<CIDR2>",
                            "<CIDR3>"
                        ]
                    }
                ],
                "maintenance_window": {
                    "time": "14:13:28",
                    "day_of_the_week": "Thursday"
                },
                "template_id": "6b78ea06-ee0e-4689-998c-fc9c46e781f6",
                "connection_string": "<CONNECTION_STRING>"
            }
        }
    ],
    "failed": false,
    "changed": false
}

For more examples please check out the tests here.

Available parameters:

NameRequiredDescription

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