Activates a flow log to capture the traffic of the specified resource.

Debug

Use OpenAPI Explorer to perform debug operations and generate SDK code examples.

Request parameters

Parameter Type Required? Example value Description
Action String Yes ActiveFlowLog

The name of this action. Value: ActiveFlowLog.

FlowLogId String Yes fl-m5evbtbptxxxxxxxxxxxx

The ID of the flow log.

RegionId String Yes cn-qingdao

The ID of the region to which the flow log belongs. To query the region ID, call DescribeRegions.

Response parameters

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

The ID of the request.

Examples

Request example


https://vpc.aliyuncs.com/?Action=ActiveFlowLog
&RegionId=cn-qingdao
&FlowLogId=fl-m5evbtbptxxxxxxxxxxxx
&<CommonParameters>

Response example

XML format

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

JSON format

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

Errors

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