Get ZMigrate Management Node Information
Headers
Authorization: OAuth the-session-uuidCurl Example
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/zmigrate/management/infosParameters
| 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 |
API Response
Response Example
{
"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 |
error
| 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 |
SDK Example
Java SDK
GetZMigrateInfosAction action = new GetZMigrateInfosAction();
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
GetZMigrateInfosAction.Result res = action.call();Python SDK
action = GetZMigrateInfosAction()
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
res = action.call()