Mongo Clusters

This is a simple module that supports listing existing Mongo Clusters

Example Syntax


name: List Mongo Cluster Users
ionoscloudsdk.ionoscloud.mongo_cluster_user_info:
  mongo_cluster: ''
register: mongo_cluster_users_response

Returned object

{
    "result": [
        {
            "type": "user",
            "metadata": {
                "created_date": "2023-05-30T14:20:09+00:00",
                "created_by": "<USER_EMAIL>",
                "created_by_user_id": "<USER_ID>"
            },
            "properties": {
                "username": "testuser",
                "password": null,
                "roles": [
                    {
                        "role": "read",
                        "database": "test"
                    }
                ]
            }
        }
    ],
    "failed": false,
    "changed": false
}

For more examples please check out the tests here.

Available parameters:

NameRequiredDescription

mongo_cluster str

True

The UUID or name of an existing Mongo Cluster.

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