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 — Subnets in which the ELB will be created. You can specify subnets from one or more availability zones.

    • 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 — The subnets in which ELB will be created. You can specify subnets from one or more availability zones.

    • 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

    • Default value: network

Response Elements#

  • LoadBalancers.N — Information about load balancers.

Examples#

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

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