ZStack Cloud Platform
Single Server, Free Trial for One Year
GET zstack/v1/zmigrate/vm-instancesAuthorization: OAuth the-session-uuidcurl -H "Content-Type: application/json;charset=UTF-8" \ -H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \ -X GET http://localhost:8080/zstack/v1/zmigrate/vm-instances| Name | Type | Location | Description | Optional Values | Since |
|---|---|---|---|---|---|
| systemTags (Optional) | List | query | System tags | 5.0.0 | |
| userTags (Optional) | List | query | User tags | 5.0.0 |
{ "managementVmInstanceUuid": "ff04e1736ec6391f9a1f023b524d0a00", "gatewayVmInstances": [ { "uuid": "ff01ec80fd11327cba7519b66119d900", "name": "ZMigrateGatewayVmInstance", "description": "ZMigrate gateway vm instance for test" } ] }| Name | Type | Description | Since |
|---|---|---|---|
| managementVmInstanceUuid | String | 5.0.0 | |
| gatewayVmInstances | List | 5.0.0 | |
| success | boolean | 5.0.0 | |
| error | ErrorCode | For details, see error | 5.0.0 |
| Name | Type | Description | Since |
|---|---|---|---|
| ode | String | Error code, which is the globally unique identifier of the error, such as SYS.1000 or HOST.1001 | 0.6 |
| description | String | Summary description of the error | 0.6 |
| details | String | Detailed information about the error | 0.6 |
| elaboration | String | Reserved field. The default value is null. | 0.6 |
| opaque | LinkedHashMap | Reserved field. The default value is null. | 0.6 |
| cause | ErrorCode | Root error that caused the current error. If there is no original error, this field is null. | 0.6 |
GetZMigrateGatewayVmInstancesAction action = new GetZMigrateGatewayVmInstancesAction(); action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"; GetZMigrateGatewayVmInstancesAction.Result res = action.call();action = GetZMigrateGatewayVmInstancesAction() action.sessionId = "b86c9016b4f24953a9edefb53ca0678c" res = action.call()GET zstack/v1/zmigrate/imagesAuthorization: OAuth the-session-uuidcurl -H "Content-Type: application/json;charset=UTF-8" \ -H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \ -X GET http://localhost:8080/zstack/v1/zmigrate/images| Name | Type | Location | Description | Optional Values | Since |
|---|---|---|---|---|---|
| systemTags (Optional) | List | query | System tags | 5.0.0 | |
| userTags (Optional) | List | query | User tags | 5.0.0 |
{ "images": { "ZMigrateGatewayImage": { "uuid": "32b618f43799325988e3a376fa65bfc1", "name": "test-image", "description": "test image for zmigrate" } } }| Name | Type | Description | Since |
|---|---|---|---|
| success | boolean | 5.0.0 | |
| images | Map | For details, see images | 5.0.0 |
| error | ErrorCode | For details, see error | 5.0.0 |
| Name | Type | Description | Since |
|---|---|---|---|
| uuid | String | Resource UUID, which uniquely identifies the resource | 0.6 |
| name | String | Resource name | 0.6 |
| description | String | Detailed description of the resource | 0.6 |
| state | String | Image state | 0.6 |
| status | String | Image readiness status | 0.6 |
| size | Long | Image size | 0.6 |
| actualSize | Long | Actual image size | 0.6 |
| md5Sum | String | MD5 value of the image | 0.6 |
| url | String | URL of the image | 0.6 |
| mediaType | String | Image type | 0.6 |
| guestOsType | String | Guest operating system type corresponding to the image | 0.6 |
| type | String | Field for internal use | 0.6 |
| platform | String | System platform of the image | 0.6 |
| format | String | Image format, for example, raw | 0.6 |
| system | Boolean | Indicates whether the image is a system image | 0.6 |
| createDate | Timestamp | Creation time | 0.6 |
| lastOpDate | Timestamp | Last modification time | 0.6 |
| backupStorageRefs | List | For details, see backupStorageRefs | 0.6 |
| Name | Type | Description | Since |
|---|---|---|---|
| imageUuid | String | Image UUID | 0.6 |
| backupStorageUuid | String | Backup storage UUID | 0.6 |
| installPath | String | Installation path on the image server | 0.6 |
| exportUrl | String | URL of the exported image | 3.9.0 |
| exportMd5Sum | String | MD5 value of the exported image | 3.9.0 |
| status | String | Image readiness status | 0.6 |
| createDate | Timestamp | Creation time | 0.6 |
| lastOpDate | Timestamp | Last modification time | 0.6 |
| Name | Type | Description | Since |
|---|---|---|---|
| ode | String | Error code, which is the globally unique identifier of the error, such as SYS.1000 or HOST.1001 | 0.6 |
| description | String | Summary description of the error | 0.6 |
| details | String | Detailed information about the error | 0.6 |
| elaboration | String | Reserved field. The default value is null. | 0.6 |
| opaque | LinkedHashMap | Reserved field. The default value is null. | 0.6 |
| cause | ErrorCode | Root error that caused the current error. If there is no original error, this field is null. | 0.6 |
GetZMigrateImagesAction action = new GetZMigrateImagesAction(); action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"; GetZMigrateImagesAction.Result res = action.call();action = GetZMigrateImagesAction() action.sessionId = "b86c9016b4f24953a9edefb53ca0678c" res = action.call()GET zstack/v1/zmigrate/management/infosAuthorization: OAuth the-session-uuidcurl -H "Content-Type: application/json;charset=UTF-8" \ -H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \ -X GET http://localhost:8080/zstack/v1/zmigrate/management/infos| Name | Type | Location | Description | Optional Values | Since |
|---|---|---|---|---|---|
| systemTags (Optional) | List | query | System tags | 5.0.0 | |
| userTags (Optional) | List | query | User tags | 5.0.0 |
{ "zmigrateVmInstanceStatus": "Running", "version": "1.0.0", "platformsCount": 3, "gatewaysCount": 2, "migrateJobsCount": 5, "zmigrateStartTime": 1778035702481 }| Name | Type | Description | Since |
|---|---|---|---|
| zmigrateVmInstanceStatus | String | ZMigrate VM instance status | 5.0.0 |
| version | String | ZMigrate version | 5.0.0 |
| platformsCount | long | Number of ZMigrate platforms | 5.0.0 |
| gatewaysCount | long | Number of ZMigrate gateways | 5.0.0 |
| migrateJobsCount | long | Number of ZMigrate migration jobs | 5.0.0 |
| zmigrateStartTime | long | ZMigrate management node startup time | 5.0.0 |
| success | boolean | 5.0.0 | |
| error | ErrorCode | For details, see error | 5.0.0 |
| Name | Type | Description | Since |
|---|---|---|---|
| ode | String | Error code, which is the globally unique identifier of the error, such as SYS.1000 or HOST.1001 | 0.6 |
| description | String | Summary description of the error | 0.6 |
| details | String | Detailed information about the error | 0.6 |
| elaboration | String | Reserved field. The default value is null. | 0.6 |
| opaque | LinkedHashMap | Reserved field. The default value is null. | 0.6 |
| cause | ErrorCode | Root error that caused the current error. If there is no original error, this field is null. | 0.6 |
GetZMigrateInfosAction action = new GetZMigrateInfosAction(); action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"; GetZMigrateInfosAction.Result res = action.call();action = GetZMigrateInfosAction() action.sessionId = "b86c9016b4f24953a9edefb53ca0678c" res = action.call()