Removes an Application Load Balancer (ALB) instance from a security group.
Operation description
-
LoadBalancerLeaveSecurityGroup is an asynchronous operation. After a request is sent, the system returns a request ID and runs the task in the background. You can call the ListAsynJobs operation to query the status of the task.
If the task is in the Succeeded state, the ALB instance is removed from the security group.
If the task is in the Processing state, the ALB instance is being removed from the security group. In this case, you can query the task but cannot perform other operations.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
alb:LoadBalancerLeaveSecurityGroup |
none |
*LoadBalancer
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SecurityGroupIds |
array |
Yes |
The security group IDs. |
|
|
string |
No |
The security group ID. |
sg-1nmf15kvwj37g2g1**** |
|
| LoadBalancerId |
string |
Yes |
The ID of the ALB instance. |
alb-iv9gj3spak6fbj**** |
| DryRun |
boolean |
No |
The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters. Note
If you do not specify this parameter, the system automatically uses the request ID as the client token. The request ID may be different for each request. |
false |
| ClientToken |
string |
No |
The task result. |
593B0448-D13E-4C56-AC0D-FDF0FDE0**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
EC0C96E4-7CCB-599C-9329-3A5DB6FF**** |
| JobId |
string |
The ID of the asynchronous task. |
51c5b627-3500-487c-b17d-5cc583f0**** |
Examples
Success response
JSON format
{
"RequestId": "EC0C96E4-7CCB-599C-9329-3A5DB6FF****",
"JobId": "51c5b627-3500-487c-b17d-5cc583f0****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IncorrectStatus.LoadBalancer | The status of %s [%s] is incorrect. | |
| 400 | OperationDenied.SecurityGroupNotSupport | The operation is not allowed because of %s. | |
| 400 | ResourceNotAssociated.SecurityGroup | The specified resource of %s is not associated. | |
| 404 | ResourceNotFound.LoadBalancer | The specified resource %s is not found. | The specified resource %s is not found. |
| 404 | ResourceNotFound.SecurityGroup | The specified resource %s is not found. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.