Get ZMigrate Gateway Images

GET/zstack/v1/zmigrate/images

Headers

Authorization: OAuth the-session-uuid

Curl Example

curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/zmigrate/images

Parameters

NameTypeLocationDescriptionOptional ValuesSince
systemTags (Optional)ListquerySystem tags 5.0.0
userTags (Optional)ListqueryUser tags 5.0.0

API Response

Response Example

{
  "images": {
    "ZMigrateGatewayImage": {
      "uuid": "32b618f43799325988e3a376fa65bfc1",
      "name": "test-image",
      "description": "test image for zmigrate"
    }
  }
}
NameTypeDescriptionSince
successboolean 5.0.0
imagesMapFor details, see images5.0.0
errorErrorCodeFor details, see error5.0.0

images

NameTypeDescriptionSince
uuidStringResource UUID, which uniquely identifies the resource0.6
nameStringResource name0.6
descriptionStringDetailed description of the resource0.6
stateStringImage state0.6
statusStringImage readiness status0.6
sizeLongImage size0.6
actualSizeLongActual image size0.6
md5SumStringMD5 value of the image0.6
urlStringURL of the image0.6
mediaTypeStringImage type0.6
guestOsTypeStringGuest operating system type corresponding to the image0.6
typeStringField for internal use0.6
platformStringSystem platform of the image0.6
formatStringImage format, for example, raw0.6
systemBooleanIndicates whether the image is a system image0.6
createDateTimestampCreation time0.6
lastOpDateTimestampLast modification time0.6
backupStorageRefsListFor details, see backupStorageRefs0.6

backupStorageRefs

NameTypeDescriptionSince
imageUuidStringImage UUID0.6
backupStorageUuidStringBackup storage UUID0.6
installPathStringInstallation path on the image server0.6
exportUrlStringURL of the exported image3.9.0
exportMd5SumStringMD5 value of the exported image3.9.0
statusStringImage readiness status0.6
createDateTimestampCreation time0.6
lastOpDateTimestampLast modification time0.6

error

NameTypeDescriptionSince
odeStringError code, which is the globally unique identifier of the error, such as SYS.1000 or HOST.10010.6
descriptionStringSummary description of the error0.6
detailsStringDetailed information about the error0.6
elaborationStringReserved field. The default value is null.0.6
opaqueLinkedHashMapReserved field. The default value is null.0.6
causeErrorCodeRoot error that caused the current error. If there is no original error, this field is null.0.6

SDK Example

Java SDK

GetZMigrateImagesAction action = new GetZMigrateImagesAction();
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
GetZMigrateImagesAction.Result res = action.call();

Python SDK

action = GetZMigrateImagesAction()
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
res = action.call()