Detach NIC from virtual server

Description

Detaches the specified NIC from the virtual server.

Note that the NIC number of the NICS will remain unchanged after detachment (for example: if the NIC numbers are 0, 1, 2 and NIC number 1 is detached, NIC numbers become 0,2).

Snapshots of the virtual server must be deleted before performing this operation.

Request

Header

Content-Type: application/x-www-form-urlencoded

Accept: application/xml

X-Auth-Token: Keystone token (*1)

X-VA-Project-Id: ID of the project that owns the resource (*2)

X-VA-Domain-Id: ID of the domain that owns the resource (*2)

*1: The scope specified for the token is ignored when this API is executed by the system administrator.

*2: Mandatory when this API is executed by the system administrator. ignored when executed by other users.

Method

PUT

Path

/l_servers/virtualServerResourceId/detach

Query

n/a

Body

Argument name Description
type Specify "nic".
index NIC number. Integer starting from 0.

Response

Status code

202 Accepted

Body

Task information