You need to enable JavaScript to run this app.
文档中心
API 网关

API 网关

复制全文
下载 pdf
网关管理
UpdateGatewayCustomLog - 更新网关自定义日志配置
复制全文
下载 pdf
UpdateGatewayCustomLog - 更新网关自定义日志配置
更新网关自定义日志配置。​
请求说明​
API 网关已在全球多个地域部署服务,旨在为您提供更稳定、低延迟的访问体验。您可以通过查阅 服务地址 文档,根据业务所在地域,选择最合适的接入点。​
  • 请求方式:POST​
  • 请求地址:https://apig.cn-beijing.volcengineapi.com?Action=UpdateGatewayCustomLog&Version=2021-03-03​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
​
参数​
类型​
是否必选​
示例值​
描述​
Action​
String​
是​
UpdateGatewayCustomLog​
接口名称。当前 API 的名称为 UpdateGatewayCustomLog。​
Version​
String​
是​
2021-03-03​
接口版本。当前 API 的版本为 2021-03-03。​
Id​
String​
是​
gd8****​
网关实例 ID。​
CustomLog​
Object of CustomLog​
否​
-​
自定义日志。​
​
CustomLog​
​
参数​
类型​
是否必选​
示例值​
描述​
RequestHeaders​
Array of LogEntry​
否​
-​
请求头。长度限制为 0~20 个。​
ResponseHeaders​
Array of LogEntry​
否​
-​
响应头。长度限制为 0~20 个。​
CustomVariables​
Array of LogEntry​
否​
-​
自定义变量。长度限制为 0~20 个。​
​
LogEntry​
​
参数​
类型​
是否必选​
示例值​
描述​
Key​
String​
是​
example​
日志规则的字段值。​
AliasesInLog​
String​
是​
alias​
日志规则的字段别名。​
​
返回参数​
​
参数​
类型​
示例值​
描述​
Id​
String​
gd8****​
网关实例 ID。​
​
示例​
​
请求示例​
​
POST https://apig.cn-beijing.volcengineapi.com?Action=UpdateGatewayCustomLog&Version=2021-03-03​
Content-Type: application/json​
{​
"Id": "gd8****",​
"CustomLog": {​
"RequestHeaders": [​
{​
"Key": "example",​
"AliasesInLog": "alias"​
}​
],​
"ResponseHeaders": [​
{​
"Key": "example",​
"AliasesInLog": "alias"​
}​
],​
"CustomVariables": [​
{​
"Key": "example",​
"AliasesInLog": "alias"​
}​
]​
}​
}​
​
返回示例​
​
Content-Type: application/json​
{​
"ResponseMetadata": {​
"RequestId": "20230604110420****100232280022D31",​
"Action": "UpdateGatewayCustomLog",​
"Version": "2021-03-03",​
"Service": "apig",​
"Region": "cn-beijing"​
},​
"Result": {​
"Id": "gd8****"​
}​
}​
​
错误码​
本接口无特有的错误码。更多信息请参见 公共错误码。​
最近更新时间:2026.07.29 10:20:02
这个页面对您有帮助吗?
有用
有用
无用
无用