Document navigation

EIP Operations

CreateEip

API Request

URLs
POST zstack/v1/eips
Headers
Authorization: OAuth the-session-uuid
Body
{
"params": {
"name": "Test-EIP",
"vipUuid": "7fdf1752627948afb2418f93825c478b",
"vmNicUuid": "be5532b08b7a48949667b654468dc5a5"
  },
"systemTags": [],
"userTags": []
}
Note: In the preceding sample, both systemTags and userTags are optional. These two fields can be included in the body structure.

Curl Sample

curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth c0bd88f213cf42bc8b8fd42d1b269d50" \
-X POST -d '{"params":{"name":"Test-EIP","vipUuid":"f1b1901cefa939d7bf5775ec71735637","vmNicUuid":"bb64d3fc676b3b5cbdf0d768eb7d05a1"}}' \
http://localhost:8080/zstack/v1/eips
Request Parameters
Name Type Location Description Optional Value Starting Version
name String body (contained in the params structure) The EIP name. 0.6
description String body (contained in the params structure) Optional. The detailed description of the EIP. 0.6
vipUuid String body (contained in the params structure) The VIP UUID. 0.6
vmNicUuid String body (contained in the params structure) Optional. The VM NIC UUID. 0.6
usedIpUuid String body (contained in the params structure) Optional. The IP UUID. 3.1.0
resourceUuid String body (contained in the params structure) Optional. The resource UUID. If specified, the VM instance will use the specified value as the UUID. 0.6
systemTags List body Optional. The EIP system tags. 0.6
userTags List body Optional. The EIP user tags. 0.6

API Response

Sample Response
{
"inventory": {
"name": "Test-EIP",
"vmNicUuid": "07f9715b85da40d9bd17e5f4277304bd",
"vipUuid": "acc6dc9271f54e58ab94e4a1069bc7e5"
  }
}
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
CreateEipAction action = new CreateEipAction();
action.name = "Test-EIP";
action.vipUuid = "a600144228904c709d9d36a7d8e7bc50";
action.vmNicUuid = "c6ef3b3fc5c54033ad07514e3ee71199";
action.sessionId = "284027438a4e46d4abb185a30eaac6ff";
CreateEipAction.Result res = action.call();
Python SDK
CreateEipAction action = CreateEipAction()
action.name = "Test-EIP"
action.vipUuid = "8e6507f39d6f40479f48a974a9d6afd2"
action.vmNicUuid = "91ad47c708e140fd83348182a3f098a6"
action.sessionId = "9bdd3970d72144c8899edb0158a4ed6d"
CreateEipAction.Result res = action.call()

DeleteEip

API Request

URLs
DELETE/v1/eips/{uuid}?deleteMode={deleteMode}
Headers
Authorization: OAuth the-session-uuid

Curl Sample

curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth 45ccb9eb4add405d9059fb45990a6e8c" \
-X DELETE http://localhost:8080/zstack/v1/eips/468cb75384344acd87f22610d07080e5?deleteMode=Permissive
Request Parameters
Name Type Location Description Optional Value Starting Version
uuid String url The EIP UUID. 0.6
deleteMode String body Optional. The delete mode. 0.6
systemTags List body Optional. The system tags. 0.6
userTags List body Optional. The user tags. 0.6

API Response

When the API succeeded, an empty JSON structure {} is returned. When the API failed, the returned JSON structure includes an error field. For example,
{
"error": {
"code": "SYS.1001",
"description": "A message or a operation timeout",
"details": "Create VM on KVM timeout after 300s"
    }
}

SDK Sample

Java SDK
DeleteEipAction action = new DeleteEipAction();
action.uuid = "7ff634c9d79c48ca976a34ce53951c76";
action.deleteMode = "Permissive";
action.sessionId = "44b7b711d77b4dfa91257db5b9a61585";
DeleteEipAction.Result res = action.call();
Python SDK
DeleteEipAction action = DeleteEipAction()
action.uuid = "e0699e3693ea429180371be5ca95e49e"
action.deleteMode = "Permissive"
action.sessionId = "ee71c70ee83a4ef8876f86d3876dbc8f"
DeleteEipAction.Result res = action.call()

QueryEip

API Request

URLs
GET zstack/v1/eips
GET zstack/v1/eips/{uuid}
Headers
Authorization: OAuth the-session-uuid
Curl Sample
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth ecbf8328397545a890cb7f299016ff65" \
-X GET http://localhost:8080/zstack/v1/eips
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth 58e98c60b171447b8c1940b5a8a1ad0f" \
-X GET http://localhost:8080/zstack/v1/eips/66803656d159456dacda9c074945e40d

Queryable Fields

You can check all queryable fields and resource names that can be queried across tables by using zstack-cli, entering QueryEip, and pressing the Tab key.

API Response

Sample Response
{
"inventories": [
    {
"name": "Test-EIP",
"vmNicUuid": "67dfb04014b64489addb9ff7db5c7eb8",
"vipUuid": "e5bafce543e044419a8ffad7d416201e"
    }
  ]
}
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
inventories List See inventories. 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
#inventories
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

QueryEipAction action = new QueryEipAction();
action.conditions = asList();
action.sessionId = "02a7bb80af0a43ea8cecb01e8361f4a3";
QueryEipAction.Result res = action.call();
Python SDK
QueryEipAction action = QueryEipAction()
action.conditions = []
action.sessionId = "84b2e52f0e2a41d09b428627b6266f28"
QueryEipAction.Result res = action.call()

UpdateEip

API Request

URLs
PUT zstack/v1/eips/{uuid}/actions
Headers
Authorization: OAuth the-session-uuid
Body
{
"updateEip": {
"name": "Test-EIP"
  },
"systemTags": [],
"userTags": []
}
Note: In the preceding sample, both systemTags and userTags are optional. These two fields can be included in the body structure.
Curl Sample
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth 48675e997cc24705a248f756bd4c617c" \
-X PUT -d '{"updateEip":{"name":"Test-EIP"}}' \
http://localhost:8080/zstack/v1/eips/4d153a67262f341cbb4d5351ec844ab7/actions
Request Parameters
Name Type Location Description Optional Value Starting Version
uuid String url The EIP UUID. 0.6
name String body (contained in the updateEip structure) Optional. The EIP name. 0.6
description String body (contained in the updateEip structure) Optional. The detailed description of the EIP. 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": "cb1779456b2e47ecb436385e9731fa92",
"vipUuid": "b092230e024e4d4bab4f8919ee6b4848"
  }
}
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
UpdateEipAction action = new UpdateEipAction();
action.uuid = "81ab4053a9484332b8e1aafa7e00a399";
action.name = "Test-EIP";
action.sessionId = "08c50da7ac034e6f9461785af2f94a7e";
UpdateEipAction.Result res = action.call();
Python SDK
UpdateEipAction action = UpdateEipAction()
action.uuid = "e510fba3a1c646559d1db59f9b37c751"
action.name = "Test-EIP"
action.sessionId = "2d0aff43d9fe4294b16069f6762d0832"
UpdateEipAction.Result res = action.call()

ChangeEipState

API Request

URLs
PUT zstack/v1/eips/{uuid}/actions
Headers
Authorization: OAuth the-session-uuid
Body
{
  "changeEipState": {
    "stateEvent": "enable"
  },
  "systemTags": [],
  "userTags": []
}
Note: In the preceding sample, both systemTags and userTags are optional. These two fields can be included in the body structure.
Curl Sample
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth ba708ad93aa54eb696ea994d412d539a" \
-X PUT -d '{"changeEipState":{"stateEvent":"enable"}}' \
http://localhost:8080/zstack/v1/eips/e6c715aaa65c39aa948d88e548a5f044/actions
Request Parameters
Name Type Location Description Optional Value Starting Version
uuid String url The EIP UUID. 0.6
stateEvent String body (contained in the changeEipState structure) The state event.
  • enable
  • disable
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": "8384e17c064a4b3f819421beb695891d",
    "vipUuid": "4ab30bbbf55f4bcda38acd573335d6d7",
    "state": "Enabled"
  }
}
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
ChangeEipStateAction action = new ChangeEipStateAction();
action.uuid = "ae4f106e8e884788bf73ee2e863a2ad3";
action.stateEvent = "enable";
action.sessionId = "c35fc61e1a784c41a17cb9a0fe9cd2a5";
ChangeEipStateAction.Result res = action.call();
Python SDK
ChangeEipStateAction action = ChangeEipStateAction()
action.uuid = "b5b5cd464d2d48cca37352fb904e5226"
action.stateEvent = "enable"
action.sessionId = "17f673d897dc47fb845c48fba7af7942"
ChangeEipStateAction.Result res = action.call()

GetEipAttachableVmNics

API Request

URLs
GET zstack/v1/eips/{eipUuid}/vm-instances/candidate-nics
Headers
Authorization: OAuth the-session-uuid
Curl Sample
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth dd4a7d40a7e246879ea53fff9fb6dc02" \
-X GET http://localhost:8080/zstack/v1/eips/6bd0a6a4e5dd4f618ff314289acc112f/vm-instances/candidate-nics
Request Parameters
Name Type Location Description Optional Value Starting Version
eipUuid String url Optional. The EIP UUID. 0.6
vipUuid String query Optional. The VIP UUID. 0.6
systemTags List query Optional. The system tags. 0.6
userTags List query Optional. The user tags. 0.6

API Response

Sample Response
{
  "inventories": [
    {
      "uuid": "b9d15f91920738cb9c1d3d54c543da87",
      "vmInstanceUuid": "426e0bf3909c3049be70e9f621d69cae",
      "usedIpUuid": "74f3ce37130c386f8b79d1656285a41b",
      "l3NetworkUuid": "cad25a3e482d39e8b428a4f25db07b41",
      "ip": "192.168.1.10",
      "mac": "00:0c:29:bd:99:fc",
      "hypervisorType": "KVM",
      "netmask": "255.255.255.0",
      "gateway": "192.168.1.1",
      "deviceId": 0.0,
      "createDate": "Nov 14, 2017 10:20:57 PM",
      "lastOpDate": "Nov 14, 2017 10:20:57 PM"
    }
  ]
}
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
inventories List See inventories. 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
#inventories
Name Type Description Starting Version
uuid String The resource UUID. 0.6
vmInstanceUuid String The VM instance UUID. 0.6
l3NetworkUuid String The L3 network UUID. 0.6
ip String 0.6
mac String 0.6
netmask String 0.6
gateway String 0.6
metaData String 0.6
ipVersion Integer The IP version. 3.1.0
deviceId Integer 0.6
createDate Timestamp The creation date. 0.6
lastOpDate Timestamp The last operation date. 0.6
usedIps List See usedIps. 0.6
#usedIps
Name Type Description Starting Version
uuid String The resource UUID. 0.6
ipRangeUuid String The IP range UUID. 0.6
l3NetworkUuid String The L3 network UUID. 0.6
ipVersion Integer The IP version. 3.1.0
ip String The IP address. 0.6
netmask String The netmask. 0.6
gateway String The gateway. 0.6
usedFor String 0.6
ipInLong long 0.6
vmNicUuid String The VM NIC UUID. 3.1.0
createDate Timestamp The creation date. 0.6
lastOpDate Timestamp The last operation date. 0.6

SDK Sample

Java SDK
GetEipAttachableVmNicsAction action = new GetEipAttachableVmNicsAction();
action.eipUuid = "281f3fe6c8bc42d7a2b7911db8bc8a9b";
action.sessionId = "05d5744919984e6680655fcfc85e6dd9";
GetEipAttachableVmNicsAction.Result res = action.call();
Python SDK
GetEipAttachableVmNicsAction action = GetEipAttachableVmNicsAction()
action.eipUuid = "998c40730b1b4dd19ca464d7d30f432c"
action.sessionId = "7682cccdd2c74324b1a82232cd730657"
GetEipAttachableVmNicsAction.Result res = action.call()

GetVmNicAttachableEips

API Request

URLs
GET zstack/vm-instances/nics/{vmNicUuid}/candidate-eips
Headers
Authorization: OAuth the-session-uuid
Curl Sample
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth dd4a7d40a7e246879ea53fff9fb6dc02" \
-X GET http://localhost:8080/zstack/v1/vm-instances/nics/9d11dc19607c32cda7268c0655e117fc/candidate-eips?limit=1000.0&start=0.0
Request Parameters
Name Type Location Description Optional Value Starting Version
vmNicUuid String url The VM NIC UUID. 4.4.6
ipVersion Integer query Optional. The IP version.
  • 4
  • 6
4.4.6
limit Integer query Optional. The limit of the returned results. 4.4.6
start Integer query Optional. The start position of the query. 4.4.6
systemTags List query Optional. The system tags. 4.4.6
userTags List query Optional. The user tags. 4.4.6

API Response

Sample Response
{
  "inventories": [
    {
      "uuid": "fe174df8c1003e3a9f13aa73104f45ee",
      "name": "eip",
      "vmNicUuid": "d29fb63d5aba4bbf98ec8663d6b4ba21",
      "vipUuid": "a5cfe85eb0d7448fbe153360c52114ce",
      "createDate": "Nov 14, 2017 9:20:57 AM",
      "lastOpDate": "Nov 14, 2017 9:20:57 AM",
      "state": "Enable",
      "vipIp": "10.72.109.11",
      "guestIp": "172.168.1.1"
    }
  ]
}
Name Type Description Starting Version
success boolean 4.4.6
error ErrorCode The error code. If not null, the operation fails, or vice versa. For more information, see error. 4.4.6
inventories List See inventories. 4.4.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. 4.4.6
description String The brief description of the error. 4.4.6
details String The details about the error. 4.4.6
elaboration String The reserved field. Default value: null. 4.4.6
opaque LinkedHashMap The reserved field. Default value: null. 4.4.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. 4.4.6
#inventories
Name Type Description Starting Version
uuid String The resource UUID. 4.4.6
name String The resource name. 4.4.6
description String The resource description. 4.4.6
vmNicUuid String The VM NIC UUID. 4.4.6
vipUuid String The VIP UUID. 4.4.6
createDate Timestamp The creation date. 4.4.6
lastOpDate Timestamp The last operation date. 4.4.6
state String 4.4.6
vipIp String 4.4.6
guestIp String 4.4.6

SDK Sample

Java SDK
GetVmNicAttachableEipsAction action = new GetVmNicAttachableEipsAction();
action.vmNicUuid = "9d11dc19607c32cda7268c0655e117fc";
action.limit = 1000.0;
action.start = 0.0;
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
GetVmNicAttachableEipsAction.Result res = action.call();
Python SDK
GetVmNicAttachableEipsAction action = GetVmNicAttachableEipsAction()
action.vmNicUuid = "9d11dc19607c32cda7268c0655e117fc"
action.limit = 1000.0
action.start = 0.0
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
GetVmNicAttachableEipsAction.Result res = action.call()

AttachEip

API Request

URLs
POST zstack/v1/eips/{eipUuid}/vm-instances/nics/{vmNicUuid}
Headers
Authorization: OAuth the-session-uuid
Body
{
  "params": {},
  "systemTags": [],
  "userTags": []
}
Note: In the preceding sample, both systemTags and userTags are optional. These two fields can be included in the body structure.
Curl Sample
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X POST -d '{"params":{}}' http://localhost:8080/zstack/v1/eips/b7b3d87e803434f3b597638377830e68/vm-instances/nics/3fb731573096397c90dbe65781d5b616
Request Parameters
Name Type Location Description Optional Value Starting Version
eipUuid String url The EIP UUID. 0.6
vmNicUuid String body The VM NIC UUID. 0.6
usedIpUuid String body (contained in the params structure) Optional. The IP UUID. 3.1.0
systemTags List body Optional. The system tags. 0.6
userTags List body Optional. The user tags. 0.6

API Response

When the API succeeded, an empty JSON structure {} is returned. When the API failed, the returned JSON structure includes an error field. For example,
{
    "error": {
        "code": "SYS.1001",
        "description": "A message or a operation timeout",
        "details": "Create VM on KVM timeout after 300s"
    }
}

SDK Sample

Java SDK
AttachEipAction action = new AttachEipAction();
action.eipUuid = "dfee2872f32f4eab81cce8be02d564f7";
action.vmNicUuid = "77439a0f6c464053937fdfc12531647e";
action.sessionId = "80a49201196649f296e8b1c3b03d2284";
AttachEipAction.Result res = action.call();
Python SDK
AttachEipAction action = AttachEipAction()
action.eipUuid = "080064a02ea9470a9364bdc255c1cfa6"
action.vmNicUuid = "e255a04227b94b5181eda063e1f8b17a"
action.sessionId = "beebaac6f3fe4ac99db525f8775b5a61"
AttachEipAction.Result res = action.call()

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()
API Reference | 4.8.38 | ZStack Cloud · ZCF | ZStack Resource Center