Domain name for API request: alb.intl.tencentcloudapi.com.
DeleteRules deletes forwarding rules. This is an async API. After returning successfully, call the DescribeAsyncJobs API with the returned RequestID as an input parameter to check whether this task is successful.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| Action | Yes | String | Common Params. The value used for this API: DeleteRules. |
| Version | Yes | String | Common Params. The value used for this API: 2025-10-30. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
| ListenerId | Yes | String | Listener ID, in the format of lst- followed by 8 alphanumeric characters. |
| LoadBalancerId | Yes | String | CLB instance ID. The format is alb- followed by 8 alphanumeric characters. |
| RuleIds.N | Yes | Array of String | List of forwarding rule IDs. Each ID is in the format of rule- followed by 8 alphanumeric characters. |
| DryRun | No | Boolean | Whether it is pre-check only for this request. |
| Parameter Name | Type | Description |
|---|---|---|
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
POST / HTTP/1.1
Host: alb.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DeleteRules
<Common request parameters>
{
"ListenerId": "lst-d9p3k7wa",
"LoadBalancerId": "alb-f8q2xk9m",
"RuleIds": [
"rule-h8cy5gwl"
]
}
{
"Response": {
"RequestId": "3b848733-70e5-4558-ae39-4b9938eb7609"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Error Code | Description |
|---|---|
| AuthFailure | CAM signature/authentication error. |
| DryRunOperation | DryRun operation means the request will be successful, but the DryRun parameter is passed. |
| InternalError | Internal error. |
| InvalidParameter | Parameter error. |
| InvalidParameter.InvalidClientToken | Invalid ClientToken format. |
| InvalidParameter.InvalidFieldFormat | Field format error. |
| InvalidParameter.InvalidFieldType | Field type error. |
| InvalidParameter.InvalidFieldValue | Field value is incorrect. |
| InvalidParameter.MissingAction | Action parameter is missing. |
| InvalidParameter.MissingField | Please enter the required parameter. |
| InvalidParameterValue | Parameter value error. |
| MissingParameter | Parameters are missing. |
| OperationDenied | Operation denied. |
| RegionError | Region error |
| RequestLimitExceeded | Number of requests exceeds the frequency limit. |
| ResourceInUse | The resource is occupied. |
| ResourceNotFound | The resource does not exist. |
| ResourceNotFound.Listener | Listener not found. |
| ResourceNotFound.LoadBalancer | The CLB resource does not exist. |
| ResourceNotFound.Rule | Forwarding rule not found |
| ResourceUnavailable | Resources are unavailable. |
| ResourceUnavailable.Listener | Listener is in unavailable status. |
| ResourceUnavailable.LoadBalancer | ALB status is unavailable. |
| ResourceUnavailable.PreviousTaskNotCompleted | The previous task is not completed. |
| ResourceUnavailable.Rule | Rule status unavailable. |
| ResourceUnavailable.UpstreamStatusBlocked | Resource status of the superior is blocked. |
| UnauthorizedOperation | Unauthorized operation. |
| UnauthorizedOperation.ServiceRoleUnauthorized | Service role not authorized. |
| UnknownParameter | Unknown parameter error. |
| UnsupportedOperation | The operation is not supported. |
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback