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
Table of contents Preface What does yarn create d...
Preface Nowadays, in projects, the Axios library ...
This article shares the specific steps of VMware ...
Preface nginx uses a multi-process model. When a ...
text OK, next it’s time to show the renderings. O...
IIS7 Download the HTTP Rewrite module from Micros...
Preface: The previous article described several c...
The dd and dt tags are used for lists. We usually...
This article example shares the specific code of ...
background Recently, I executed a DML statement d...
A simple license plate input component (vue) for ...
Database modification or deletion operations may ...
The specific upgrade script is as follows: Dynami...
Table of contents Rendering Install Code Implemen...
Table of contents 1. Transition from development ...