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 facilitates the failover of a DBCluster custom resource within the gdcloud environment.\u003c/p\u003e\n"],["\u003cp\u003eThe command requires the name of the DBCluster to failover, specified as \u003ccode\u003eCLUSTER_NAME\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eYou can execute a failover using the command \u003ccode\u003egdcloud database clusters failover CLUSTER_NAME\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003egdcloud\u003c/code\u003e command line tool has global flags available 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 for all commands.\u003c/p\u003e\n"]]],[],null,["# gdcloud database clusters failover\n\nNAME\n----\n\ngdcloud database clusters failover - Failover a DBCluster custom resource.\n\nSYNOPSIS\n--------\n\n gdcloud database clusters failover CLUSTER_NAME [flags]\n\n### EXAMPLES\n\n To failover a DBCluster custom resource with name \"postgresql-db\", run:\n\n gdcloud database clusters failover postgresql-db\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."]]