Associates a flow log with a Smart Access Gateway (SAG) instance.

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.

SmartAGId String Yes sag-39u6j9a49i03wk****

The ID of the SAG instance to be associated.

Action String No AssociateFlowLog

The name of this action.

Value: AssociateFlowLog

Response parameters

Parameter Type Example value Description
RequestId String A6E1680B-B34F-4BB7-B504-F8ED675E721C

The ID of the request.

Examples

Request example


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

Response example

XML format

<AssociateFlowLogResponse>
	  <RequestId>A6E1680B-B34F-4BB7-B504-F8ED675E721C</RequestId>
    </AssociateFlowLogResponse>

JSON format

{
	"RequestId":"A6E1680B-B34F-4BB7-B504-F8ED675E721C"
}

Errors

HTTP status code Error code Error message Description
400 DependencyViolation.FlowLog This FlowLog instance is bound to an SAG instance. The flow log has dependencies.
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 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.
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.
400 InvalidSmartAGId.NotFound The specified SmartAGId does not exist. The specified SmartAGId does not exist.
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.

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