Infomaniak Public Cloud icon

Infomaniak Public Cloud

Interact with Infomaniak Public Cloud API

Actions70

Database Service → Create Database Service

AI-generated

Summary

Creates a new Infomaniak Public Cloud Database Service.

Inputs

  • authentication (required) — Authentication method to use for the Infomaniak API (OAuth2 or API Key).
  • path_public_cloud_id (required) — Identifier of the Public Cloud where the service will be created.
  • path_public_cloud_project_id (required) — Identifier of the Public Cloud project associated with the service.
  • body_name (required) — Name of the new Database Service.
  • body_pack_id (required) — Identifier of the pack that defines the service configuration.
  • body_region (required) — Region code for the Public Cloud where the service will be deployed.
  • body_type (required) — Type of database service (e.g., mysql).
  • body_version (required) — Database version to use (e.g., 8.0.42).
  • bodyParameters — Additional free‑form parameters to include in the request body.
  • returnFullResponse — If true, the full API response is returned; otherwise only a success indicator is emitted.

Output shape

A JSON object representing the created Database Service, containing its identifier, name, and other details.

The response includes the full service definition when returnFullResponse is true; otherwise a minimal success payload is returned.

Examples

Example 1: Create a MySQL database in the dc4-a region.

Authentication: OAuth2, Public Cloud Id: 5, Project Id: 12, Name: test-db, Pack Id: 1, Region: dc4-a, Type: mysql, Version: 8.0.42

Example 2: Create a PostgreSQL service with a backup schedule.

Authentication: API Key, Public Cloud Id: 3, Project Id: 7, Name: backup-db, Pack Id: 1, Region: dc4-a, Type: mysql, Version: 8.0.42, bodyParameters: {"body_backup_schedule": {"frequency": "daily", "time": "02:00"}}

Links

Discussion