Skip to content

ionos-cloud/sdk-java-dbaas-postgres

Repository files navigation

SDK-Java-DBaaS-Postgres

[ CD ] DBaaS Postgres / Java

Java API Client For IONOS Cloud Dbaas Postgres

An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based "Data Center Designer" (DCD) tool or via an easy to use API.

The API allows you to create additional database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.

Installation

Maven users

<dependency>
  <groupId>com.ionoscloud.dbaaspostgres</groupId>
  <artifactId>ionos-cloud-sdk-dbaas-postgres</artifactId>
  <version>1.0.2</version>
  <scope>compile</scope>
</dependency>

Gradle users

Add this dependency to your project's build file:

compile "com.ionoscloud.dbaaspostgres:ionos-cloud-sdk-dbaas-postgres:1.0.2"

Usage

import com.ionoscloud.dbaaspostgres.ApiClient;
import com.ionoscloud.dbaaspostgres.ApiException;
import com.ionoscloud.dbaaspostgres.Configuration;
import com.ionoscloud.dbaaspostgres.auth.*;
import com.ionoscloud.dbaaspostgres.model.*;
import com.ionoscloud.dbaaspostgres.api.MetadataApi;

import java.util.List;

public class test {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure HTTP basic authorization: basicAuth
        var basicAuthentication = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuthentication.setUsername("username_here");
        basicAuthentication.setPassword("password_here");

        MetadataApi apiInstance = new MetadataApi(defaultClient);
        try {
            List<APIVersion> result = apiInstance.infosVersionsGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MetadataApi#infosVersionsGet");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

FAQ

  • How can I open a bug/feature request? Bugs & feature requests can be open on the repository issues: https://github.com/ionos-cloud/sdk-java-dbaas-postgres/issues/new/choose

  • Can I contribute to the Java DBaaS Postgres SDK? Our SDKs are automatically generated using OpenAPI Generator and don’t support manual changes. If you need changes please open an issue and we’ll try to take care of it.

About

IONOS Cloud SDK Java for Database as a Service Postgres

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors