Queries the status of the traffic mirror feature.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:GetTrafficMirrorServiceStatus |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClientToken |
string |
No |
The client token used to ensure the idempotence of the request. You can use the client to generate a token, but you must make sure that the token is unique across requests. The client token can contain only ASCII characters. Note
If you do not specify this parameter, the system uses the request ID as the client token. The request ID may be different for each request. |
123e4567-e89b-12d3-a456-426655440000 |
| RegionId |
string |
No |
The ID of the region to which the mirrored traffic belongs. You can call the DescribeRegions operation to query the latest region list. |
cn-hangzhou |
| RegionId |
string |
No |
The ID of the region to which the mirrored traffic belongs. You can call the DescribeRegions operation to query the latest region list. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned data. |
||
| Enabled |
boolean |
Indicates whether the traffic mirror feature is enabled. Valid values:
|
true |
| RequestId |
string |
The request ID. |
37626066-2C6C-4B62-ADD3-498920C409C5 |
Examples
Success response
JSON format
{
"Enabled": true,
"RequestId": "37626066-2C6C-4B62-ADD3-498920C409C5"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | Forbbiden | User not authorized to operate on the specified resource. | User not authorized to operate on the specified resource. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.