Postgres Cluster Backups

This is a simple module that supports listing existing Postgres Cluster backups

Example Syntax


name: List Postgres Cluster Backups
ionoscloudsdk.ionoscloud.postgres_backup_info: null
register: postgres_backup_response

Returned object

{
    "postgres_backups": [
        {
            "type": "backup",
            "id": "06b53b38-398a-4fc6-8eed-a8f3d4847a76-4oymiqu-12",
            "metadata": {
                "created_date": "2023-08-09T14:55:33+00:00",
                "state": "AVAILABLE"
            },
            "properties": {
                "id": null,
                "cluster_id": "06b53b38-398a-4fc6-8eed-a8f3d4847a76",
                "version": "12",
                "is_active": true,
                "earliest_recovery_target_time": "2023-08-09T15:07:48+00:00"
            }
        }
    ],
    "failed": false,
    "changed": false
}

For more examples please check out the tests here.

Available parameters:

Name
Required
Description

postgres_cluster str

False

The ID or name of an existing Postgres 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