You need to enable JavaScript to run this app.
文档中心
私有网络

私有网络

复制全文
下载 pdf
流日志
ModifyFlowLogAttribute - 修改VPC流日志实例
复制全文
下载 pdf
ModifyFlowLogAttribute - 修改VPC流日志实例
调用 ModifyFlowLogAttribute 接口,修改流日志。​
使用说明​
  • 以下可选参数如不配置,则保持原有配置。​
  • ModifyFlowLogAttribute 为异步接口,即返回请求ID时,系统后台仍在配置。您可调用 DescribeFlowLogs 查看流日志的状态,Pending表示配置中,Active 表示修改完成。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。​
Action String 必选 示例值:ModifyFlowLogAttribute​
接口名称。当前 API 的名称为ModifyFlowLogAttribute。​
​
Version String 必选 示例值:2020-04-01​
接口版本。当前 API 的版本为 2020-04-01。​
​
FlowLogId String 必选 示例值:fl-123456****​
流日志ID。​
您可以调用 DescribeFlowLogs 接口,查询流日志的ID。​
​
FlowLogName String 可选 示例值:FlowLog-1​
流日志的名称。​
  • 长度限制为1 ~ 128个字符。​
  • 需要以字母、中文或数字开头,可包含点号(.)、下划线(_)和短横线(-)。​
​
Description String 可选 示例值:FlowLog_VPC​
流日志的描述信息。​
  • 长度限制为0~ 255个字符。​
  • 需要以字母、中文或数字开头。可包含英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。​
​
AggregationInterval Integer 可选 示例值:10​
流日志的采样间隔。取值如下​
  • 1:1分钟。​
  • 5:5分钟。​
  • 10:10分钟。​
​
ClientToken String 可选 示例值:123e4567-e89b-12d3-a456-42665544****​
客户端Token,用于保证请求幂等性。​
  • 由客户端自动生成一个参数值,确保不同请求间该参数值唯一,避免当调用API超时或服务器内部错误时,客户端多次重试导致重复性操作。​
  • 仅支持ASCII字符,且不能超过64个字符。​
  • 若不传入ClientToken,则此次API调用不进行幂等校验。​
​
TrafficPath.N String 可选 示例值:NatGW​
标识流量到达目的地的路径。取值如下:​
  • All:除以下场景外的所有流量。​
  • NatGW: 通过NAT网关的流量。​
  • Ipv4GW: 通过EIP访问公网的流量(含通过IPv4网关)。​
  • Ipv6GW: 通过IPv6网关访问公网的流量。​
  • VpnGW: 通过VPN网关的流量。​
  • GWLBEndpoint: 通过网关负载均衡终端节点的流量​
  • TransitRouter: 通过TR的流量,包括通过TR去往同地域VPC、跨地域VPC、专线网关等资源的流量。​
  • CEN: 通过CEN的流量,包括通过CEN去往同地域VPC、跨地域VPC、专线网关等资源的流量。​
  • IntraRegionVpcPeeringConnection: 通过同地域对等连接的流量。​
  • InterRegionVpcPeeringConnection: 通过跨地域对等连接的流量。​
  • DirectExchangeGateway: 通过全域网关的流量。​
​
FlowLogVersion Integer 可选 示例值:1​
VPC流日志的版本。​
  • 1:version 1。​
  • 2:version 2。​
  • 3:version 3。​
  • 4:version 4。​
​
​
​
返回参数​
下方仅列出本接口特有的返回参数。更多信息请参见返回结构。​
RequestId String 示例值:2021062415303301022514515207C4****​
请求ID。​
​
Version Integer 示例值:1​
VPC流日志的版本。​
  • 1:version 1。​
  • 2:version 2。​
  • 3:version 3。​
  • 4:version 4。​
​
​
​
请求示例​
​
GET /?Action=ModifyFlowLogAttribute&Version=2020-04-01&FlowLogId=fl-123456****&FlowLogName=FlowLog-1&AggregationInterval=10 HTTP/1.1​
Host: vpc.cn-beijing.volcengineapi.com​
X-Date: 20251121T094038Z​
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20251121/cn-beijing/vpc/request, SignedHeaders=host;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "20230604110420****100232280022D31",​
"Action": "ModifyFlowLogAttribute",​
"Version": "2020-04-01",​
"Service": "vpc",​
"Region": "cn-beijing"​
},​
"Result": {​
"RequestId": "2021062415303301022514515207C4****",​
"Version": 1​
}​
}​
​
错误码​
​
状态码​
错误码​
错误信息​
说明​
400​
DryRunOperation​
Exception raised to indicate a successfully authorized action when the DryRun flag is set to true.​
该请求设置为DryRun操作,操作授权已获得许可,但未被实际执行。​
400​
IdempotentParameterMismatch​
Arguments on this idempotent request are inconsistent with arguments used in previous request(s).​
此幂等请求的参数与前一个请求中使用的参数不一致。​
400​
InvalidDescription.Malformed​
The specified description is malformed.​
指定的描述格式不合法。请修复描述格式后重试。​
400​
InvalidDescription.Malformed​
The specified description is malformed. Ensure the maximum length of description is 255.​
指定的描述格式不合法。描述长度不能超过255个字符。​
400​
InvalidFlowLog.InvalidStatus​
The specified flow log is not in the correct status for the request.​
指定流日志所处的状态无法响应该请求。​
400​
InvalidFlowLog.InvalidVersion​
The version is not invalid.​
不支持设置到该版本。​
400​
InvalidFlowLog.TrafficPathNotSupported​
The specified flow log does not support traffic path updates.​
指定的流日志当前版本不支持修改路径过滤参数。​
400​
InvalidName.Malformed​
The specified name is malformed.​
指定的名称格式不合法。请修复名称格式后重试。​
400​
InvalidName.Malformed​
The specified name is malformed. Ensure the maximum length of name is 128.​
指定的名称格式不合法。名称长度不能超过128个字符。​
400​
InvalidParameter.ClientTokenMalformed​
The specified parameter ClientToken is malformed.​
指定的参数ClientToken格式不合法,长度不能超过64个ASCII字符。​
400​
InvalidParameter.FlowLogAggregationInterval​
The specified aggregation interval is invalid.​
指定的流日志采样间隔参数不合法。​
400​
InvalidParameter.FlowLogTrafficPath​
The specified traffic path is invalid.​
指定的流日志路径过滤参数不合法。​
404​
InvalidFlowLog.NotFound​
The specified flow log does not exist.​
指定的流日志不存在。​
412​
IdempotentProcessing​
The request uses the same client token as a previous one that is still in process.​
幂等请求处理中。​
429​
RateLimited​
Too many requests, please try again later.​
请求过多,请稍后重试。​
​
​
最近更新时间:2026.10.28 15:20:55
这个页面对您有帮助吗?
有用
有用
无用
无用