Certificates

This is a simple module that supports listing uploaded Certificates

Example Syntax


name: List Certificates
ionoscloudsdk.ionoscloud.certificate_info: null
register: certificates_response

Returned object

{
    "result": [
        {
            "id": "58da84bd-5dea-4838-9c43-391b7c75124a",
            "type": "certificate",
            "href": "https://api.ionos.com/certificatemanager/certificates/58da84bd-5dea-4838-9c43-391b7c75124a",
            "metadata": {
                "etag": null,
                "created_date": "2023-05-29T13:48:11Z",
                "created_by": "<USER_EMAIL>",
                "created_by_user_id": "<USER_ID>",
                "last_modified_date": "2023-05-29T13:48:11Z",
                "last_modified_by": "<USER_EMAIL>",
                "last_modified_by_user_id": "<USER_ID>",
                "state": "AVAILABLE"
            },
            "properties": {
                "name": "test_certificate",
                "certificate": "<CERTIFICATE>",
                "certificate_chain": null
            }
        }
    ],
    "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