Deletes an inbound or outbound rule of a filter for traffic mirroring.


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

Request parameters

Parameter Type Required Example Description
Action String Yes DeleteTrafficMirrorFilterRules

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

RegionId String Yes cn-hongkong

The ID of the region to which the mirrored traffic belongs. You can call the DescribeRegions operation to query the most recent region list. For more information about regions that support traffic mirroring, see Overview of traffic mirroring.

TrafficMirrorFilterId String Yes tmf-j6cmls82xnc86vtpe****

The ID of the filter.

TrafficMirrorFilterRuleIds.N RepeatList Supported tmr-j6cbmubn323k7jlq3****

The ID of the inbound or outbound rule.

ClientToken String No 0c593ea1-3bea-11e9-b96b-88e9fe63****

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. ClientToken supports only ASCII characters. It can contain up to 64 ASCII characters.

DryRun Boolean No false

Specifies whether to precheck this request. Valid values:

  • true: only checks the API request. The inbound or outbound rule is not deleted. The system checks the required parameters, request format, and limits. If the request fails the precheck, the corresponding error code is returned. If the request passes the precheck, the DryRunOperation error code is returned.
  • false: sends the request. After the request passes the precheck, the inbound or outbound rule is deleted.

Response parameters

Parameter Type Example Description
RequestId String BD8A3F71-00C5-4655-8F55-11F3976C3274

The ID of the request.


Sample requests

&<Common request parameters>

Sample success responses

XML format


JSON format

    "RequestId": "BD8A3F71-00C5-4655-8F55-11F3976C3274"

Error codes

HttpCode Error code Error message Description
400 ResourceNotFound.TrafficMirrorRule The specified resource of traffic mirror rule is not found. The error message returned because the specified filter does not exist.
400 IncorrectStatus.TrafficMirrorRule The status of traffic mirror rule is incorrect. The error message returned because the specified filter is in an invalid state.

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