Retrieves the current version of the responding API.
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.MetadataApi(api_client)try:# Get the current API version api_response = api_instance.infos_version_get()print(api_response)except ApiException as e:print('Exception when calling MetadataApi.infos_version_get: %s\n'% e)
Retrieves all available versions of the responding API.
Example
from __future__ import print_function
import time
import ionoscloud_dbaas_postgres
from ionoscloud_dbaas_postgres.rest import ApiException
# Defining the host is optional and defaults to https://api.ionos.com/databases/postgresql
configuration = ionoscloud_dbaas_postgres.Configuration(
host = 'https://api.ionos.com/databases/postgresql',
)
# Example of configuring HTTP Basic Authorization
configuration.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.MetadataApi(api_client)
try:
# Fetch all API versions
api_response = api_instance.infos_versions_get()
print(api_response)
except ApiException as e:
print('Exception when calling MetadataApi.infos_versions_get: %s\n' % e)