Get ZMigrate Management Node Information

GET/zstack/v1/zmigrate/management/infos

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/management/infos

Parameters

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

API Response

Response Example

{
  "zmigrateVmInstanceStatus": "Running",
  "version": "1.0.0",
  "platformsCount": 3,
  "gatewaysCount": 2,
  "migrateJobsCount": 5,
  "zmigrateStartTime": 1778035702481
}
NameTypeDescriptionSince
zmigrateVmInstanceStatusStringZMigrate VM instance status5.0.0
versionStringZMigrate version5.0.0
platformsCountlongNumber of ZMigrate platforms5.0.0
gatewaysCountlongNumber of ZMigrate gateways5.0.0
migrateJobsCountlongNumber of ZMigrate migration jobs5.0.0
zmigrateStartTimelongZMigrate management node startup time5.0.0
successboolean 5.0.0
errorErrorCodeFor details, see error5.0.0

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

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

Python SDK

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