Attach an ENI to a VM. The status of the VM must be running or stopped, and the attachment is only available when there is no task in progress. If some EIPs have associated with the ENI that to be attached, the az of the EIPs needs to be consistent with the az of the VM, or be all-AZs. The number of the ENIs attached to the VM cannot exceed the limit of its instance type. Can query DescribeInstanceTypesAPI to get the upper limit of a specified instance type. The ENI and the VM must be in the same vpc.
POST
https://vm.jdcloud-api.com/v1/regions/{regionId}/instances/{instanceId}:attachNetworkInterface
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 |
---|---|---|---|---|
networkInterfaceId | String | True | ENI ID | |
autoDelete | Boolean | False | Auto-delete with the machine, False by default. |
None
Return code | Description |
---|---|
200 | OK |
400 | Invalid parameter |
401 | Authentication failed |
404 | Not found |
500 | Internal server error |
503 | Service unavailable |
我们的产品专家为您找到最合适的产品/解决⽅案
1v1线上咨询获取售前专业咨询
专业产品顾问,随时随地沟通