UpdateEip
API Request
URLs
PUT zstack/v1/eips/{uuid}/actions
Headers
Authorization: OAuth the-session-uuid
Body
Note: In
the preceding sample, both systemTags and userTags are optional.
These two fields can be included in the body structure.
{
"updateEip": {
"name": "Test-EIP"
},
"systemTags": [],
"userTags": []
}

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()