Skip to content

/AWS1/CL_ASC=>DETACHLOADBALANCERS()

About DetachLoadBalancers

This API operation is superseded by DetachTrafficSources, which can detach multiple traffic sources types. We recommend using DetachTrafficSources to simplify how you manage traffic sources. However, we continue to support DetachLoadBalancers. You can use both the original DetachLoadBalancers API operation and DetachTrafficSources on the same Auto Scaling group.

Detaches one or more Classic Load Balancers from the specified Auto Scaling group.

This operation detaches only Classic Load Balancers. If you have Application Load Balancers, Network Load Balancers, or Gateway Load Balancers, use the DetachLoadBalancerTargetGroups API instead.

When you detach a load balancer, it enters the Removing state while deregistering the instances in the group. When all instances are deregistered, then you can no longer describe the load balancer using the DescribeLoadBalancers API call. The instances remain running.

Method Signature

IMPORTING

Required arguments:

IV_AUTOSCALINGGROUPNAME TYPE /AWS1/ASCXMLSTRINGMAXLEN255 /AWS1/ASCXMLSTRINGMAXLEN255

The name of the Auto Scaling group.

IT_LOADBALANCERNAMES TYPE /AWS1/CL_ASCLOADBALANCERNAME00=>TT_LOADBALANCERNAMES TT_LOADBALANCERNAMES

The names of the load balancers. You can specify up to 10 load balancers.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_ASCDETACHLOADBALANC01 /AWS1/CL_ASCDETACHLOADBALANC01