All Products
Search
Document Center

ENS:AddSnatIpForSnatEntry

Last Updated:Mar 12, 2024

Adds an elastic IP address (EIP) to a Source Network Address Translation (SNAT) entry.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
SnatEntryIdstringYes

The ID of the SNAT entry.

snat-5xkzf89dndkzh8yg9stzqz9m4
SnatIpstringYes

The EIP that you want to add to the SNAT entry.

219.152.82.144

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The ID of the request.

CD1FFCC6-5E9E-5C31-A014-13D02737B0EA

Examples

Sample success responses

JSONformat

{
  "RequestId": "CD1FFCC6-5E9E-5C31-A014-13D02737B0EA"
}

Error codes

HTTP status codeError codeError message
400Invalid%sThe specified parameter %s is invalid.
400Missing%sYou must specify the parameter %s.
400ens.interface.error An error occurred while call the API.
400Forbidden.SnatIpUsedInDnatForbidden.SnatIpUsedInDnat
400InvalidParameter.SnatIpThe specified SnatIp is not found.
400SnatIpLimitExceedThe Snat pool ip too many.
400InvalidParameter.SnatIpThe snat ip already exists
400InvalidParameter.SnatNotFoundThe specified snat is not found.
400IncorretSnatEntryStatusSnat entry status blocked this operation.
400NoPermissionPermission denied.
400InvalidParameter.%sThe specified field %s invalid. Please check it again.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-01-22The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400