Modifies a flow log.

Usage notes

  • The ModifyFlowLogAttribute 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 Modifying state, the flow log is being modified.
    • If the flow log is in the Active or Inactive state, the flow log is modified.
  • You cannot repeatedly call the ModifyFlowLogAttribute operation to modify a flow log within the specified period of time.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ModifyFlowLogAttribute

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

RegionId String Yes cn-qingdao

The region ID of 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.

FlowLogName String No myFlowlog

The new name for the flow log.

The name must be 2 to 128 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter.

Description String No This is my Flowlog.

The new description for the flow log.

The description must be 2 to 256 characters in length. It must start with a letter but cannot start with http:// or https://.

AggregationInterval Integer No 1

The new sampling interval for the flow log. Unit: seconds. Valid values: 1, 5, and 10.

Response parameters

Parameter Type Example Description
Success String true

Indicates whether the operation was successful. Valid values:

  • true: yes
  • false: no
RequestId String F7DDDC17-FA06-4AC2-8F35-59D2470FCFC1

The ID of the request.


Sample requests

&Description=This is my Flowlog.
&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK


JSON format

HTTP/1.1 200 OK

  "Success" : "true",
  "RequestId" : "F7DDDC17-FA06-4AC2-8F35-59D2470FCFC1"

Error codes

HttpCode Error code Error message Description
400 IllegalParam.AggregationInterval The param of aggregationInterval is illegal. The error message returned because the sampling interval is invalid.

For a list of error codes, visit the API Error Center.