RefreshSharedblockDeviceCapacity

API Request

URLs
POST zstack/v1/primary-storage/sharedblockgroup/{sharedBlockGroupUuid}/sharedblocks/{uuid}
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/primary-storage/sharedblockgroup/2974c033608537e68a305b0f29412776/sharedblocks/9bd10e4bcc0939a2b041755a160d7b34
Request Parameters
Name Type Location Description Optional Value Starting Version
uuid String url Optional. The LUN UUID. If null, all devices that attach to the LUN will be updated. 2.6.0
sharedBlockGroupUuid String url The LUN group UUID. 2.6.0
systemTags List body Optional. The system tags. 2.6.0
userTags List body Optional. The user tags. 2.6.0

API Response

Sample Response

{
  "inventory": {
    "sharedBlocks": [
      {
        "uuid": "fd474b5a711f3bcab14061e1507b0691",
        "sharedBlockGroupUuid": "9f900d7cc336370da2dccdd832a1613d",
        "type": "LvmLogicalVolumeBasic",
        "diskUuid": "b9bec04964ab30a7bf80bdbf7ec997d9",
        "name": "test shared block",
        "description": "description",
        "state": "Enabled",
        "status": "Connected",
        "createDate": "Nov 14, 2017 10:20:57 PM",
        "lastOpDate": "Nov 14, 2017 10:20:57 PM"
      }
    ],
    "sharedBlockGroupType": "LvmVolumeGroupBasic",
    "uuid": "9f900d7cc336370da2dccdd832a1613d",
    "name": "shared block group primary storage",
    "description": "shared block group primary storage description",
    "availableCapacity": 1.073741824E9,
    "availablePhysicalCapacity": 1.073741824E9,
    "type": "SharedBlock",
    "state": "Enabled",
    "status": "Connected",
    "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. 2.6.0
inventory SharedBlockGroupPrimaryStorageInventory See inventory. 2.6.0
#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. 2.6.0
description String The brief description of the error. 2.6.0
details String The details about the error. 2.6.0
elaboration String The reserved field. Default value: null. 2.6.0
opaque LinkedHashMap The reserved field. Default value: null. 2.6.0
cause ErrorCode The root error, which is the associated root cause of the current error. If no root error exists, this parameter is null. 2.6.0
#inventory
Name Type Description Starting Version
uuid String The resource UUID. 2.6.0
zoneUuid String The zone UUID. 2.6.0
name String The resource name. 2.6.0
url String The reserved field. 2.6.0
description String The detailed description of the resource. 2.6.0
totalCapacity Long The total capacity. 2.6.0
availableCapacity Long The available capacity. 2.6.0
totalPhysicalCapacity Long The total physical capacity. 2.6.0
availablePhysicalCapacity Long The available physical capacity. 2.6.0
systemUsedCapacity Long The system used capacity. 2.6.0
type String The type of the primary storage. 2.6.0
state String The state. 2.6.0
status String The status. 2.6.0
mountPath String The reserved field. 2.6.0
createDate Timestamp The creation date. 2.6.0
lastOpDate Timestamp The last operation date. 2.6.0
attachedClusterUuids List The attached clusters. 2.6.0
sharedBlocks List See sharedBlocks. 2.6.0
sharedBlockGroupType SharedBlockGroupType See sharedBlockGroupType. 2.6.0
#sharedBlocks
Name Type Description Starting Version
uuid String The resource UUID. 2.6.0
sharedBlockGroupUuid String The LUN group UUID. 2.6.0
diskUuid String The unique identifier of the disk. For example, UUID, WWN, and WWID. 2.6.0
name String The resource name. 2.6.0
description String The detailed description of the resource. 2.6.0
createDate Timestamp The creation date. 2.6.0
lastOpDate Timestamp The last operation date. 2.6.0
type SharedBlockType See type. 2.6.0
state SharedBlockState See state. 2.6.0
status SharedBlockStatus See status. 2.6.0
#type
Name Type Description Starting Version
name String The resource name. 2.6.0
ordinal int 2.6.0
#state
Name Type Description Starting Version
name String The resource name. 2.6.0
ordinal int 2.6.0
#status
Name Type Description Starting Version
name String The resource name. 2.6.0
ordinal int 2.6.0
#sharedBlockGroupType
Name Type Description Starting Version
name String The resource name. 2.6.0
ordinal int 2.6.0

SDK Sample

Java SDK

RefreshSharedblockDeviceCapacityAction action = new RefreshSharedblockDeviceCapacityAction();
action.uuid = "9bd10e4bcc0939a2b041755a160d7b34";
action.sharedBlockGroupUuid = "2974c033608537e68a305b0f29412776";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
RefreshSharedblockDeviceCapacityAction.Result res = action.call();
Python SDK

RefreshSharedblockDeviceCapacityAction action = RefreshSharedblockDeviceCapacityAction()
action.uuid = "9bd10e4bcc0939a2b041755a160d7b34"
action.sharedBlockGroupUuid = "2974c033608537e68a305b0f29412776"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
RefreshSharedblockDeviceCapacityAction.Result res = action.call()