Enables a flow log. After the flow log is enabled, it starts to capture traffic information of a specified resource.

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

Request parameters

Parameter Type Required Example Description
Action String Yes ActiveFlowLog

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

FlowLogId String Yes fl-m5evbtbptxxxxxxxxxxxx

The ID of the flow log.

RegionId String Yes cn-qingdao

The region to which the flow log belongs. You can call the DescribeRegions operation to query region IDs.

Response parameters

Parameter Type Example Description
RequestId String F7DDDC17-FA06-4AC2-8F35-59D2470FCFC1

The ID of the request.

Success String 111

Examples

Sample requests

https://vpc.aliyuncs.com/?Action=ActiveFlowLog
&RegionId=cn-qingdao
&FlowLogId=fl-m5evbtbptxxxxxxxxxxxx
&Common request parameter

Sample success responses

XML format

<ActiveFlowLog>   
     <RequestId>04F0F334-1335-436C-A1D7-6C044FExxxxx</RequestId>
</ActiveFlowLog>

JSON format

{
	"RequestId":"04F0F334-1335-436C-A1D7-6C044FExxxxx"
}

Error codes

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