Exclui um endereço IP NAT.
Descrição da operação
DeleteNatIp é uma operação assíncrona. Após o envio de uma solicitação, o sistema retorna um ID de solicitação, mas o endereço IP NAT ainda não é excluído. A tarefa de exclusão continua em execução em segundo plano. Você pode chamar ListNatIps para consultar o status de exclusão do endereço IP NAT:
-
Se o endereço IP NAT estiver no estado Deleting, o endereço IP NAT estará sendo excluído. Nesse estado, você pode realizar apenas operações de consulta.
-
Se o endereço IP NAT não puder ser encontrado, o endereço IP NAT foi excluído.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
vpc:DeleteNatIp |
delete |
*NatGateway
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| RegionId |
string |
Sim |
O ID da região do gateway NAT ao qual o endereço IP NAT pertence. Você pode chamar DescribeRegions para consultar o ID da região. |
cn-qingdao |
| NatIpId |
string |
Não |
O ID da instância do endereço IP NAT que você deseja excluir. |
vpcnatip-gw8y7q3cpk3fggs87**** |
| NatGatewayId |
string |
Não |
O ID da instância do gateway NAT ao qual o prefixo IP pertence. Este parâmetro é obrigatório quando você exclui um prefixo IP. |
ngw-gw8v16wgvtq26vh59**** |
| Ipv4Prefix |
string |
Não |
O prefixo IP a ser excluído. |
192.168.0.0/28 |
| DryRun |
boolean |
Não |
Especifica se deve ser realizado um dry run. Valores válidos:
|
false |
| ClientToken |
string |
Não |
O token de cliente 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 valor de ClientToken pode conter apenas caracteres ASCII. Nota
Se você não especificar este parâmetro, o sistema usará o RequestId da solicitação de API como o ClientToken. O RequestId pode ser diferente para cada solicitação de API. |
5A2CFF0E-5718-45B5-9D4D-70B3FF3898 |
| RegionId |
string |
Sim |
O ID da região do gateway NAT ao qual o endereço IP NAT pertence. Você pode chamar DescribeRegions para consultar o ID da região. |
cn-qingdao |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| RequestId |
string |
O ID da solicitação. |
E9AD97A0-5338-43F8-8A80-5E274CCBA11B |
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "E9AD97A0-5338-43F8-8A80-5E274CCBA11B"
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | IncorrectStatus.NatIp | The status of %s [%s] is incorrect. | The status of NatIp is incorrect. |
| 400 | OperationFailed.DefaultNatIp | The operation is failed because of default NatIP can not be deleted. | You cannot delete the default NAT IP address. |
| 400 | DependencyViolation.NatIp | The specified resource of %s depends on %s, so the operation cannot be completed. | You cannot perform the operation because the NAT gateway is associated with a NAT IP address. |
| 400 | IncorrectStatus.NatGateway | The status of %s [%s] is incorrect. | |
| 400 | DependencyViolation.FullNatEntry | The fullnat entry depends on this nat ip,so the operation cannot be completed. | The operation failed because the FULLNAT entry depends on the NAT IP. |
| 400 | IllegalParam.NatIp | The param of %s is illegal. | The parameter NatIp is illegal. |
| 400 | Mismatch.Ipv4PrefixAndNatIpCidr | The %s and %s are mismatched. | |
| 400 | Mismatch.Ipv4PrefixAndCidrReservations | The %s and %s are mismatched. | The reserved network segments of the Ipv4Prefix and VSwitch do not match. |
| 400 | IllegalParam.Ipv4Prefix | The param of %s is illegal. | The parameter Ipv4Prefix is illegal. |
| 400 | DependencyViolation.%s | The specified resource of [%s] depends on [%s], so the operation cannot be completed. | The specified resource of [%s] depends on [%s], so the operation cannot be completed. |
| 400 | DependencyViolation.SnatEntry | The specified resource of %s depends on %s, so the operation cannot be completed. | The SnatEntry associated with NatIp or Ipv4Prefix cannot be deleted. Delete the dependent Snat and delete it again. |
| 400 | DependencyViolation.Ipv4Prefix | The specified resource of %s depends on %s, so the operation cannot be completed. | NatIp belongs to Ipv4Prefix and cannot be deleted separately. Please delete the Ipv4Prefix directly. |
| 404 | InvalidRegionId.NotFound | The specified RegionId does not exist in our records. | |
| 404 | ResourceNotFound.NatIp | The specified resource of %s is not found. | |
| 404 | ResourceNotFound.NatGateway | The specified resource of %s is not found. | |
| 404 | ResourceNotFound.NatIpCidr | The specified resource of %s is not found. | |
| 404 | ResourceNotFound.%s | The specified resource of %s is not found. | The specified resource of %s is not found. |
| 404 | ResourceNotFound.Ipv4Prefix | The specified resource of %s is not found. | Resource Ipv4Prefix not found, please check that the Ipv4Prefix exists. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.