Virtual Machines

Products

Virtual Machines

detachNetworkInterface

Description

Detach an ENI for 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. The primary network interface cannot be detached.

Request method

POST

Request address

https://vm.jdcloud-api.com/v1/regions/{regionId}/instances/{instanceId}:detachNetworkInterface

Name Type Required or not Default value Description
regionId String True Region ID
instanceId String True VM ID

Request parameter

Name Type Required or not Default value Description
networkInterfaceId String True ENI ID

Response parameter

None

Response code

Return code Description
200 OK
400 Invalid parameter
401 Authentication failed
404 Not found
500 Internal server error
503 Service unavailable
Update Time:2019-08-20 17:20:43