Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to convert the public network IP of an ECS instance whose network type is proprietary network VPC into elastic public network IP

Shulou Source: shulou.com Published: 2022-06-02 00:29:43 10月04日 Update

This article will explain in detail how to convert the public network IP of an ECS instance whose network type is a proprietary network VPC into an elastic public network IP. The editor finds it very practical, so I share it with you as a reference. I hope you can get something after reading this article.

ConvertNatPublicIpToEip

Description

When calling this interface, you need to be aware of:

Only ECS instances of VPC network type are supported.

Only ECS instances with a status of stopped (Stopped) or running (Running) are supported.

An instance with a public network bandwidth of 0 Mbps is not supported. No public network IP (NatPublicIp) is assigned to the ECS instance.

ECS instances that are already bound to EIP are not supported.

ECS instances of change configuration tasks that are not in effect are not supported.

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

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

Prepaid (annual or monthly) ECS instances whose public network bandwidth is billed by fixed bandwidth are not supported.

Request parameter

Return parameters

All are common return parameters. See common return parameters.

Example

Request example

Https://ecs.aliyuncs.com/?Action=ConvertNatPublicIpToEip&RegionId=cn-hangzhou&InstanceId=i-test&

Return the example

XML format

B154D309-F3E1-4AB7-BA94-FEFCA8B89001

JSON format

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

Error code

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

This is about how to convert the public network IP of an ECS instance whose network type is a proprietary network VPC into an elastic public network IP. I hope the above content can be of some help and learn more knowledge. If you think the article is good, you can share it for more people to see.

Tags: Example public network support parameters error type network bandwidth more example network flexibility proprietary interface format article good practical task content Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Apple MariaDB Shulou Technology Shulou Information