名稱
gdcloud database clusters create - 建立 DBCluster 自訂資源。
概要
gdcloud database clusters create CLUSTER_NAME [flags]
範例
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
必要標記
--admin-password string initial database password for admin user
--database-version string database version of the DBCluster to be created.
選用旗標
--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.
--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")
GDCLOUD 廣泛標記
所有指令都可使用這些旗標:--configuration
、--format
、--help
、--project
、--quiet
。
詳情請參閱 gcloud CLI 參考資料總覽頁面。