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

NAT网关

复制全文
下载 pdf
NAT会话日志
ModifySessionLog - 修改NAT会话日志
复制全文
下载 pdf
ModifySessionLog - 修改NAT会话日志
调用ModifySessionLog接口,更新NAT实例会话日志详细信息。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。​
Action string 必选 示例值:ModifySessionLog​
要执行的操作,取值:ModifySessionLog。​
​
Version string 必选 示例值:2020-04-01​
API的版本,取值:2020-04-01。​
​
SessionLogId string 必选 示例值:nsl-273w1s2v5xnuo7fap8t8****​
会话日志的ID。​
您可以调用 DescribeSessionLogs 接口,查询会话日志的ID。​
​
SessionLogName string 可选 示例值:ngw-SessionLog​
会话日志的名称。​
  • 必须以字母、数字或中文开头,可包含数字、点号(.)、下划线(_)和短横线(-)。​
  • 长度限制为1 ~ 128个字符。​
​
Description string 可选 示例值:-​
会话日志的描述。​
  • 必须以字母、数字或中文开头,可包含数字、英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。​
  • 长度限制为1 ~ 255个字符。​
​
​
​
返回参数​
下方仅列出本接口特有的返回参数。更多信息请参见返回结构。​
RequestId string 示例值:2021062415303301022514515207C4****​
请求ID。​
​
​
​
请求示例​
​
GET /?Action= ModifySessionLog&Version=2020-04-01&SessionLogId=nsl-1sm2t10buei****&SessionLogName=*** HTTP/1.1​
Host: natgateway.cn-beijing.volcengineapi.com​
ServiceName: natgateway​
Region: cn-beijing​
​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "20250429195708148093100079663938",​
"Action": "ModifySessionLog",​
"Version": "2020-04-01",​
"Service": "natgateway",​
"Region": "cn-beijing"​
},​
"Result": {​
"RequestId": "2021062415303301022514515207C4****"​
}​
}​
​
错误码​
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。​
​
状态码​
错误码​
错误信息​
说明​
400​
InvalidParameter​
A parameter specified in the request is not valid, is unsupported or cannot be used.​
该请求传入了非法或不支持的参数。​
400​
MissingParameter​
The request is missing a required parameter.​
该请求缺少必要参数。​
400​
InvalidSessionLog.InvalidStatus​
The specified session log instance is not in the correct status for the request.​
指定的NAT会话日志实例的状态无法响应该请求。​
400​
InvalidNatGateway.InvalidStatus​
The specified NAT gateway is not in the correct status for the request.​
指定的NAT网关所处的状态无法响应该请求。​
400​
InvalidDescription.Malformed​
The specified description is malformed. Ensure the maximum length of description is 255.​
指定的描述格式不合法。描述长度不能超过255个字符。​
400​
InvalidDescription.Malformed​
The specified description is malformed.​
指定的描述格式不合法。请修复描述格式后重试。​
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个字符。​
404​
InvalidSessionLog.NotFound​
The specified session log instance does not exist.​
当前NAT会话日志实例不存在。​
404​
InvalidNatGateway.NotFound​
The specified NAT gateway does not exist.​
指定的NAT网关不存在。​
500​
InternalError​
An internal error has occurred.​
发生内部错误。​
​
​
最近更新时间:2026.02.25 17:49:54
这个页面对您有帮助吗?
有用
有用
无用
无用