Queries the status of the traffic mirroring feature.

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 a sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes GetTrafficMirrorServiceStatus

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

ClientToken String No 123e4567-e89b-12d3-a456-426655440000

The client token that is used to ensure the idempotence of the request.

You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters.

Note If you do not specify this parameter, the system automatically uses the request ID as the client token. The request ID may be different for each request.
RegionId String Yes cn-hangzhou

The ID of the region to which the mirrored traffic belongs.

You can call the DescribeRegions operation to query the most recent region list.

Response parameters

Parameter Type Example Description
Enabled Boolean true

Indicates whether the traffic mirroring feature is enabled. Valid values:

  • true
  • false
RequestId String 37626066-2C6C-4B62-ADD3-498920C409C5

The request ID.

Examples

Sample requests

http(s)://[Endpoint]/?Action=GetTrafficMirrorServiceStatus
&ClientToken=123e4567-e89b-12d3-a456-426655440000
&RegionId=cn-hangzhou
&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<GetTrafficMirrorServiceStatusResponse>
    <Enabled>true</Enabled>
    <RequestId>37626066-2C6C-4B62-ADD3-498920C409C5</RequestId>
</GetTrafficMirrorServiceStatusResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "Enabled" : true,
  "RequestId" : "37626066-2C6C-4B62-ADD3-498920C409C5"
}

Error codes

For a list of error codes, see Service error codes.