Skip to main content

Create

Creates a new database instance asynchronously for a tenant.

Usage:

mgc dbaas instances create [flags]

Examples:

mgc dbaas instances create --volume.size=30

Flags:

    --backup-retention-days integer   Backup Retention Days: The number of days that a particular backup is kept until its deletion. (default 7)
--backup-start-at time Backup Start At: Start time (UTC timezone) which is allowed to start the automated backup process. (default "04:00:00")
--cli.list-links enum[=table] List all available links for this command (one of "json", "table" or "yaml")
--datastore-id uuid Datastore Id (Deprecated): **Deprecated**: This property is being deprecated in favor of 'engine_id'. Please update your requests to use 'engine_id' for improved functionality and future compatibility.

--engine-id uuid Engine Id
--flavor-id uuid Flavor Id (Deprecated): **Deprecated**: This property is being deprecated in favor of 'instance_type_id'. Please update your requests to use 'instance_type_id' for improved functionality and future compatibility.

-h, --help help for create
--instance-type-id uuid Instance Type Id
--name string Name (max character count: 100) (required)
--parameters array(object) Use --parameters=help for more details (default [])
--password string Password (max character count: 50) (required)
--user string User (max character count: 25) (required)
-v, --version version for create
--volume object Instance Volume Request (properties: size and type)
Use --volume=help for more details (required)
--volume.size integer Instance Volume Request: The size of the volume (in GiB). (range: 10 - 50000)
This is the same as '--volume=size:integer'.
--volume.type enum Instance Volume Request: The type of the volume. (one of "CLOUD_HDD", "CLOUD_NVME" or "CLOUD_NVME_15K")
This is the same as '--volume=type:enum'. (default "CLOUD_NVME_15K")

Global Flags:

    --api-key string           Use your API key to authenticate with the API
-U, --cli.retry-until string Retry the action with the same parameters until the given condition is met. The flag parameters
use the format: 'retries,interval,condition', where 'retries' is a positive integer, 'interval' is
a duration (ex: 2s) and 'condition' is a 'engine=value' pair such as "jsonpath=expression"
-t, --cli.timeout duration If > 0, it's the timeout for the action execution. It's specified as numbers and unit suffix.
Valid unit suffixes: ns, us, ms, s, m and h. Examples: 300ms, 1m30s
--debug Display detailed log information at the debug level
--env enum Environment to use (one of "pre-prod" or "prod") (default "prod")
--no-confirm Bypasses confirmation step for commands that ask a confirmation from the user
-o, --output string Change the output format. Use '--output=help' to know more details.
-r, --raw Output raw data, without any formatting or coloring
--region enum Region to reach the service (one of "br-mgl1", "br-ne1" or "br-se1") (default "br-se1")
--server-url uri Manually specify the server to use