All Products
Search
Document Center

Server Load Balancer:LoadBalancerLeaveSecurityGroup

Last Updated:Jul 29, 2024

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.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
alb:LoadBalancerLeaveSecurityGroupnone
  • LoadBalancer
    acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
SecurityGroupIdsarrayYes

The security IDs.

stringYes

The ID of the security group.

sg-1nmf15kvwj37g2g1****
LoadBalancerIdstringYes

The ID of the ALB instance.

alb-iv9gj3lpak6fbj****
DryRunbooleanNo

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
ClientTokenstringNo

The task result.

593B0448-D13E-4C56-AC0D-FDF0FDE0****

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

EC0C96E4-7CCB-599C-9329-3A5DB6FF****
JobIdstring

The ID of the asynchronous task.

51c5b627-3500-487c-b17d-5cc583f0****

Examples

Sample success responses

JSONformat

{
  "RequestId": "EC0C96E4-7CCB-599C-9329-3A5DB6FF****",
  "JobId": "51c5b627-3500-487c-b17d-5cc583f0****"
}

Error codes

HTTP status codeError codeError messageDescription
400IncorrectStatus.LoadBalancerThe status of %s [%s] is incorrect.The status of %s [%s] is incorrect.
400OperationDenied.SecurityGroupNotSupportThe operation is not allowed because of %s.-
400ResourceNotAssociated.SecurityGroupThe specified resource of %s is not associated.-
404ResourceNotFound.LoadBalancerThe specified resource %s is not found.The specified resource %s is not found.
404ResourceNotFound.SecurityGroupThe specified resource %s is not found.-

For a list of error codes, visit the Service error codes.