ovhcloud_cloud_managed-database_create.md

March 31, 2026 ยท View on GitHub

ovhcloud cloud managed-database create

Create a new managed database service

Synopsis

Use this command to create a managed database service in the given public cloud project. There are two ways to define the creation parameters:

  1. Using only CLI flags:

    ovhcloud cloud managed-database create --engine mysql --version 8 --plan essential --nodes-pattern.flavor db1-4 --nodes-pattern.region DE

  2. Using your default text editor:

    ovhcloud cloud managed-database create --engine mysql --editor You will be able to choose from several examples of parameters. Once an example has been selected, the CLI will open your default text editor to update the parameters. When saving the file, the creation will start.

Note that it is also possible to override values in the presented examples using command line flags like the following:

ovhcloud cloud managed-database create --engine mysql --editor --version 8
ovhcloud cloud managed-database create [flags]

Options

      --backups-regions strings          Regions on which the backups are stored
      --backups-time string              Time on which backups start every day
      --description string               Database description
      --disk-size int                    Disk size (GB)
      --editor                           Use a text editor to define parameters
      --engine string                    Database engine (you can get the list of available engines using 'ovhcloud cloud reference managed-database list-engines')
      --fork-from.backup-id string       Backup ID (not compatible with fork-from.point-in-time)
      --fork-from.point-in-time string   Point in time to restore from (not compatible with fork-from.backup-id)
      --fork-from.service-id string      Service ID that owns the backups
  -h, --help                             help for create
      --ip-restrictions strings          IP blocks authorized to access the cluster (CIDR format)
      --maintenance-time string          Time on which maintenances can start every day
      --network-id string                Private network ID in which the cluster is deployed
      --nodes-list strings               List of nodes (format: flavor1:region1,flavor2:region2...)
      --nodes-pattern.flavor string      Flavor of all nodes
      --nodes-pattern.number int         Number of nodes
      --nodes-pattern.region string      Region of all nodes
      --plan string                      Database plan (you can get the list of available plans using 'ovhcloud cloud reference managed-database list-plans')
      --subnet-id string                 Private subnet ID in which the cluster is deployed
      --version string                   Database version (you can get the list of available versions using 'ovhcloud cloud reference managed-database list-engines')

Options inherited from parent commands

      --cloud-project string   Cloud project ID
  -d, --debug                  Activate debug mode (will log all HTTP requests details)
  -e, --ignore-errors          Ignore errors in API calls when it is not fatal to the execution
  -o, --output string          Output format: json, yaml, interactive, or a custom format expression (using https://github.com/PaesslerAG/gval syntax)
                               Examples:
                                 --output json
                                 --output yaml
                                 --output interactive
                                 --output 'id' (to extract a single field)
                                 --output 'nested.field.subfield' (to extract a nested field)
                                 --output '[id, "name"]' (to extract multiple fields as an array)
                                 --output '{"newKey": oldKey, "otherKey": nested.field}' (to extract and rename fields in an object)
                                 --output 'name+","+type' (to extract and concatenate fields in a string)
                                 --output '(nbFieldA + nbFieldB) * 10' (to compute values from numeric fields)
      --profile string         Use a specific profile from the configuration file

SEE ALSO