To add the backend "backend-1" to the global backend service "backend-service-1", run:
gdcloud compute backend-services add-backend backend-service-1 \
--global \
--backend-zone=us-central1-a \
--backend=backend-1
To add the backend "backend-1 to the zonal backend service "backend-service-1", run:
gdcloud compute backend-services add-backend backend-service-1 \
--backend=backend-1
DRAPEAUX REQUIS
--backend string Name of the backend to add to the backend service.
INDICATEURS FACULTATIFS
--backend-zone string Name of zone in which the referenced backend is created. This is a required flag for adding a backend to a global backend service.
--global If set, the backend is added to the global backend service.
--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.
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)."],[],[],null,["# gdcloud compute backend-services add-backend\n\nNAME\n----\n\ngdcloud compute backend-services add-backend - Add a backend to an existing backend service.\n\nSYNOPSIS\n--------\n\n gdcloud compute backend-services add-backend BACKEND_SERVICE_NAME [flags]\n\n### EXAMPLES\n\n To add the backend \"backend-1\" to the global backend service \"backend-service-1\", run:\n\n gdcloud compute backend-services add-backend backend-service-1 \\\n --global \\\n --backend-zone=us-central1-a \\\n --backend=backend-1\n\n To add the backend \"backend-1 to the zonal backend service \"backend-service-1\", run:\n\n gdcloud compute backend-services add-backend backend-service-1 \\\n --backend=backend-1\n\n### REQUIRED FLAGS\n\n --backend string Name of the backend to add to the backend service.\n\n### OPTIONAL FLAGS\n\n --backend-zone string Name of zone in which the referenced backend is created. This is a required flag for adding a backend to a global backend service.\n --global If set, the backend is added to the global backend service.\n --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.\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/appliance/resources/gdcloud-reference/gdcloud) page."]]