Disassociates an EIP bandwidth plan from an Application Load Balancer (ALB) instance.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DetachCommonBandwidthPackageFromLoadBalancer

The operation that you want to perform. Set the value to DetachCommonBandwidthPackageFromLoadBalancer.

ClientToken String No 123e4567-e89b-12d3-a456-426655440000

The client token that is used to ensure the idempotence of the request.

You can use the client to generate the value, but you must make sure that it is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.

Note If you do not set this parameter, the system automatically uses RequestId as ClientToken. RequestId may be different for each API request.
RegionId String Yes cn-hangzhou

The ID of the region where the ALB instance is created.

You can call the DescribeRegions operation to query the most recent region list.

LoadBalancerId String Yes alb-d676fho813rmu3****

The ID of the ALB instance.

BandwidthPackageId String Yes cbwp-bp1pzf0ym72pu3y76****

The ID of the EIP bandwidth plan.

DryRun Boolean No true

Specifies whether to only precheck the request. Valid values:

  • true: prechecks the request without creating the resource. The system checks the required parameters, request syntax, and limits. If the request fails to pass the precheck, an error message is returned. If the request passes the precheck, the DryRunOperation error code is returned.
  • false (default): sends the API request. If the request passes the precheck, a 2xx HTTP status code is returned and the operation is performed.

Response parameters

Parameter Type Example Description
RequestId String 2EF39708-974B-5E74-AFF5-3445263035A8

The ID of the request.

JobId String 72dcd26b-f12d-4c27-b3af-18f6aed5****

The ID of the asynchronous task.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DetachCommonBandwidthPackageFromLoadBalancer
&ClientToken=123e4567-e89b-12d3-a456-426655440000
&RegionId=cn-hangzhou
&LoadBalancerId=alb-d676fho813rmu3****
&BandwidthPackageId=cbwp-bp1pzf0ym72pu3y76****
&DryRun=true
&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DetachCommonBandwidthPackageFromLoadBalancerResponse>
    <RequestId>2EF39708-974B-5E74-AFF5-3445263035A8</RequestId>
    <JobId>72dcd26b-f12d-4c27-b3af-18f6aed5****</JobId>
</DetachCommonBandwidthPackageFromLoadBalancerResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "2EF39708-974B-5E74-AFF5-3445263035A8",
  "JobId" : "72dcd26b-f12d-4c27-b3af-18f6aed5****"
}

Error codes

HttpCode Error code Error message Description
400 IncorrectBusinessStatus.CommonBandwidthPackage The business status of %s [%s] is incorrect. The error message returned because the service status of the specified resource %s [%s] is invalid.
400 IncorrectStatus.CommonBandwidthPackage The status of %s [%s] is incorrect. The error message returned because the status of the specified resource %s [%s] is invalid.
404 ResourceNotFound.LoadBalancer The specified resource %s is not found. The error message returned because the specified resource %s does not exist.
404 ResourceNotFound.CommonBandwidthPackage The specified resource %s is not found. The error message returned because the specified resource %s does not exist.

For a list of error codes, visit the API Error Center.