dcloud lb load-balancers createCreate a load balancer
It starts with no services and no targets: add a service (listener) and at least one target before it carries traffic. Refused (400) when an organization tag policy requires tags that are missing.
Synopsis
dcloud lb load-balancers create --name name --type type --region-id regionId [flags]Flags
--nameRequiredstring
Name shown in the console, 1–64 characters. Not unique: two load balancers may share one. An application load balancer’s platform name is `<name>-<id8>.lb.apps.…`
Constraints: 1-64 chars
--typeRequiredenum
Required (the console's form starts on lb11). lb11/lb21/lb31: a network load balancer of that size (tcp/http/https, VPC targets). application: an HTTP/HTTPS load balancer on the shared Deutsche Cloud fleet: its own name under lb.apps, per-request access logs, live numbers, health checks every second; http on 80 and https on 443 only, public targets only. dedicated: its own address on the Deutsche Cloud fleet, tcp/http/https on any port; public (own IPv4 + IPv6) or private (scheme private + vpcId: an address in the VPC only). In an organization whose load balancers run on its own hosts, only application is accepted (409, code provider_unsupported). Fixed at creation
One of:
lb11,lb21,lb31,application,dedicated--schemeOptionalenum
dedicated type only (400 on any other type): public (default; its own IPv4 and IPv6, public targets; 400 with vpcId) or private (an address in vpcId only, no public address; targets inside that VPC; 400 without vpcId; 409 when the VPC has no address left, at most 5 private load balancers per VPC). Fixed at creation
One of:
public,private--algorithmOptionalenum
How new connections are spread over healthy targets: round_robin (default) sends each to the next target, least_connections to the least busy
One of:
round_robin,least_connectionsDefault:
"round_robin"--region-idRequiredstring
Region id, from `dcloud ec2 catalog regions`. Unknown: 404. Counts against the region’s load balancer quota (20 standard, 2 on a trial; over it: 409)
Constraints: min 1 chars
--vpc-idOptionalstring
lb11/lb21/lb31: join this VPC, so targets can be reached by their private address (`usePrivateIp`). dedicated: required with scheme private, refused with public. application: refused (400). Not found: 404; in another region than regionId: 400. Default: no VPC
Constraints: uuid
--tagsOptionalmap of string
Tags to set at creation, e.g. {"env": "prod"}: at most 50; keys lowercase, 1–64 characters; values 1–128 characters without spaces. Keys your organization marks required must be present, or the create is refused (400)
Constraints: key=value
--web-acl-idOptionalstring
application type only (400 on any other type): a web ACL (`dcloud waf web-acls`) every request passes before anything else answers. Needs lb:SetWebAcl, and waf:GetWebAcl on the ACL (403); an ACL not in your organization: 404. Absent or null: none
Constraints: uuid
May be null.
Example
dcloud lb load-balancers create --name example --type lb11 --region-id exampleGenerated from the API description, the same one the API checks requests against and the CLI is built from.