Creates a flow log for a CEN instance.


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

Request parameters

Parameter Type Required? Example value Description
CenId String Yes cen-7qthudw0ll6jmc****

The ID of the CEN instance.

LogStoreName String Yes FlowLogStore

The Logstore that stores the captured traffic data.

ProjectName String Yes FlowLogProject

The Project that stores the monitored traffic data.

RegionId String Yes cn-hangzhou

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

Action String No CreateFlowlog

The name of this action. Value: CreateFlowLog.

ClientToken String No 02fb3da4-130e-11e9-8e44-0016e04115b

The client token used to guarantee the idempotence of the request. The value of this parameter is generated by the client and must be unique among different requests. It must be 1 to 64 ASCII characters in length.

Description String No This is my Flowlog.

The description of 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://.

FlowLogName String No myFlowlog

The name of the flow log. The name must be 2 to 128 characters in length and can contain letters, numbers, periods (.), underscores (_), and hyphens (-). The name must start with a letter, but cannot start with http:// or https://.

Response parameters

Parameter Type Example value Description
FlowLogId String flowlog-m5evbtbpt****

The ID of the flow log.

RequestId String 54B48E3D-DF70-471B-AA93-08E683A1B457

 The ID of the request.

Success String true

Indicates whether the operation is successful. Valid values:

  • true: The operation is successful.
  • false: The operation is unsuccessful.


Request example

http(s)://[Endpoint]/? Action=CreateFlowlog

Response example

XML format


JSON format



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