> For the complete documentation index, see [llms.txt](https://docs.ionos.com/cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ionos.com/cloud/java/java-sdks.md).

# Java SDKs

Use the IONOS CLOUD Java SDKs to build Java apps on IONOS CLOUD. Each SDK is available on Maven Central.

### Available Java SDKs

#### Core Infrastructure

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><mark style="color:blue;"><strong>Cloud API Java SDK</strong></mark></td><td>Manage compute, networking, and storage</td><td><a href="https://docs.ionos.com/cloud/java/java-sdks/">Cloud API Java SDKs</a></td></tr></tbody></table>

#### Database

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><mark style="color:blue;"><strong>DBaaS Mongo Java SDK</strong></mark></td><td>Provision and manage MongoDB clusters</td><td><a href="https://docs.ionos.com/cloud/java/dbaas-mongodb/">DBaaS MongoDB Java SDK</a></td></tr><tr><td><mark style="color:blue;"><strong>DBaaS Postgres Java SDK</strong></mark></td><td>Provision and manage PostgreSQL clusters</td><td><a href="https://docs.ionos.com/cloud/java/dbaas-postgres/">DBaaS Postgres Java SDK</a></td></tr><tr><td><mark style="color:blue;"><strong>MariaDB SDK Java</strong></mark></td><td>Provision and manage MariaDB clusters</td><td><a href="https://docs.ionos.com/cloud/java/dbaas-mariadb/">DBaaS MariaDB Java SDK</a></td></tr></tbody></table>

#### Containers

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><mark style="color:blue;"><strong>Container Registry Java SDK</strong></mark></td><td>Manage container registries and image repositories</td><td><a href="https://docs.ionos.com/cloud/java/container-registry/">Container Registry Java SDK</a></td></tr></tbody></table>

#### Security

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><mark style="color:blue;"><strong>Certificate Manager Java SDK</strong></mark></td><td>Manage TLS/SSL certificates</td><td><a href="https://docs.ionos.com/cloud/java/certificate-manager/">Certificate Manager Java SDK</a></td></tr></tbody></table>

### Quick Start

Add the SDK to your Maven project:

```xml
<dependency>
    <groupId>com.ionoscloud</groupId>
    <artifactId>ionos-cloud-sdk</artifactId>
    <version>LATEST</version>
</dependency>
```

Or with Gradle:

```groovy
implementation 'com.ionoscloud:ionos-cloud-sdk:LATEST'
```

Set up a client:

```java
import com.ionoscloud.ApiClient;
import com.ionoscloud.Configuration;

ApiClient client = Configuration.getDefaultApiClient();
client.setUsername(System.getenv("IONOS_USERNAME"));
client.setPassword(System.getenv("IONOS_PASSWORD"));
```

Use a token instead:

```java
HttpBearerAuth tokenAuth =
    (HttpBearerAuth) client.getAuthentication("Token Authentication");
tokenAuth.setBearerToken(System.getenv("IONOS_TOKEN"));
```

### Authentication

All Java SDKs use the same credentials. Store them in environment variables and keep them out of your source code.

```bash
export IONOS_USERNAME=your@email.com
export IONOS_PASSWORD=yourpassword

# Use a token for CI/CD:
export IONOS_TOKEN=your_api_token
```

### GitHub Repositories

All Java SDKs are open source on GitHub under [ionos-cloud](https://github.com/ionos-cloud). Product SDKs follow the pattern `ionos-cloud-sdk-{service}`.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.ionos.com/cloud/java/java-sdks.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
