Home  >  Article  >  Operation and Maintenance  >  Convert the public IP of an ECS instance with a VPC network type to an elastic public IP

Convert the public IP of an ECS instance with a VPC network type to an elastic public IP

坏嘻嘻
坏嘻嘻Original
2018-09-26 11:23:333181browse

The content of this article is about converting the public IP of an ECS instance with a private network VPC to an elastic public IP. It has certain reference value and friends in need can refer to it. I hope it helps you.

ConvertNatPublicIpToEip

Description

When calling this interface, you need to pay attention:

Only supports VPC Network type ECS instance.

Only supports ECS instances whose status is Stopped or Running.

Instances with a public network bandwidth of 0 Mbps are not supported. At this time, the ECS instance is not assigned a public network IP (NatPublicIp).

ECS instances that have been bound to an EIP are not supported.

ECS instances with configuration changes that have not taken effect are not supported.

ECS instances that are about to expire within 24 hours are not supported.

After the public IP (NatPublicIp) is converted to EIP, the EIP will be billed separately. For the EIP billing method, please refer to the EIP billing instructions.

Prepaid (yearly and monthly) ECS instances whose public network bandwidth is billed based on fixed bandwidth are not supported.

Request parameters

Convert the public IP of an ECS instance with a VPC network type to an elastic public IP

##Return parameters

are all public return parameters. See Public Return Parameters.

Example

Request example

https://ecs.aliyuncs.com/?Action=ConvertNatPublicIpToEip
&RegionId=cn-hangzhou
&InstanceId=i-test
&<公共请求参数>

Return example

XML format

<ConvertNatPublicIpToEipResponse>
    <RequestId>B154D309-F3E1-4AB7-BA94-FEFCA8B89001</RequestId>
</ConvertNatPublicIpToEipResponse>

JSON format

{
   "RequestId":"B154D309-F3E1-4AB7-BA94-FEFCA8B89001"
}

Error code

The following are error codes unique to this interface. For more error codes, please visit the API Error Center.

Convert the public IP of an ECS instance with a VPC network type to an elastic public IP

The above is the detailed content of Convert the public IP of an ECS instance with a VPC network type to an elastic public IP. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn