Deletes a traffic mirror session.
Usage notes
- DeleteTrafficMirrorSession is an asynchronous operation. After you send the request, the system returns a request ID and runs the task in the background. You can call the ListTrafficMirrorSessions operation to query the status of a traffic mirror session.
- If the traffic mirror session is in the Deleting state, the traffic mirror session is being deleted.
- If you cannot query the traffic mirror session, the traffic mirror session is deleted.
- You cannot repeatedly call the DeleteTrafficMirrorSession operation to delete a traffic mirror session within the specified period of time.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DeleteTrafficMirrorSession | The operation that you want to perform. Set the value to DeleteTrafficMirrorSession. |
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 all requests. ClientToken can contain only ASCII characters. Note If you do not specify this parameter, ClientToken is set to the value of RequestId. The value of RequestId for each API request may be different. |
DryRun | Boolean | No | false | Specifies whether to to perform a dry run. Valid values:
|
TrafficMirrorSessionId | String | Yes | tms-j6cla50buc44ap8tu**** | The ID of the traffic mirror session. |
RegionId | String | Yes | cn-hongkong | The ID of the region to which the traffic mirror session 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. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 0ED8D006-F706-4D23-88ED-E11ED28DCAC0 | The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DeleteTrafficMirrorSession
&RegionId=cn-hongkong
&TrafficMirrorSessionId=tms-j6cla50buc44ap8tu****
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DeleteTrafficMirrorSessionResponse>
<RequestId>0ED8D006-F706-4D23-88ED-E11ED28DCAC0</RequestId>
</DeleteTrafficMirrorSessionResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "0ED8D006-F706-4D23-88ED-E11ED28DCAC0"
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | ResourceNotFound.TrafficMirrorSession | The specified resource of traffic mirror session is not found. | The error message returned because the specified traffic mirror session does not exist. |
400 | IncorrectStatus.TrafficMirrorSession | The status of traffic mirror session is incorrect. | The error message returned because the traffic mirror session is in an invalid state. |
400 | IncorrectStatus.TrafficMirrorFilter | The status of traffic mirror filter is incorrect. | The error message returned because the filter is in an invalid state. |
For a list of error codes, visit the API Error Center.