Get ZMigrate Gateway VM Instances

GET/zstack/v1/zmigrate/vm-instances

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/vm-instances

Parameters

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

API Response

Response Example

{
  "managementVmInstanceUuid": "ff04e1736ec6391f9a1f023b524d0a00",
  "gatewayVmInstances": [
    {
      "uuid": "ff01ec80fd11327cba7519b66119d900",
      "name": "ZMigrateGatewayVmInstance",
      "description": "ZMigrate gateway vm instance for test"
    }
  ]
}
NameTypeDescriptionSince
managementVmInstanceUuidString 5.0.0
gatewayVmInstancesList 5.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

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

Python SDK

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