Deregisters instances from the LoadBalancer. Once the instance is deregistered, it will stop receiving traffic from the LoadBalancer.
In order to successfully call this API, the same account credentials as those used to create the LoadBalancer must be provided.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
The name associated with the LoadBalancer. The name must be unique within the client AWS account. |
|
|
Required |
A list of EC2 instance IDs consisting of all instances to be deregistered.
|
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
Deregister one or more EC2 instances from a load balancer.
$elb = new AmazonELB(); $response = $elb->deregister_instances_from_load_balancer('my-load-balancer', 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 (12 lines) | View on GitHub