Modifies the Source Network Address Translation (SNAT) configuration of the WAN port on an SCG5000 or SCG5000-5G device whose version is 3.4.2 or later.
Operation description
You can modify the SNAT configuration of the WAN port only on SCG5000 and SCG5000-5G devices whose version is 3.4.2 or later.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
smartag:UpdateSmartAccessGatewayWanSnat | Write |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
SagInsId | string | Yes | The ID of the Smart Access Gateway (SAG) instance. | sag-jwbtsyzom0ol4v**** |
SagSn | string | Yes | The serial number of the SAG device. | sagf4dk**** |
Snat | string | Yes | Specifies whether to enable SNAT. Valid values:
| 0 |
RegionId | string | Yes | The region ID of the SAG instance. You can call the DescribeRegions operation to query the most recent region list. | cn-shanghai |
CrossAccount | boolean | No | Specifies whether to query only the SAG instances that belong to another Alibaba Cloud account. Valid values:
| false |
ResourceUid | string | No | The ID of the Alibaba Cloud account to which the SAG instance belongs. | 109790620697**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"Code": "200",
"Success": true,
"RequestId": "FAD1E4CB-52A5-520B-BE14-A78F491FBD9C",
"Message": "Successful"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | InvalidId.SMARTAG | The specified smart access gateway instance id does not exist. | The specified SAG instance ID is invalid. |
400 | InternalError | Internal server error | - |
400 | GATEWAY.InvalidSN | The specified gateway serial number does not exist. | - |
400 | MissParameter.GatewayId | The input parameter GatewayId that is mandatory for processing this model is not supplied. | - |
400 | MissParameter.Snat | The input parameter Snat that is mandatory for processing this model is not supplied. | - |
400 | InvalidParameter.Snat | The input parameter Snat is illegal, please check your input. | - |
400 | FeatureNotSupport | Cloud Box Not Support the Feature | - |
400 | InvalidSpec.FeatureNotSupport | The current edition of the cloudbranch does not support this feature. | - |
400 | DeviceNotExist | The specified device does not exist | - |
For a list of error codes, visit the Service error codes.