Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can click “Customize cookies” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To continue without accepting these cookies, click “Continue without accepting.” To make more detailed choices or learn more, click “Customize cookies.”

Skip to content

/AWS1/CL_ELB=>DETACHLOADBALANCERFROMSNETS()

About DetachLoadBalancerFromSubnets

Removes the specified subnets from the set of configured subnets for the load balancer.

After a subnet is removed, all EC2 instances registered with the load balancer in the removed subnet go into the OutOfService state. Then, the load balancer balances the traffic among the remaining routable subnets.

Method Signature

IMPORTING

Required arguments:

IV_LOADBALANCERNAME TYPE /AWS1/ELBACCESSPOINTNAME /AWS1/ELBACCESSPOINTNAME

The name of the load balancer.

IT_SUBNETS TYPE /AWS1/CL_ELBSUBNETS_W=>TT_SUBNETS TT_SUBNETS

The IDs of the subnets.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_ELBDETACHLOADBALANC01 /AWS1/CL_ELBDETACHLOADBALANC01

Domain /AWS1/RT_ACCOUNT_ID
Primitive Type NUMC