Update Xsky Block Volume

PUT/zstack/v1/xsky/block-volumes/{uuid}/actions

Headers

Authorization: OAuth the-session-uuid

Body

{
  "updateXskyBlockVolume": {
    "name": "example"
  },
  "systemTags": [],
  "userTags": []
}

In the example above, systemTags and userTags fields can be omitted. They are listed to indicate that the body can contain these two fields.

Curl Example

curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X PUT -d '{"updateXskyBlockVolume":{"name":"example"}}' \
http://localhost:8080/zstack/v1/xsky/block-volumes/eeb07fe1a24833959f75c38b9c7e4132/actions

Parameters

NameTypeLocationDescriptionAllowed ValuesStarting Version
uuidStringurlResource UUID, uniquely identifies the resource 4.7.11
name (Optional)Stringbody(included in the updateXskyBlockVolume structure)Resource name 4.7.11
description (Optional)Stringbody(included in the updateXskyBlockVolume structure)Detailed description of the resource 4.7.11
burstTotalBw (Optional)Longbody(included in the updateXskyBlockVolume structure)  4.7.11
burstTotalIops (Optional)Longbody(included in the updateXskyBlockVolume structure)  4.7.11
maxTotalBw (Optional)Longbody(included in the updateXskyBlockVolume structure)  4.7.11
maxTotalIops (Optional)Longbody(included in the updateXskyBlockVolume structure)  4.7.11
systemTags (Optional)ListbodySystem tag 4.7.11
userTags (Optional)ListbodyUser tag 4.7.11

API Response

This API returns an empty JSON structure {} on success, and returns a JSON structure containing an error field on failure. For example:

{
  "error": {
    "code": "SYS.1001",
    "description": "A message or a operation timeout",
    "details": "Create VM on KVM timeout after 300s"
  }
}

SDK Examples

Java SDK

UpdateXskyBlockVolumeAction action = new UpdateXskyBlockVolumeAction();
action.uuid = "eeb07fe1a24833959f75c38b9c7e4132";
action.name = "example";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
UpdateXskyBlockVolumeAction.Result res = action.call();

Python SDK

UpdateXskyBlockVolumeAction action = UpdateXskyBlockVolumeAction()
action.uuid = "eeb07fe1a24833959f75c38b9c7e4132"
action.name = "example"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
UpdateXskyBlockVolumeAction.Result res = action.call()