To create a zonal backend service "backend-service-1" for a load balancer, run:
gdcloud compute backend-services create backend-service-1 \
--health-check=my-health-check \
--target-ports=UDP:80:8080
To create a global backend service "backend-service-1" for a load balancer, run:
gdcloud compute backend-services create backend-service-1 \
--health-check=my-health-check \
--target-ports=UDP:80:8080 \
--global
선택적 플래그
--global If set, the global backend service object is created.
--health-check string Name of the health check parameters object for this backend service.
--target-ports strings Comma-separated list of target ports that this backend service will translate, where each target port specifies the protocol, the port on the forwarding rule, and the port on the backend instance. Format: '{protocol}:{port}:{targetport}'.
--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\u003eThis command creates backend services for a load balancer using the \u003ccode\u003egdcloud compute backend-services create\u003c/code\u003e command.\u003c/p\u003e\n"],["\u003cp\u003eYou can specify the name of the backend service along with required configurations like health checks and target ports.\u003c/p\u003e\n"],["\u003cp\u003eYou can create either a zonal or a global backend service by using the \u003ccode\u003e--global\u003c/code\u003e flag, which defaults to zonal.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003e--health-check\u003c/code\u003e flag designates the health check parameters for the service and \u003ccode\u003e--target-ports\u003c/code\u003e defines the protocol and port mapping.\u003c/p\u003e\n"],["\u003cp\u003eOptional flags like \u003ccode\u003e--zone\u003c/code\u003e are available to designate the zone, and gdcloud wide flags are also available for use.\u003c/p\u003e\n"]]],[],null,["# gdcloud compute backend-services create\n\nNAME\n----\n\ngdcloud compute backend-services create - Create backend services for a load balancer.\n\nSYNOPSIS\n--------\n\n gdcloud compute backend-services create BACKEND_SERVICE_NAME [flags]\n\n### EXAMPLES\n\n To create a zonal backend service \"backend-service-1\" for a load balancer, run:\n\n gdcloud compute backend-services create backend-service-1 \\\n --health-check=my-health-check \\\n --target-ports=UDP:80:8080\n\n To create a global backend service \"backend-service-1\" for a load balancer, run:\n\n gdcloud compute backend-services create backend-service-1 \\\n --health-check=my-health-check \\\n --target-ports=UDP:80:8080 \\\n --global\n\n### OPTIONAL FLAGS\n\n --global If set, the global backend service object is created.\n --health-check string Name of the health check parameters object for this backend service.\n --target-ports strings Comma-separated list of target ports that this backend service will translate, where each target port specifies the protocol, the port on the forwarding rule, and the port on the backend instance. Format: '{protocol}:{port}:{targetport}'.\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."]]