Resource Center/Resource Pool/Image Operations
PUTImage OperationsSince 5.0.0SynchronousAuth Required
CalculateImageHash
CalculateImageHash
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Path Parameters
Request Inputs
Path Parameters
uuidStringRequiredThe image UUID.
Body Fields
calculateimagehashObjectRequiredcalculateimagehash request body object.
backupStorageUuidStringRequiredThe backup storage uuid.
algorithmStringOptional.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
PUT/zstack/v1/images/{uuid}/actions
/zstack/v1/images/{uuid}/actions
Request Example
curl -X PUT 'http://{host}/zstack/v1/images/{uuid}/actions' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"calculateimagehash":{"backupStorageUuid":"<backupStorageUuid>","algorithm":"<algorithm>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "uuid": "368da584193638818c480bef63732659", "name": "TinyLinux", "md5Sum": "6fc2357e711877c14c09eec960e51aed", "url": "http://192.168.1.20/share/images/tinylinux.qcow2", "mediaType": "RootVolumeTemplate", "platform": "Linux", "format": "qcow2", "backupStorageRefs": [ { "id": 0, "imageUuid": "368da584193638818c480bef63732659", "backupStorageUuid": "17f9f8d310763247b5dc31779d880a41", "installPath": "ceph://zs-images/f0b149e053b34c7eb7fe694b182ebffd", "status": "Ready" } ] } }Change History
This API has no change history records yet.
