AWS ELB

List classic load balancers

Cette page n'est pas encore disponible en français, sa traduction est en cours.
Si vous avez des questions ou des retours sur notre projet de traduction actuel, n'hésitez pas à nous contacter.

Describe the specified classic load balancers. If no load balancers are specified, the call describes all of your load balancers.

Inputs

Champ

Type

Description

region [required]

enum

default: us-east-1

loadBalancerNames

[string]

pageSize

number

Outputs

Expand All

Champ

Type

Description

classicLoadBalancers

[object]

LoadBalancerName

string

The name of the load balancer.

DNSName

string

The DNS name of the load balancer.

CanonicalHostedZoneName

string

The DNS name of the load balancer. For more information, see Configure a Custom Domain Name in the Classic Load Balancers Guide.

CanonicalHostedZoneNameID

string

The ID of the Amazon Route 53 hosted zone for the load balancer.

ListenerDescriptions

[object]

The listeners for the load balancer.

Listener

object

The listener.

Protocol [required]

string

The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP, or SSL.

LoadBalancerPort [required]

number

The port on which the load balancer is listening. On EC2-VPC, you can specify any port from the range 1-65535. On EC2-Classic, you can specify any port from the following list: 25, 80, 443, 465, 587, 1024-65535.

InstanceProtocol

string

The protocol to use for routing traffic to instances: HTTP, HTTPS, TCP, or SSL. If the front-end protocol is TCP or SSL, the back-end protocol must be TCP or SSL. If the front-end protocol is HTTP or HTTPS, the back-end protocol must be HTTP or HTTPS. If there is another listener with the same InstancePort whose InstanceProtocol is secure, (HTTPS or SSL), the listener's InstanceProtocol must also be secure. If there is another listener with the same InstancePort whose InstanceProtocol is HTTP or TCP, the listener's InstanceProtocol must be HTTP or TCP.

InstancePort [required]

number

The port on which the instance is listening.

SSLCertificateId

string

The Amazon Resource Name (ARN) of the server certificate.

PolicyNames

[string]

The policies. If there are no policies enabled, the list is empty.

Policies

object

The policies defined for the load balancer.

AppCookieStickinessPolicies

[object]

The stickiness policies created using CreateAppCookieStickinessPolicy.

PolicyName

string

The mnemonic name for the policy being created. The name must be unique within a set of policies for this load balancer.

CookieName

string

The name of the application cookie used for stickiness.

LBCookieStickinessPolicies

[object]

The stickiness policies created using CreateLBCookieStickinessPolicy.

PolicyName

string

The name of the policy. This name must be unique within the set of policies for this load balancer.

CookieExpirationPeriod

number

The time period, in seconds, after which the cookie should be considered stale. If this parameter is not specified, the stickiness session lasts for the duration of the browser session.

OtherPolicies

[string]

The policies other than the stickiness policies.

BackendServerDescriptions

[object]

Information about your EC2 instances.

InstancePort

number

The port on which the EC2 instance is listening.

PolicyNames

[string]

The names of the policies enabled for the EC2 instance.

AvailabilityZones

[string]

The Availability Zones for the load balancer.

Subnets

[string]

The IDs of the subnets for the load balancer.

VPCId

string

The ID of the VPC for the load balancer.

Instances

[object]

The IDs of the instances for the load balancer.

InstanceId

string

The instance ID.

HealthCheck

object

Information about the health checks conducted on the load balancer.

Target [required]

string

The instance being checked. The protocol is either TCP, HTTP, HTTPS, or SSL. The range of valid ports is one (1) through 65535. TCP is the default, specified as a TCP: port pair, for example "TCP:5000". In this case, a health check simply attempts to open a TCP connection to the instance on the specified port. Failure to connect within the configured timeout is considered unhealthy. SSL is also specified as SSL: port pair, for example, SSL:5000. For HTTP/HTTPS, you must include a ping path in the string. HTTP is specified as a HTTP:port;/;PathToPing; grouping, for example "HTTP:80/weather/us/wa/seattle". In this case, a HTTP GET request is issued to the instance on the given port and path. Any answer other than "200 OK" within the timeout period is considered unhealthy. The total length of the HTTP ping target must be 1024 16-bit Unicode characters or less.

Interval [required]

number

The approximate interval, in seconds, between health checks of an individual instance.

Timeout [required]

number

The amount of time, in seconds, during which no response means a failed health check. This value must be less than the Interval value.

UnhealthyThreshold [required]

number

The number of consecutive health check failures required before moving the instance to the Unhealthy state.

HealthyThreshold [required]

number

The number of consecutive health checks successes required before moving the instance to the Healthy state.

SourceSecurityGroup

object

The security group for the load balancer, which you can use as part of your inbound rules for your registered instances. To only allow traffic from load balancers, add a security group rule that specifies this source security group as the inbound source.

OwnerAlias

string

The owner of the security group.

GroupName

string

The name of the security group.

SecurityGroups

[string]

The security groups for the load balancer. Valid only for load balancers in a VPC.

CreatedTime

date-time

The date and time the load balancer was created.

Scheme

string

The type of load balancer. Valid only for load balancers in a VPC. If Scheme is internet-facing, the load balancer has a public DNS name that resolves to a public IP address. If Scheme is internal, the load balancer has a public DNS name that resolves to a private IP address.

amzRequestId [required]

string