v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1458181172.5 KB

Associates one or more security groups with your load balancer in a virtual private cloud (VPC). The specified security groups override the previously associated security groups.

For more information, see Security Groups for Load Balancers in a VPC in the Classic Load Balancers Guide.

get/#Action=ApplySecurityGroupsToLoadBalancer

Query parameters

LoadBalancerNamestring required

The name of the load balancer.

SecurityGroupsSecurityGroupId[] required

The IDs of the security groups to associate with the load balancer. Note that you cannot specify the name of the security group.

Action'ApplySecurityGroupsToLoadBalancer' required
Version'2012-06-01' required

Response

Success