Associate an EIP with the primary private IP of the primary network interface of a VM.
A VM can only be associated with one EIP for the primary private IP of the primary network interface, and an error will occur if associate an EIP with the primary private IP of the primary network interface while it has already associated with an EIP.
POST
https://vm.jdcloud-api.com/v1/regions/{regionId}/instances/{instanceId}:associateElasticIp
Name | Type | Required or not | Default value | Description |
---|---|---|---|---|
regionId | String | True | Region ID | |
instanceId | String | True | VM ID |
Name | Type | Required or not | Default value | Description |
---|---|---|---|---|
elasticIpId | String | True | ID of Elastic IP |
None
Return code | Description |
---|---|
200 | OK |
400 | Invalid parameter |
401 | Authentication failed |
404 | Not found |
500 | Internal server error |
503 | Service unavailable |
我们的产品专家为您找到最合适的产品/解决⽅案
1v1线上咨询获取售前专业咨询
专业产品顾问,随时随地沟通