Disables a flow log. After a flow log is disabled, traffic information about a resource is no longer captured.
Usage notes
- The DeactiveFlowLog operation is asynchronous. After you send the request, the system returns a request
ID. However, the operation is still being performed in the system background. You
can call the DescribeFlowLogs operation to query the status of a 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 repeatedly call the DeactiveFlowLog operation to disable a flow log within the specified period of time.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DeactiveFlowLog |
The operation that you want to perform. Set the value to DeactiveFlowLog. |
RegionId | String | Yes | cn-qingdao |
The ID of the region where you want to create the flow log. You can call the DescribeRegions operation to query the most recent region list. |
FlowLogId | String | Yes | fl-m5e8vhz2t21sel1nq**** |
The ID of the flow log. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Success | String | true |
Indicates whether the operation is successful. Valid values:
|
RequestId | String | F7DDDC17-FA06-4AC2-8F35-59D2470FCFC1 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DeactiveFlowLog
&RegionId=cn-qingdao
&FlowLogId=fl-m5e8vhz2t21sel1nq****
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DeactiveFlowLogResponse>
<Success>true</Success>
<RequestId>F7DDDC17-FA06-4AC2-8F35-59D2470FCFC1</RequestId>
</DeactiveFlowLogResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"Success" : "true",
"RequestId" : "F7DDDC17-FA06-4AC2-8F35-59D2470FCFC1"
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | IncorrectStatus.flowlog | Invalid flowlog status. | The error message returned because the flow log is in an invalid state and cannot be disabled . |
For a list of error codes, visit the API Error Center.