CreateLoadBalancer#

Description#

Request to create an Elastic Load Balancer (ELB).

Request Parameters#

Required parameters#

  • Name — The load balancer name.

    • Type: String

    • Required: Yes

    • Constraints: 1 to 32 ASCII characters. The name shall not begin or end with a hyphen and shall not begin with internal-

Optional parameters#

  • Scheme — The ELB operational scheme.

    • Type: String

    • Required: No

    • Valid values: internal | internet-facing

    • Default value: internet-facing

  • SubnetMappings.N — Сетевые конфигурация узла Elastic Load Balancer (ELB), с которыми будет создан ELB. Вы можете указать подсети из одной или нескольких зон доступности.

    • Type: List of SubnetMapping objects

    • Required: No

    • Constraints: Cannot be used with the Subnets option. You can only specify one subnet for each availability zone

  • Subnets.N — Идентификаторы подсетей, в которых будет создан ELB. Вы можете указать подсети из одной или нескольких зон доступности

    • Type: Array of strings

    • Required: No

    • Constraints: Cannot be used with the SubnetMappings option. You can only specify one subnet for each availability zone

  • Tags.N — Tags assigned to the ELB.

    • Type: List of Tag objects

    • Required: No

  • Type — The load balancer type.

    • Type: String

    • Required: No

    • Valid values: network | application

    • Default value: network

Response Elements#

  • LoadBalancers.N — Information about load balancers.

Examples#

c2-elb CreateLoadBalancer Name "nlbname" Subnets.0 "subnet-xxxxxxxx" Subnets.1 "subnet-yyyyyyyy"

c2-elb CreateLoadBalancer Name "nlbname" Scheme "internet-facing" SubnetMappings.0.SubnetId "subnet-xxxxxxxx" SubnetMappings.0.AllocationId "eipalloc-xxxxxxxx"

c2-elb CreateLoadBalancer Name "albname" Scheme "internet-facing" SubnetMappings.0.SubnetId "subnet-xxxxxxxx" SubnetMappings.0.AllocationId "eipalloc-xxxxxxxx" Type application