Introduction
Overview
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.
Getting Started
Instalation
1. Build a gem
To build the Ruby code into a gem:
Then either install the gem locally:
(for development, run gem install --dev ./ionoscloud-dbaas-postgres-<gem-version>.gem
to install the development dependencies)
or publish the gem to a gem hosting service, e.g. RubyGems.
Finally add this to the Gemfile:
2. Install from Git
If the Ruby gem is hosted at a git repository: https://github.com/ionos-cloud/sdk-ruby-dbaas-postgres, then add the following in the Gemfile:
3. Include the Ruby code directly
Include the Ruby code directly using -I
as follows:
4. Install from RubyGems
Just add this to the Gemfile:
After installing please run the following code:
Authentication
The username and password or the authentication token can be manually specified when initializing the SDK client:
Environment variables can also be used for initialization. For example:
Warning: Make sure to follow the Information Security Best Practices when using credentials within your code or storing them in a file.
Changing the base URL
Base URL for the HTTP operation can be changed in the following way:
Feature Reference
The IONOS Cloud SDK for Ruby aims to offer access to all resources in the IONOS Cloud API and also offers some additional features that make the integration easier:
authentication for API calls
handling of asynchronous requests
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-ruby-dbaas-postgres/issues/new/choose
Can I contribute to the Ruby SDK?
Pure 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.
Last updated