ModifyFlowLogAttribute_专有网络_API文档

插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

接口说明

  • ModifyFlowLogAttribute 接口属于异步接口,即系统会返回一个请求 ID,但该流日志尚未修改成功,系统后台的修改任务仍在进行。您可以调用 DescribeFlowLogs 查询流日志的修改状态:
    • 当流日志处于 Modifying 状态时,表示流日志正在修改中。
    • 当流日志处于 Active 或者 Inactive 状态时,表示流日志修改成功。
  • ModifyFlowLogAttribute 接口不支持并发修改同一个流日志的属性。

流控信息

请求速率为600/60(s)。

授权信息

如下是此API对应的授权信息,用于RAM权限策略语句的Action元素中,为RAM用户或RAM角色授予调用此API的权限。请通过 RAM 访问控制设置,使用方法可参考访问控制帮助文档

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
vpc:ModifyFlowLogAttribute
Update
FlowLog
acs:vpc:{#regionId}:{#accountId}:flowlog/{#FlowLogId}

请求参数

字段名称字段详情
RegionIdstring

流日志所属的地域 ID。展开详情

示例值:cn-qingdao参考取值来源:
    DescribeRegions
FlowLogIdstring

流日志 ID。

示例值:fl-m5e8vhz2t21sel1nq****参考取值来源:
    CreateFlowLog
    DescribeFlowLogs
FlowLogNamestring

要修改的流日志名称。展开详情

示例值:myFlowlog参考取值来源:
    DescribeFlowLogs
Descriptionstring

要修改的流日志描述。展开详情

示例值:This is my Flowlog.
AggregationIntervalinteger<int32>

要修改的流日志的采样间隔。单位:分钟。取值:1510

示例值:1
IpVersionstring

流日志采集流量的 IP 地址类型。

示例值:IPv4

返回参数

字段名称字段详情
Successstring

操作是否成功。取值:展开详情

示例值:true
RequestIdstring

请求 ID。

示例值:F7DDDC17-FA06-4AC2-8F35-59D2470FCFC1

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
IncorrectBusinessStatus.FlowLog
The business status of flowLog is incorrect.诊断
400
InvalidInstanceId
Instance does not exist.诊断
400
ProjectOrLogstoreNotExist
The specified project or logstore does not exist.诊断
400
SourceProjectNotExist
The Source Project or logstore does not exist.诊断
400
Unauthorized
This api does not support sub user or role.诊断
400
InvalidInstanceId.NotFound
The specfied instance is not existed.诊断
400
RuleExist
The rule has already existed.诊断
400
InvalidHdMonitorStatus
Current instance status is not valid for this action.诊断
400
FlowLogNumberOverLimit
This user has reached the maximum instance number of flowlog.诊断
400
InvalidTrafficType.NotFound
Invalid traffic type.诊断
400
IncorrectStatus.flowlog
Invalid flowlog status.诊断
400
InvalidName.Malformed
The specified name is not valid.诊断
400
IllegalParam.AggregationInterval
The param of aggregationInterval is illegal.诊断
400
Forbidden.OperateManagedFlowLog
Authentication is failed for operate managed flowlog.诊断
400
UnsupportedFeature.IpVersion
The ipversion type is not supported.诊断
400
IllegalParam.IpVersion
The parameter of IpVersion is illegal.诊断
400
OperationDenied.NisTrafficAnalyzerAggregationIntervalMismatch
The sampling interval of the FlowLog is greater than the sampling interval of the NIS Traffic Analyzer.诊断
400
OperationDenied.NisTrafficAnalyzerNotActive
The specified NIS Traffic Analyzer is not enabled.诊断
400
OperationDenied.NisTrafficAnalyzerNotFound
The specified NIS Traffic Analyzer does not exist.诊断
400
OperationFailed.InternalError
The request processing has failed due to some unknown error.诊断
400
OperationDenied.InvalidInstanceDeliverScope
When modifying the delivery purpose of the FlowLog instance or starting and stopping NIS traffic analysis, you specify the type of delivery that is not allowed.诊断

变更历史

变更时间变更内容概要操作
2025-02-26
删除请求参数TrafficAnalyzerId
删除请求参数EnableTrafficAnalyze
删除请求参数DisableLogDelivery
2025-02-26
变更错误码400
2025-02-21
变更错误码400
新增请求参数TrafficAnalyzerId
新增请求参数EnableTrafficAnalyze
新增请求参数DisableLogDelivery
2024-11-20
变更错误码400
2024-09-25
变更错误码400
新增请求参数IpVersion
2022-12-16
变更错误码400
2021-11-17
变更错误码400
新增请求参数AggregationInterval

相关示例