Adds an elastic IP address (EIP) to a Source Network Address Translation (SNAT) entry.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:AddSnatIpForSnatEntry |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SnatEntryId |
string |
Yes |
The ID of the SNAT entry. |
snat-5xkzf89dndkzh8yg9stzqz9m4 |
| SnatIp |
string |
Yes |
The EIP specified in the SNAT entry. |
219.152.XX.XX |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The ID of the request. |
CD1FFCC6-5E9E-5C31-A014-13D02737B0EA |
Examples
Success response
JSON format
{
"RequestId": "CD1FFCC6-5E9E-5C31-A014-13D02737B0EA"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Invalid%s | The specified parameter %s is invalid. | |
| 400 | Missing%s | You must specify the parameter %s. | |
| 400 | ens.interface.error | An error occurred while call the API. | |
| 400 | Forbidden.SnatIpUsedInDnat | Forbidden.SnatIpUsedInDnat | |
| 400 | InvalidParameter.SnatIp | The specified SnatIp is not found. | |
| 400 | SnatIpLimitExceed | The Snat pool ip too many. | |
| 400 | InvalidParameter.SnatNotFound | The specified snat is not found. | The specified DNAT rule does not exist. |
| 400 | IncorretSnatEntryStatus | Snat entry status blocked this operation. | Snat status is not correct, please check Snat status. |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.