gdcloud database clusters create

NAME

gdcloud database clusters create - Create a DBCluster custom resource.

SYNOPSIS

gdcloud database clusters create CLUSTER_NAME [flags]

EXAMPLES

To create a DBCluster custom resource with database version PostgreSQL 14 with name "postgresql-db", run:

  gdcloud database clusters create postgresql-db \
    --database-version=POSTGRESQL_14

To create a DBCluster custom resource with database version Oracle 19 with name "oracle-db" in the project "db", run:

  gdcloud database clusters create oracle-db --project=db \
    --database-version=ORACLE_19

To create a DBCluster custom resource with database version AlloyDB Omni 15 with name "alloydbomni-db" in the project "db", run:

  gdcloud database clusters create alloydbomni-db --project=db \
    --database-version=ALLOYDBOMNI_15

REQUIRED FLAGS

      --admin-password string     initial database password for admin user
      --database-version string   database version of the DBCluster to be created

OPTIONAL FLAGS

      --availability-type string       level of availability. (zonal or zonal_ha) (default "zonal")
      --backup-retention-days int      number of days to keep backups since creation (1 ~ 90 days) (default 30)
      --cpu int                        number of cores to be used for the database
      --database-flags string          initial database flags
      --memory string                  amount of memory for the database
      --no-backup                      disables daily backup
      --retain-admin-password-secret   retain the secret of the admin password (default true)
      --storage-size string            amount of storage allocated to storing data
      --tier string                    machine type for a DBCluster with preset resources configuration (high-performance, standard or minimal) (default "standard")
      --zone string                    Zone to use for this invocation. To preset the zone flag for all commands that require it, run: "gdcloud config set core/zone ZONE". The zone flag is available only in multi-zone environments.

GDCLOUD WIDE FLAGS

These flags are available to all commands: --configuration, --format, --help, --project, --quiet.

For more information, see the gdcloud CLI reference overview page.