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
Due to the initial partitioning of the system, th...
1. Modify the firewall settings and open the corr...
MySQL 8.0.20 installation and configuration super...
Question: Although the index has been created, wh...
All consecutive spaces or blank lines (newlines) ...
The uniapp applet will have a similar drop-down p...
reason: MySQL 5.7.5 and up implements detection o...
This tutorial shares the installation and configu...
In combination with the scenario in this article,...
1. Concept They are all attributes of Element, in...
This article example shares the specific code of ...
Multiple values combined display Now we have th...
MySQL database reports ERROR 1045 (28000): Access...
This article mainly introduces an example of Vue ...
Table of contents Preface cause Phenomenon why? A...