DetachEip
API Request
URLs
DELETE/v1/eips/{uuid}/vm-instances/nics
Headers
Authorization: OAuth the-session-uuid
Curl
Sample
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth 7e5d824e15c64e1ca2fc3eca9e315c41" \
-X DELETE http://localhost:8080/zstack/v1/eips/6e1a3bdbe38045658546a6b7fb3df990/vm-instances/nics?
Request Parameters
Name | Type | Location | Description | Optional Value | Starting Version |
---|---|---|---|---|---|
uuid | String | url | The EIP UUID. | 0.6 | |
systemTags | List | body | Optional. The system tags. | 0.6 | |
userTags | List | body | Optional. The user tags. | 0.6 |
API Response
Sample
Response
{
"inventory": {
"name": "Test-EIP",
"vmNicUuid": "04c0bc3e4c1d44c8aac1fd2e1be10d81",
"vipUuid": "8284fce519774899a3ba01e304df6c3b"
}
}
Name | Type | Description | Starting Version |
---|---|---|---|
error | ErrorCode | The error code. If not null, the operation fails, or vice versa. For more information, see error. | 0.6 |
inventory | EipInventory | See inventory. | 0.6 |
#error
Name | Type | Description | Starting Version |
---|---|---|---|
code | String | The error code, which is a numbered or alphanumeric code that specifies an error. For example, SYS.1000, HOST.1001. | 0.6 |
description | String | The brief description of the error. | 0.6 |
details | String | The details about the error. | 0.6 |
elaboration | String | The reserved field. Default value: null. | 0.6 |
opaque | LinkedHashMap | The reserved field. Default value: null. | 0.6 |
cause | ErrorCode | The root error, which is the associated root cause of the current error. If no root error exists, this parameter is null. | 0.6 |
#inventory
Name | Type | Description | Starting Version |
---|---|---|---|
uuid | String | The resource UUID. | 0.6 |
name | String | The resource name. | 0.6 |
description | String | The detailed description of the resource. | 0.6 |
vmNicUuid | String | The VM NIC UUID. | 0.6 |
vipUuid | String | The VIP UUID. | 0.6 |
createDate | Timestamp | The creation date. | 0.6 |
lastOpDate | Timestamp | The last operation date. | 0.6 |
state | String | 0.6 | |
vipIp | String | 0.6 | |
guestIp | String | 0.6 |
SDK Sample
Java
SDK
DetachEipAction action = new DetachEipAction();
action.uuid = "9a8c75df80524b13adf769626703efc0";
action.sessionId = "e7b6f5ef6d134d058e7d85e3ccd226a8";
DetachEipAction.Result res = action.call();
Python SDK
DetachEipAction action = DetachEipAction()
action.uuid = "28ddb9165c1444a7a7aa5119a5ceb926"
action.sessionId = "47e371f392934e3f8edbc49031fcf376"
DetachEipAction.Result res = action.call()