Modifies the attributes of a flow log.

Debug

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

Request parameters

Parameter Type Required? Example value Description
Description String Yes flow log 1

The description of the flow log.

FlowLogId String Yes fl-7a56mar1kfw9vj****

The instance ID of the flow log.

InactiveAging Integer Yes 15

The time interval between two flow log records for non-persistent network connections. Default value: 15. Unit: seconds

LogstoreName String Yes ssfghgh

The Logstore where the flow log is stored. This parameter is required when the value of the OutputType parameter is sls or all.

Name String Yes DDE

The name of the flow log.

NetflowServerIp String Yes 192.168.0.2

The IP address of the NetFlow server where the flow log is stored. This parameter is required when the value of the OutputType parameter is netflow or all.

NetflowServerPort Integer Yes 9995

The NetFlow server port to which the flow log is published. Default value: 9995. This parameter is required when the value of the OutputType parameter is netflow or all.

NetflowVersion String Yes V9

The NetFlow protocol used when the flow log is published. Valid values: V5 | V9 | V10. Default value: V9. This parameter is required when the value of the OutputType parameter is netflow or all.

OutputType String Yes sls

The type of the flow log.

  • sls: Store the flow log in Alibaba Cloud Log Service.
  • netflow: Store the flow log in a specified NetFlow server.
  • all: Store the flow log in Log Service and NetFlow server.
ProjectName String Yes ddrrgt

The Project where the flow log is stored. This parameter is required when the value of the OutputType parameter is sls or all.

RegionId String Yes cn-shanghai

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

SlsRegionId String Yes cn-shanghai

The region ID of the Log Service. This parameter is required when the value of the OutputType parameter is sls or all.

Action String No ModifyFlowLogAttribute

The name of this action.

Value: ModifyFlowLogAttribute

ActiveAging Integer No 300

The time interval between two flow log records for persistent network connections. Default value: 300. Unit: seconds

Response parameters

Parameter Type Example value Description
RequestId String AAC70A63-1A2E-4857-9CA3-5DE5B4041D1E

The ID of the request.

Examples

Request example


http(s)://[Endpoint]/? Action=ModifyFlowLogAttribute
&Description=flow log 1
&FlowLogId=fl-7a56mar1kfw9vj****
&InactiveAging=15
&LogstoreName=ssfghgh
&Name=DDE
&NetflowServerIp=192.168.0.2
&NetflowServerPort=9995
&NetflowVersion=V9
&OutputType=sls
&ProjectName=ddrrgt
&RegionId=cn-shanghai
&SlsRegionId=cn-shanghai
&<CommonParameters>

Response example

XML format

<ModifyFlowLogAttributeResponse>
	  <RequestId>AAC70A63-1A2E-4857-9CA3-5DE5B4041D1E</RequestId>
    </ModifyFlowLogAttributeResponse>

JSON format

{
	"RequestId":"AAC70A63-1A2E-4857-9CA3-5DE5B4041D1E"
}

Errors

HTTP status code Error code Error message Description
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.
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.OutputType The specified OutputType is invalid. The specified OutputType 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 MissingParam.NetflowServerIp Specify the NetflowServerIp parameter. You must specify the NetflowServerIp.
400 MissingParam.NetflowServerPort Specify the NetflowServerPort parameter. You must specify the NetflowServerPort.
400 MissingParam.NetflowVersion Specify the NetflowVersion parameter. You must specify the NetflowVersion.
400 IllegalParam.SlsRegionId The specified SlsRegionId is invalid. The specified SlsRegionId is invalid.
400 MissingParam.SlsRegionId Specify the SlsRegionId parameter. You must specify the SlsRegionId.
400 IllegalParam.RegionId The specified RegionId is invalid. The specified RegionId 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.

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