You need to enable JavaScript to run this app.
导航
ModifyTransitRouterFlowLogAttributes
最近更新时间:2025.05.13 08:43:10首次发布时间:2025.05.13 08:43:10
我的收藏
有用
有用
无用
无用

调用ModifyTransitRouterFlowLogAttributes接口,修改TR流日志的名称、描述或采集周期。

调试

请求参数

名称类型是否必选示例值描述
ActionStringModifyTransitRouterFlowLogAttributes要执行的操作,取值为ModifyTransitRouterFlowLogAttributes。
VersionString2020-04-01API版本信息,当前版本为2020-04-01。
TransitRouterFlowLogIdStringtr-fl-372whz43lbwnb28twj****TR流日志的ID。

TransitRouterFlowLogName

String

trflowlog

TR流日志的名称。

  • 必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:点号(.)、下划线(_)和短横线(-)。

  • 长度限制为1 ~ 128个字符。

  • 不传入该参数或该参数不传入数值时,表示保持原有名称不变。

Description

String

This tr flowlog is used for test.

TR流日志的描述信息。

  • 必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。

  • 长度限制为0 ~ 255个字符。

  • 不传入该参数或该参数不传入数值时,表示保持原有描述不变。

AggregationInterval

Integer

10

TR流日志的采集周期,也是TR聚合日志数据并上报给TLS的周期。支持传入1和10,单位为分钟。

返回参数

本接口无特有的返回参数。更多信息请见返回结构

请求示例

GET /?Action=ModifyTransitRouterFlowLogAttributes&Version=2020-04-01&RTransitRouterFlowLogId=tr-fl-372whz43lbwnb28twj****&AggregationInterval=1 HTTP/1.1
Host: open.volcengineapi.com
ServiceName: transitrouter
Region: cn-guangzhou

返回示例

{
    "ResponseMetadata": {
        "RequestId": "2021062415303301022514515207C4****",
        "Action": "ModifyTransitRouterFlowLogAttributes",
        "Version": "2020-04-01",
        "Service": "transitrouter",
        "Region": "cn-guangzhou"
    },
    "Result": {}
}

错误码

下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。

HttpCode错误码错误信息描述
400InvalidDescription.MalformedThe specified description is malformed.指定的描述格式不合法。请修复描述格式后重试。

400

InvalidDescription.TooLong

The specified description is malformed. Ensure the maximum length of description is 255.

指定的描述格式不合法。描述长度不能超过255个字符。

400InvalidName.MalformedThe specified name is malformed.指定的名称格式不合法。请修复名称格式后重试。
400InvalidName.TooLongThe specified name is malformed. Ensure the maximum length of name is 128.指定的名称格式不合法。名称长度不能超过128个字符。
400InvalidTransitRouter.InvalidStatusThe specified Transit Router is not in the correct status for the request.指定的中转路由器所处状态无法响应该请求。
400InvalidTransitRouterFlowLog.AggregationIntervalMalformedThe specified aggregation interval is malformed.指定的流日志采集周期不合法。
400InvalidTransitRouterFlowLog.InvalidStatusThe specified Transit Router flow log is not in the correct status for the request.指定的流日志所处状态无法响应该请求。
404InvalidTransitRouterFlowLog.NotFoundThe specified Transit Router Flow log does not exist.指定的流日志不存在。