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
필수 플래그
--backend string Name of the backend to add to the backend service.
선택적 플래그
--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 전체 플래그
이러한 플래그는 모든 명령어에서 사용할 수 있습니다(--configuration, --format, --help, --project, --quiet).
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-09-04(UTC)"],[[["\u003cp\u003eThe \u003ccode\u003egdcloud compute backend-services add-backend\u003c/code\u003e command adds a backend to an existing backend service.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003e--backend\u003c/code\u003e flag is required and specifies the name of the backend to be added.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003e--backend-zone\u003c/code\u003e flag is required when adding a backend to a global backend service, specifying the zone of the backend.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003e--global\u003c/code\u003e flag indicates that the backend is being added to a global backend service.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003e--zone\u003c/code\u003e flag can be used to specify the zone for the operation in multi-zone environments, and can also be preset using \u003ccode\u003egdcloud config set core/zone ZONE\u003c/code\u003e.\u003c/p\u003e\n"]]],[],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/gdch/resources/gdcloud-reference/gdcloud) page."]]