Returns the current state of the instances of the specified LoadBalancer. If no instances are specified, the state of all the instances for the LoadBalancer is returned.
The client must have created the specified input LoadBalancer in order to retrieve this information; the client must provide the same account credentials as those that were used to create the LoadBalancer.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
The name associated with the LoadBalancer. The name must be unique within the client AWS account. |
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
Describe the health of an instance.
$elb = new AmazonELB(); $response = $elb->describe_instance_health('my-load-balancer'); // Success? var_dump($response->isOK());Result:
bool(true)
Describe the health of a specific set of instances.
$elb = new AmazonELB(); $response = $elb->describe_instance_health('my-load-balancer', array( 'Instances' => array( array('InstanceId' => 'i-7e8d2913') array('InstanceId' => 'i-8f9e4217') ) )); // Success? var_dump($response->isOK());Result:
bool(true)
Related Methods
Source
Method defined in services/elb.class.php | Toggle source view (16 lines) | View on GitHub