该接口用于修改一条已存在的自定义路由规则的配置。
您可以通过指定路由 ID(CustomRouteId)来更新其一个或多个属性。未在请求中提供的参数,其值将保持不变。
本接口的单用户 QPS 限制为 50 次/秒。超过限制,API 调用会被限流。
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。
| 参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
| Action | String | 是 | UpdateCustomRoute | 接口名称。当前 API 的名称为 UpdateCustomRoute。 |
| Version | String | 是 | 2025-05-01 | 接口版本。当前 API 的版本为 2025-05-01。 |
| 参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
| ProductId | String | 是 | 1749281594201xxxxxx | 业务 ID,用于指定目标规则生效的业务。 |
| CustomRouteId | String | 是 | cr-xxxx | 自定义路由规则 ID,可通过 ListCustomRoute接口获取。 |
| CustomRouteName | String | 否 | custom_route_test | 新的规则名称。 |
| DstIP | String | 否 | 172.12.34.5 | 代理服务器 IP 地址。 |
ProxyProtocol | String | 否 |
| 新的代理协议类型。当前支持以下协议:
|
| ProxyPort | Integer | 否 | 1086 | 新的代理服务端口。 |
ProxyUserName | String | 否 |
| 新的代理认证用户名。
|
ProxyPassword | String | 否 |
| 新的代理认证密码。
|
ProxyCipher | String | 否 |
| 新的代理加密算法。当
|
本接口无特有的返回参数。更多信息请见返回结构。
POST https://open.volcengineapi.com?Action=UpdateCustomRoute&Version=2025-05-01 { "ProductId": "1749281594201xxxxxx", "CustomRouteId": "cr-xxxx", "CustomRouteName": "custom_route_test", "DstIP": "172.12.34.5", "ProxyProtocol": "ss", "ProxyPort": 1086, "ProxyUserName": "user1", "ProxyPassword": "paasword", "ProxyCipher": "chacha20-ietf-poly1305" }
{ "ResponseMetadata": { "Action": "UpdateCustomRoute", "Region": "cn-north-1", "Service": "ACEP", "Version": "2025-05-01", "RequestId": "20230604110420****100232280022D31" } }
您可访问公共错误码,获取更多错误码信息。