Disables a flow log. After a flow log is disabled, traffic of the specified resource is no longer captured.
Operation description
-
The DeactiveFlowLog operation is asynchronous. After you send a request, a request ID is returned, but the flow log is still being disabled in the background. You can call the DescribeFlowLogs operation to query the status of the flow log:
-
If the flow log is in the Deactivating state, the flow log is being disabled.
-
If the flow log is in the Inactive state, the flow log is disabled.
-
-
You cannot call the DeactiveFlowLog operation to disable a flow log again within a specific period of time.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the flow log. You can call the DescribeRegions operation to query the most recent region list. |
cn-qingdao |
| FlowLogId |
string |
Yes |
The ID of the flow log. |
fl-m5e8vhz2t21sel1nq**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Success |
string |
Indicates whether the operation succeeded. Valid values:
|
true |
| RequestId |
string |
The ID of the request. |
F7DDDC17-FA06-4AC2-8F35-59D2470FCFC1 |
Examples
Success response
JSON format
{
"Success": "true",
"RequestId": "F7DDDC17-FA06-4AC2-8F35-59D2470FCFC1"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IncorrectBusinessStatus.FlowLog | The business status of flowLog is incorrect. | The error message returned because you cannot create flow logs in the current business state. |
| 400 | InvalidInstanceId | Instance does not exist. | The error message returned because the specified instance does not exist. |
| 400 | InvalidStatus | Current instance status is not valid for this action. | |
| 400 | FlowLogNumberOverLimit | This user has reached the maximum instance number of flowlog. | |
| 400 | InvalidRegionId.NotFound | The RegionId provided does not exist in our records. | |
| 400 | InvalidInstanceId.NotFound | The specfied instance is not existed. | |
| 400 | IncorrectStatus.flowlog | Invalid flowlog status. | The flow log cannot be disabled because it is in an invalid state. |
| 400 | Forbidden.OperateManagedFlowLog | Authentication is failed for operate managed flowlog. | Authentication failed when operating the managed flow log. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.