Starts a flow log.

Debug

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

Request parameters

Parameter Type Required? Example value Description
FlowLogId String Yes fl-l934tsa5504yuc****

The instance ID of the flow log.

RegionId String Yes cn-shanghai

The ID of the region to which the flow log belongs.

Action String No ActiveFlowLog

The name of this action.

Value: ActiveFlowLog

Response parameters

Parameter Type Example value Description
RequestId String CBBE5EBF-69C1-4395-B36B-26B7605F87EA

The ID of the request.

Examples

Request example


http(s)://[Endpoint]/? Action=ActiveFlowLog
&FlowLogId=fl-l934tsa5504yuc****
&RegionId=cn-shanghai
&<CommonParameters>

Response example

XML format

<ActiveFlowLogResponse>
	  <RequestId>CBBE5EBF-69C1-4395-B36B-26B7605F87EA</RequestId>
    </ActiveFlowLogResponse>

JSON format

{
	"RequestId":"CBBE5EBF-69C1-4395-B36B-26B7605F87EA"
}

Errors

HTTP status code Error code Error message Description
400 IllegalParam.ActiveAging The specified ActiveAging is invalid. The specified ActiveAging is invalid.
400 IllegalParam.InactiveAging The specified InactiveAging is invalid. The specified InactiveAging is invalid.
400 IllegalParam.NetflowServerIp The specified NetflowServerIp is invalid. The specified NetflowServerIp is invalid.
400 IllegalParam.NetflowServerPort The specified NetflowServerPort is invalid. The specified NetflowServerPort is invalid.
400 IllegalParam.NetflowVersion The specified NetflowVersion is invalid. The specified NetflowVersion is invalid.
400 IllegalParam.OutputType The specified OutputType is invalid. The specified OutputType is invalid.
400 IllegalParam.RegionId The specified RegionId is invalid. The specified RegionId is invalid.
400 IllegalParam.SlsRegionId The specified SlsRegionId is invalid. The specified SlsRegionId is invalid.
400 IllegalParam.Status The specified Status parameter is invalid. The specified Status is invalid.
403 FeatureNotSupport The current edition of the smart access gateway does not support this feature. The version of the SAG device does not support this function.
403 FeatureNotSupportForActiveSmartAG The current edition of the active smart access gateway does not support this feature. The version of the active SAG device does not support this function.
403 FeatureNotSupportForStandBySmartAG The current edition of the standby smart access gateway does not support this feature. The version of the standby SAG device does not support this function.
400 IncorrectStatus.FlowLog The current FlowLog instance status does not support this operation. The status of the flow log does not permit this operation.
400 DependencyViolation.FlowLog This FlowLog instance is bound to an SAG instance. The fow log has dependencies.
400 InvalidFlowLogId.NotFound The specified FlowLogId does not exist. The specified FlowLogId does not exist.
400 MissingParam.FlowLogId Specify the FlowLogId parameter. You must specify the FlowLogId.
400 OperationFailed.AssociateFlowLog The operation failed. The specified SAG instance has already been associated with another FlowLog instance. The operation failed because the SAG instance is associated with another flow log.
400 OperationUnsupported.AssociateFlowLog You cannot bind the SAG device of the current version or model to a FlowLog instance. The version or model of the SAG device does not support the associating of flow logs.
400 QuotaExceeded.Flowlog The maximum number of FlowLog instances is exceeded. The number of flow logs has reached the quota.

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