Deletes forwarding rules.

Limits

The RuleIds parameter is required. You can specify up to 10 forwarding rules in each request.

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 DeleteRules

The operation that you want to perform.

Set the value to DeleteRules.

RegionId String Yes cn-hangzhou

The ID of the region where the Server Load Balancer (SLB) instance is deployed.

You can call the DescribeRegions operation to query region IDs.

RuleIds String Yes ["rule-bp1z9ce******","rule-bp1tuc******4"]

The list of forwarding rules that you want to delete.

Note The RuleIds parameter is required. You can specify up to 10 forwarding rules in each request.

Response parameters

Parameter Type Example Description
RequestId String 9DEC9C28-AB05-4DDF-9A78-6B08EC9CE18C

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/? Action=DeleteRules
&RegionId=cn-hangzhou
&RuleIds=["rule-bp1z9ce******","rule-bp1tuc******4"]
&<Common request parameters>

Sample success responses

XML format

<DeleteRulesResponse>
      <RequestId>9DEC9C28-AB05-4DDF-9A78-6B08EC9CE18C</RequestId>
</DeleteRulesResponse>

JSON format

{
"RequestId":"9DEC9C28-AB05-4DDF-9A78-6B08EC9CE18C"
}

Error codes

HttpCode Error code Error message Description
400 OperationFailed.ListenerStatusNotSupport The status of the listener does not support this operation. Please try again later. The error message returned because the listener is in a state that does not support the operation. Try again later.

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