Deletes a filter.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DeleteTrafficMirrorFilter |
The operation that you want to perform. Set the value to DeleteTrafficMirrorFilter. |
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. |
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. |
DryRun | Boolean | No | false |
Specifies whether to precheck this request. Valid values:
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 07F272E2-6AD5-433A-8207-A607C76F1676 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DeleteTrafficMirrorFilter
&RegionId=cn-hongkong
&TrafficMirrorFilterId=tmf-j6cmls82xnc86vtpe****
&<Common request parameters>
Sample success responses
XML
format
<DeleteTrafficMirrorFilterResponse>
<RequestId>07F272E2-6AD5-433A-8207-A607C76F1676</RequestId>
</DeleteTrafficMirrorFilterResponse>
JSON
format
{
"RequestId": "07F272E2-6AD5-433A-8207-A607C76F1676"
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | ResourceNotFound.TrafficMirrorFilter | The specified resource of traffic mirror filter is not found. | The error message returned because the specified filter does not exist. |
400 | IncorrectStatus.TrafficMirrorFilter | The status of traffic mirror filter is incorrect. | The error message returned because the filter is in an invalid state. |
400 | IncorrectStatus.TrafficMirrorRule | The status of traffic mirror rule is incorrect. | The error message returned because the rule of the filter is in an invalid state. |
400 | DependencyViolation.TrafficMirrorSession | Some traffic mirror sessions depend on the specified resource. | The error message returned because the traffic mirror session depends on the current resource. |
For a list of error codes, visit the API Error Center.