All Products
Search
Document Center

Server Load Balancer:DeleteRules

Last Updated:Mar 02, 2026

Deletes forwarding rules.

Operation description

You must specify at least one forwarding rule that you want to delete. You can specify at most 10 forwarding rules in each call.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

slb:DeleteRules

delete

*loadbalancer

acs:slb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}

  • slb:tag
  • slb:tag
  • slb:tag
None

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

Yes

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

You can call the DescribeRegions operation to query region IDs.

cn-hangzhou

RuleIds

string

Yes

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.

["rule-bp1z9ce******","rule-bp1tuc******4"]

Response elements

Element

Type

Description

Example

object

RequestId

string

The ID of the request.

9DEC9C28-AB05-4DDF-9A78-6B08EC9CE18C

Examples

Success response

JSON format

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

Error response

JSON format

{"Code":"InvalidParameter","Message":"The specified parameter is not valid.","HostId":"slb-pop.aliyuncs.com","RequestId":"0669D684-69D8-408E-A4FA-B9011E0F4E66"}

Error codes

HTTP status code

Error code

Error message

Description

400 Operation.NotAllowed The specified rules must be in the same listener.
400 OperationFailed.ListenerStatusNotSupport The status of the listener does not support this operation. Please try again later.
400 OperationFailed.ListenerConflict The rule does not support this operation because of same port listener.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.