You need to enable JavaScript to run this app.
NAT Gateway

NAT Gateway

Copy page
Download PDF
Session log
ModifySessionLog - Modifying a NAT session log
Copy page
Download PDF
ModifySessionLog - Modifying a NAT session log
Call the ModifySessionLog API to update details for a NAT instance session log.​
Debug​
API Explorer
You can initiate calls online through API Explorer without paying attention to the signature generation process and quickly obtain the call results.
​
Request parameters​
The following only details request parameters specific to this API and key common parameters. For more information, see Common parameters.​
Action string required Example: ModifySessionLog​
The action that you want to perform. Value: ModifySessionLog.​
​
Version string required Example: 2020-04-01​
The API version. Value: 2020-04-01.​
​
SessionLogId string required Example: nsl-273w1s2v5xnuo7fap8t8****​
The ID of the session log.​
You can call the DescribeSessionLogs API to query the ID of the session log.​
​
SessionLogName string optional Example: ngw-SessionLog​
The name of the session log.​
  • Must start with a letter, number or Chinese character. May include numbers, periods (.), underscores (_), and hyphens (-).​
  • Must be 1 to 128 characters in length.​
​
Description string optional Example: -​
The description of the session log.​
  • Must start with a letter, number or Chinese character. May include numbers, commas (,), periods (.), underscores (_), spaces ( ), equal signs (=), hyphens (-), Chinese commas (,), and Chinese periods (。).​
  • Must be 1 to 255 characters in length.​
​
​
​
Response parameters​
The following only details response parameters specific to this API. For more information, see Response structure.​
RequestId string Example: 2021062415303301022514515207C4****​
Request ID.​
​
​
​
Request examples​
​
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​
​
​
Response examples​
​
{​
"ResponseMetadata": {​
"RequestId": "20250429195708148093100079663938",​
"Action": "ModifySessionLog",​
"Version": "2020-04-01",​
"Service": "natgateway",​
"Region": "cn-beijing"​
},​
"Result": {​
"RequestId": "2021062415303301022514515207C4****"​
}​
}​
​
Error codes​
The table below describes the error codes for this API that are associated with business logic. For details, see Common error codes.​
​
Status code​
Error codes​
Error message​
Description​
400​
InvalidParameter​
A parameter specified in the request is not valid, is unsupported or cannot be used.​
The request contains invalid or unsupported parameters.​
400​
MissingParameter​
The request is missing a required parameter.​
This request does not contain required parameters.​
400​
InvalidSessionLog.InvalidStatus​
The specified session log instance is not in the correct status for the request.​
The specified NAT session log instance cannot respond to this request due to its status.​
400​
InvalidNatGateway.InvalidStatus​
The specified NAT gateway is not in the correct status for the request.​
The specified NAT gateway cannot respond to this request due to its status.​
400​
InvalidDescription.Malformed​
The specified description is malformed. Ensure the maximum length of description is 255.​
The format of specified description is invalid. A description must not exceed 255 characters.​
400​
InvalidDescription.Malformed​
The specified description is malformed.​
The format of specified description is invalid. Correct the description format and retry.​
400​
InvalidName.Malformed​
The specified name is malformed.​
The format of the specified name is invalid. Correct the name format and retry.​
400​
InvalidName.Malformed​
The specified name is malformed. Ensure the maximum length of name is 128.​
The format of specified name is invalid. A name must not exceed 128 characters in length.​
404​
InvalidSessionLog.NotFound​
The specified session log instance does not exist.​
The current NAT session log instance does not exist.​
404​
InvalidNatGateway.NotFound​
The specified NAT gateway does not exist.​
The specified NAT gateway does not exist.​
500​
InternalError​
An internal error has occurred.​
An internal error occurred.​
​
Last updated: 2026.03.16 18:50:41