DeregisterInstancesFromLoadBalancer - Elastic Load Balancing


Deregisters the specified instances from the specified load balancer. After the instance is deregistered, it no longer receives traffic from the load balancer.

You can use DescribeLoadBalancers to verify that the instance is deregistered from the load balancer.

For more information, see Register or deregister EC2 Instances in the User Guide for Classic Load Balancers.

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.


The IDs of the instances.

Type: Array of Instance objects

Required: Yes


The name of the load balancer.

Type: String

Required: Yes

Response Elements

The following element is returned by the service.


The remaining instances registered with the load balancer.

Type: Array of Instance objects


For information about the errors that are common to all actions, see Common Errors.


The specified endpoint is not valid.

HTTP Status Code: 400


The specified load balancer does not exist.

HTTP Status Code: 400


Deregister instances

This example deregisters the specified instance from the specified load balancer.

Sample Request &LoadBalancerName=my-https-loadbalancer &Instances.member.1.InstanceId=i-e3677ad7 &Version=2012-06-01 &AUTHPARAMS

Sample Response

<DeregisterInstancesFromLoadBalancerResponse xmlns=""> <DeregisterInstancesFromLoadBalancerResult> <Instances> <member> <InstanceId>i-6ec63d59</InstanceId> </member> </Instances> </DeregisterInstancesFromLoadBalancerResult> <ResponseMetadata> <RequestId>83c88b9d-12b7-11e3-8b82-87b12EXAMPLE</RequestId> </ResponseMetadata> </DeregisterInstancesFromLoadBalancerResponse>

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: