> 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/ruby/ruby-sdks.md).

# Ruby SDKs

Use the IONOS Cloud Ruby SDKs to build Ruby apps on IONOS Cloud. Each SDK is published as a RubyGem.

### Available Ruby 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 Ruby SDK</strong></mark></td><td>Manage compute, networking, storage, and all core IONOS Cloud resources</td><td><a href="/spaces/-MUON6CaF6Z_AbPKaHEF-3956399747">/spaces/-MUON6CaF6Z_AbPKaHEF-3956399747</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 Ruby SDK</strong></mark></td><td>Provision and manage managed MongoDB clusters</td><td><a href="/spaces/ezEstSumfqUQgj0e1pRT">/spaces/ezEstSumfqUQgj0e1pRT</a></td></tr><tr><td><mark style="color:blue;"><strong>DBaaS Postgres Ruby SDK</strong></mark></td><td>Provision and manage managed PostgreSQL clusters</td><td><a href="/spaces/Gsqc61FzKZqg8eYVUSJX">/spaces/Gsqc61FzKZqg8eYVUSJX</a></td></tr></tbody></table>

#### Containers and Compute

<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 Ruby SDK</strong></mark></td><td>Manage container registries and image repositories</td><td><a href="/spaces/Gd5qx4t4MSCvowww3Han">/spaces/Gd5qx4t4MSCvowww3Han</a></td></tr><tr><td><mark style="color:blue;"><strong>VM Autoscaling Ruby SDK</strong></mark></td><td>Configure and manage autoscaling groups for virtual machines</td><td><a href="/spaces/M6pVFHUfKpLYigU1sFxu">/spaces/M6pVFHUfKpLYigU1sFxu</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 Ruby SDK</strong></mark></td><td>Manage TLS/SSL certificates for IONOS Cloud services</td><td><a href="/spaces/0qn3ANH4qjRMlTjC6uWZ">/spaces/0qn3ANH4qjRMlTjC6uWZ</a></td></tr></tbody></table>

### Quick Start

Add the Cloud API Ruby SDK to your Gemfile:

```ruby
gem 'ionoscloud'
```

Then run:

```bash
bundle install
```

Or install directly:

```bash
gem install ionoscloud
```

Configure and initialise a client:

```ruby
require 'ionoscloud'

Ionoscloud.configure do |config|
  config.username = ENV['IONOS_USERNAME']
  config.password = ENV['IONOS_PASSWORD']
end

api_instance = Ionoscloud::DataCentersApi.new
```

For token-based authentication:

```ruby
Ionoscloud.configure do |config|
  config.token = ENV['IONOS_TOKEN']
end
```

### Authentication

All Ruby 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

# Preferred for CI/CD and automation:
export IONOS_TOKEN=your_api_token
```

### GitHub Repositories

All Ruby SDKs are open source under the [ionos-cloud](https://github.com/ionos-cloud) organisation on GitHub. They are published to RubyGems.org and follow the naming convention `ionoscloud-{service}` for product SDKs.


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
