describe When calling this interface, you need to pay attention to the following: Before assigning a public IP address, the instance must be in the Running or Stopped state. If an EIP is bound to a VPC instance, a public IP address cannot be assigned to it. An instance can only be assigned one public IP address. If the instance already has a public IP address, an error message AllocatedAlready will be displayed. After you restart the instance (RebootInstance) or start the instance (StartInstance), the new public IP address takes effect. If the OperationLocks of a security-controlled instance is marked with "LockReason" : "security", a public IP address cannot be assigned. In addition to assigning a public IP address, you can also bind an Elastic IP address (EIP) to an instance. For more details, see AssociateEipAddress. Request Parameters Return Parameter Example Request Example https://ecs.aliyuncs.com/?Action=AllocatePublicIpAddress &InstanceId=i-instance1 &<Common request parameters> Return to example XML format <AllocatePublicIpAddressResponse> <RequestId>F2EF6A3B-E345-46B9-931E-0EA094818567</RequestId> <IpAddress>10.1.149.159</IpAddress> </AllocatePublicIpAddressResponse> JSON format { "RequestId": "F2EF6A3B-E345-46B9-931E-0EA094818567", "IpAddress": "10.1.149.159" } Error Code The following are error codes specific to this interface. For more error codes, please visit the API Error Center. The above is the details of how to assign a public IP address to an instance. Thank you for your support of 123WORDPRESS.COM. You may also be interested in:
|
<<: How to use lodop print control in Vue to achieve browser compatible printing
>>: Some notes on mysql create routine permissions
Problem Description Several machines recently dis...
Network security is a very important topic, and t...
1. Go to the official website www.mysql.com and s...
Use native JavaScript to simply implement the cou...
1. iframe definition and usage The iframe element...
When Docker creates a container, it uses the brid...
Table of contents 1. Environment Introduction 2. ...
I have never been able to figure out whether the ...
1. Principle of Hotlinking 1.1 Web page preparati...
1 Pull the image from hup docker pull nginx 2 Cre...
In the Linux system, there is a kind of file call...
This article lists the most commonly used image c...
Preface: I recently started to study the construc...
Table of contents 1. Deploy consul cluster 1. Pre...
Table of contents 1. Modify by binding the style ...