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
ERFORDERLICHE FLAGS
--backend string Name of the backend to add to the backend service.
OPTIONALE FLAGS
--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.
GDCLOUD-WEITE FLAGS
Diese Flags sind für alle Befehle verfügbar: --configuration, --format, --help, --project, --quiet.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-07-25 (UTC)."],[[["The `gdcloud compute backend-services add-backend` command adds a backend to an existing backend service."],["The `--backend` flag is required and specifies the name of the backend to be added."],["The `--backend-zone` flag is required when adding a backend to a global backend service, specifying the zone of the backend."],["The `--global` flag indicates that the backend is being added to a global backend service."],["The `--zone` flag can be used to specify the zone for the operation in multi-zone environments, and can also be preset using `gdcloud config set core/zone ZONE`."]]],[]]