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
DRAPEAUX REQUIS
--admin-password string initial database password for admin user
--database-version string database version of the DBCluster to be created.
INDICATEURS FACULTATIFS
--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")
OPTIONS GCLOUD GÉNÉRALES
Ces options sont disponibles pour toutes les commandes : --configuration, --format, --help, --project, --quiet.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/04 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/09/04 (UTC)."],[[["\u003cp\u003eThis command, \u003ccode\u003egdcloud database clusters create\u003c/code\u003e, is used to create a DBCluster custom resource for different database versions like PostgreSQL, Oracle, and AlloyDB Omni.\u003c/p\u003e\n"],["\u003cp\u003eThe required flags for creating a DBCluster include setting the \u003ccode\u003e--admin-password\u003c/code\u003e and specifying the \u003ccode\u003e--database-version\u003c/code\u003e, such as \u003ccode\u003ePOSTGRESQL_14\u003c/code\u003e, \u003ccode\u003eORACLE_19\u003c/code\u003e, or \u003ccode\u003eALLOYDBOMNI_15\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eOptional flags can be utilized to customize the DBCluster, such as setting the \u003ccode\u003e--availability-type\u003c/code\u003e, \u003ccode\u003e--backup-retention-days\u003c/code\u003e, \u003ccode\u003e--cpu\u003c/code\u003e, \u003ccode\u003e--memory\u003c/code\u003e, \u003ccode\u003e--storage-size\u003c/code\u003e, and \u003ccode\u003e--tier\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe command is compatible with several gdcloud wide flags such as \u003ccode\u003e--configuration\u003c/code\u003e, \u003ccode\u003e--format\u003c/code\u003e, \u003ccode\u003e--help\u003c/code\u003e, \u003ccode\u003e--project\u003c/code\u003e, and \u003ccode\u003e--quiet\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eYou can refer to the \u003ca href=\"/distributed-cloud/hosted/docs/latest/gdch/resources/gdcloud-reference/gdcloud\"\u003egdcloud CLI reference overview\u003c/a\u003e page for more information regarding this command.\u003c/p\u003e\n"]]],[],null,["# gdcloud database clusters create\n\nNAME\n----\n\ngdcloud database clusters create - Create a DBCluster custom resource.\n\nSYNOPSIS\n--------\n\n gdcloud database clusters create CLUSTER_NAME [flags]\n\n### EXAMPLES\n\n To create a DBCluster custom resource with database version PostgreSQL 14 with name \"postgresql-db\", run:\n\n gdcloud database clusters create postgresql-db \\\n --database-version=POSTGRESQL_14\n\n To create a DBCluster custom resource with database version Oracle 19 with name \"oracle-db\" in the project \"db\", run:\n\n gdcloud database clusters create oracle-db --project=db \\\n --database-version=ORACLE_19\n\n To create a DBCluster custom resource with database version AlloyDB Omni 15 with name \"alloydbomni-db\" in the project \"db\", run:\n\n gdcloud database clusters create alloydbomni-db --project=db \\\n --database-version=ALLOYDBOMNI_15\n\n### REQUIRED FLAGS\n\n --admin-password string initial database password for admin user\n --database-version string database version of the DBCluster to be created.\n\n### OPTIONAL FLAGS\n\n --availability-type string level of availability. (zonal or zonal_ha) (default \"zonal\")\n --backup-retention-days int number of days to keep backups since creation (1 ~ 90 days). (default 30)\n --cpu int number of cores to be used for the database.\n --database-flags string initial database flags\n --memory string amount of memory for the database.\n --no-backup disables daily backup.\n --storage-size string amount of storage allocated to storing data.\n --tier string machine type for a DBCluster with preset resources configuration (high-performance, standard or minimal). (default \"standard\")\n\n### GDCLOUD WIDE FLAGS\n\nThese flags are available to all commands: `--configuration`, `--format`, `--help`, `--project`, `--quiet`.\n\nFor more information, see the [gdcloud CLI reference overview](/distributed-cloud/hosted/docs/latest/gdch/resources/gdcloud-reference/gdcloud) page."]]