Retrieves a list of all backups of the given PostgreSQL cluster.
Example
from__future__import print_functionimport timeimport ionoscloud_dbaas_postgresfrom ionoscloud_dbaas_postgres.rest import ApiException# Defining the host is optional and defaults to https://api.ionos.com/databases/postgresqlconfiguration = ionoscloud_dbaas_postgres.Configuration( host ='https://api.ionos.com/databases/postgresql',)# Example of configuring HTTP Basic Authorizationconfiguration.username ='YOUR_USERNAME'configuration.password ='YOUR_PASSWORD'with ionoscloud_dbaas_postgres.ApiClient(configuration)as api_client:# Create an instance of the API class api_instance = ionoscloud_dbaas_postgres.BackupsApi(api_client) cluster_id ='498ae72f-411f-11eb-9d07-046c59cc737e'# str | The unique ID of the cluster.try:# List backups of cluster api_response = api_instance.cluster_backups_get(cluster_id)print(api_response)except ApiException as e:print('Exception when calling BackupsApi.cluster_backups_get: %s\n'% e)
Retrieve a PostgreSQL cluster backup by using its ID. This value can be found when you GET a list of PostgreSQL cluster backups.
Example
from__future__import print_functionimport timeimport ionoscloud_dbaas_postgresfrom ionoscloud_dbaas_postgres.rest import ApiException# Defining the host is optional and defaults to https://api.ionos.com/databases/postgresqlconfiguration = ionoscloud_dbaas_postgres.Configuration( host ='https://api.ionos.com/databases/postgresql',)# Example of configuring HTTP Basic Authorizationconfiguration.username ='YOUR_USERNAME'configuration.password ='YOUR_PASSWORD'with ionoscloud_dbaas_postgres.ApiClient(configuration)as api_client:# Create an instance of the API class api_instance = ionoscloud_dbaas_postgres.BackupsApi(api_client) backup_id ='498ae72f-411f-11eb-9d07-046c59cc737e-4oymiqu-12'# str | The unique ID of the backup.try:# Fetch a cluster backup api_response = api_instance.clusters_backups_find_by_id(backup_id)print(api_response)except ApiException as e:print('Exception when calling BackupsApi.clusters_backups_find_by_id: %s\n'% e)
Retrieves a list of all PostgreSQL cluster backups.
Example
from__future__import print_functionimport timeimport ionoscloud_dbaas_postgresfrom ionoscloud_dbaas_postgres.rest import ApiException# Defining the host is optional and defaults to https://api.ionos.com/databases/postgresqlconfiguration = ionoscloud_dbaas_postgres.Configuration( host ='https://api.ionos.com/databases/postgresql',)# Example of configuring HTTP Basic Authorizationconfiguration.username ='YOUR_USERNAME'configuration.password ='YOUR_PASSWORD'with ionoscloud_dbaas_postgres.ApiClient(configuration)as api_client:# Create an instance of the API class api_instance = ionoscloud_dbaas_postgres.BackupsApi(api_client)try:# List cluster backups api_response = api_instance.clusters_backups_get()print(api_response)except ApiException as e:print('Exception when calling BackupsApi.clusters_backups_get: %s\n'% e)