Skip to main content

IONOS Cloud - DBaas - PostgreSQL

Project description

ionoscloud-dbaas-postgres

DBaaS PostgreSQL v2 is the new version of the PostgreSQL API at IONOS cloud.

This Python package is automatically generated by the OpenAPI Generator project:

Requirements.

Python 3.9+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/ionos-cloud/sdk-python.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/ionos-cloud/sdk-python.git)

Then import the package:

import ionoscloud_dbaas_postgres

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import ionoscloud_dbaas_postgres

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import ionoscloud_dbaas_postgres
from ionoscloud_dbaas_postgres.rest import ApiException
from pprint import pprint
import os

# Defining the host is optional and defaults to https://postgresql.de-txl.ionos.com
# See configuration.py for a list of all supported configuration parameters.
configuration = ionoscloud_dbaas_postgres.Configuration(
    host = "https://postgresql.de-txl.ionos.com"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization (JWT): tokenAuth
configuration = ionoscloud_dbaas_postgres.Configuration(
    token = os.environ["IONOS_TOKEN"]
)


# Enter a context with an instance of the API client
with ionoscloud_dbaas_postgres.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = ionoscloud_dbaas_postgres.BackupLocationsApi(api_client)
    backup_location_id = '7fa1dd11-59dd-53a5-ab67-50f649c8e3eb' # str | The ID (UUID) of the BackupLocation.

    try:
        # Retrieve BackupLocation
        api_response = api_instance.backuplocations_find_by_id(backup_location_id)
        print("The response of BackupLocationsApi->backuplocations_find_by_id:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BackupLocationsApi->backuplocations_find_by_id: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://postgresql.de-txl.ionos.com

Class Method HTTP request Description
BackupLocationsApi backuplocations_find_by_id GET /backup-locations/{backupLocationId} Retrieve BackupLocation
BackupLocationsApi backuplocations_get GET /backup-locations Retrieve all BackupLocations
BackupsApi backups_find_by_id GET /backups/{backupId} Retrieve Backup
BackupsApi backups_get GET /backups Retrieve all Backups
ClustersApi clusters_delete DELETE /clusters/{clusterId} Delete Cluster
ClustersApi clusters_find_by_id GET /clusters/{clusterId} Retrieve Cluster
ClustersApi clusters_get GET /clusters Retrieve all Clusters
ClustersApi clusters_post POST /clusters Create Cluster
ClustersApi clusters_put PUT /clusters/{clusterId} Ensure Cluster
VersionsApi versions_find_by_id GET /versions/{versionId} Retrieve PostgresVersion
VersionsApi versions_get GET /versions Retrieve all Versions

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

tokenAuth

  • Type: Bearer authentication (JWT)

Author

support@cloud.ionos.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ionoscloud_dbaas_postgres-3.0.1.tar.gz (42.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ionoscloud_dbaas_postgres-3.0.1-py3-none-any.whl (92.8 kB view details)

Uploaded Python 3

File details

Details for the file ionoscloud_dbaas_postgres-3.0.1.tar.gz.

File metadata

File hashes

Hashes for ionoscloud_dbaas_postgres-3.0.1.tar.gz
Algorithm Hash digest
SHA256 24703e91eb1d71ead7d7a0cde345be936b48eca0298f4a44fcf27aa64d09057f
MD5 f398dfb4cc80c0111e8d4da7cc4b2216
BLAKE2b-256 10b536682fa856c41d1541d691031a1e497a404e8ecf9be42bc6bca1fe398568

See more details on using hashes here.

File details

Details for the file ionoscloud_dbaas_postgres-3.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ionoscloud_dbaas_postgres-3.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5332253abf0fcd4371aad5b7cf66fec81880265bb699435283a951236d32e00b
MD5 c4d69beef3e4285d4306bb37833c4005
BLAKE2b-256 ce43aded3821db67dacff27f1e89facb43325d02b1e66a8ed11f6417ee713ed5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page