Modifica uma entrada DNAT especificada.
Descrição da operação
-
ModifyForwardEntry é uma operação assíncrona. Após o envio de uma solicitação, o sistema retorna um ID de solicitação, mas a entrada DNAT ainda não foi modificada. A tarefa de modificação é executada em segundo plano. Você pode chamar DescribeForwardTableEntries para consultar o status da entrada DNAT:
-
Se a entrada DNAT estiver no estado Pending, a entrada DNAT está sendo modificada. Nesse estado, você pode realizar apenas operações de consulta.
-
Se a entrada DNAT estiver no estado Available, a entrada DNAT foi modificada.
-
-
ModifyForwardEntry não suporta modificações simultâneas de uma entrada DNAT na mesma tabela DNAT.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
vpc:ModifyForwardEntry |
update |
*ForwardTable
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| ForwardTableId |
string |
Sim |
O ID da tabela DNAT à qual a entrada DNAT pertence. |
ftb-8vbx8xu2lqj9qb334**** |
| ForwardEntryId |
string |
Sim |
O ID da entrada DNAT a ser modificada. |
fwd-8vbn3bc8roygjp0gy**** |
| ExternalIp |
string |
Não |
|
116.85.XX.XX |
| ExternalPort |
string |
Não |
|
80 |
| InternalIp |
string |
Não |
|
10.0.0.78 |
| InternalPort |
string |
Não |
|
80 |
| IpProtocol |
string |
Não |
O tipo de protocolo. Valores válidos:
|
TCP |
| ForwardEntryName |
string |
Não |
O novo nome da entrada DNAT. O nome deve ter de 2 a 128 caracteres e deve começar com uma letra ou um caractere chinês. Não pode começar com |
test |
| RegionId |
string |
Sim |
O ID da região do gateway NAT. Você pode chamar DescribeRegions para consultar o ID da região. |
cn-hangzhou |
| ClientToken |
string |
Não |
O token do cliente que é usado para garantir a idempotência da solicitação. Você pode usar o cliente para gerar o token, mas deve garantir que o token seja exclusivo entre diferentes solicitações. O token pode conter apenas caracteres ASCII. Nota
Se você não especificar este parâmetro, o sistema usará automaticamente o RequestId da solicitação de API como o ClientToken. O RequestId pode ser diferente para cada solicitação de API. |
123e4567-e89b-12d3-a456-426655440000 |
| PortBreak |
boolean |
Não |
Especifica se a quebra de porta deve ser ativada. Valores válidos:
|
false |
| DryRun |
boolean |
Não |
Especifica se deve ser realizado um dry run. Valores válidos:
|
false |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
O ID da solicitação. |
||
| RequestId |
string |
O ID da solicitação. |
2315DEB7-5E92-423A-91F7-4C1EC9AD97C3 |
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "2315DEB7-5E92-423A-91F7-4C1EC9AD97C3"
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | UnsupportedFeature.PortSegment | The feature of PortSegment is not supported. | |
| 400 | ExclusiveParam.%sAnd%s | The param of %s and %s are mutually exclusive. | You cannot specify %s and %s at the same time. |
| 400 | InvalidIp.NotInNatgw | The specified Ip not belong to natgateway. | |
| 400 | DuplicatedParam.InternalPort | The param of %s is duplicated. | Duplicate or occupied InternalPort parameter |
| 400 | DuplicatedParam.ExternalPort | The param of %s is duplicated. | The DNAT public network port has been used repeatedly. |
| 400 | OperationFailed.AnyPortConfig | Operation failed because any port correspondence any protocol | The operation failed. There is a conflict with another entry, any port or any protocol type. |
| 400 | OperationUnsupported.ForwardEntry | Duplicated destination ip port is unsupported. | You cannot specify duplicate destination IP addresses or destination ports. |
| 400 | IncorrectStatus.NatIp | The status of %s [%s] is incorrect. | The status of NatIp is incorrect. |
| 400 | Forbidden.IpHasBeenUsedInSnat | The source ip can't be used. Because it has been used in snat. | |
| 400 | IncorrectStatus.ForwardEntry | The status of %s [%s] is incorrect. | The DNAT entry to be deleted is in an invalid state. |
| 400 | InvalidExternalIp.Malformed | The specified ExternalIp is not a valid IP address. | |
| 400 | InvalidInternalIp.Malformed | The specified InternalIp is not a valid IP address. | |
| 400 | InvalidExternalPort.Malformed | The specified ExternalPort is not a valid port. | |
| 400 | InvalidInternalPort.Malformed | The specified InternalPort is not a valid port. | |
| 400 | Forbidden.DestnationIpOutOfVpcCIDR | The specified Destination Ip is Out of VPC CIDR. | |
| 400 | InvalidProtocal.ValueNotSupported | The specified IpProtocol does not support. | |
| 400 | IncorretForwardEntryStatus | Some Forward entry status blocked this operation.. | |
| 400 | QuotaExceeded | Forward entry quota exceeded in this route table. | A route table can only have 200 custom route entries at most. |
| 400 | ForwardEntry.Duplicated | The specified ExternalIp, IpProtocol, ExternalPort,InternalIp, InternalPort is duplicated | |
| 400 | Forbidden.ExternalIp.UsedInSnatTable | The specified ExternalIp is already used in SnatTable | |
| 400 | Forbidden.Already.Bounded | The specified instance already bounded | |
| 400 | InvalidIp.NotFound | The specified ip does not exist. | |
| 400 | InvalidParameter.Name.Malformed | The specified Name is not valid. | |
| 400 | IncorretStatus.ForwardEntry | The Specified forwardEntry is not stable status, can not operation | |
| 400 | IllegalParam.AnyPortNotZero | Any port port must be zero. | You must set the destination port and source port to 0 when IpProtocol is set to Any. |
| 400 | Duplicated.DestinationPort | The specified param DestinationPort is duplicated. | |
| 400 | InvalidForwardEntryId.NotFound | Specified forward entry ID does not exist | |
| 400 | OperationUnsupported.EipInBinding | Create snat entry with eip in associating status is unsupported. | You cannot use an associated EIP when you create an SNAT entry. |
| 400 | QuotaExceeded.ForwardEntrySessionManytoOne | The dnat session quota is exceed. | The number of DNAT sessions exceeds the upper limit. |
| 400 | OperationFailed.ForwardEntryNotAllowSrcIpEqualDstIp | The source IP of forward entry is not allowed to equal destination IP. | The public IP address of the DNAT entry is not allowed to be equal to the private IP address. |
| 404 | ResourceNotFound.NatIp | The specified resource of %s is not found. | |
| 404 | ResourceNotFound.ForwardEntry | The specified resource of %s is not found. | The specified %s resource does not exist. |
| 404 | InvalidRegionId.NotFound | The specified RegionId does not exist in our records. | |
| 404 | InvalidForwardEntryId.NotFound | Specified forward entry ID does not exist | |
| 404 | InvalidExternalIp.NotFound | Specified External Ip address does not found on the VRouter | |
| 404 | InvalidForwardTableId.NotFound | Specified forward table does not exist. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.