Docs
api
Server Migration Center(USMC)
ListUSMCTask

Get USMC task list - ListUSMCTask

Overview

Get USMC task list

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is ListUSMCTask.Yes
PublicKeystringThe user’s public key can be obtained from ConsoleYes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
PlanIdstringMigration Plan IDYes
OffsetstringList start position offset, default is 0No
LimitstringReturn data length, default is 20, maximum 100No

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No
Dataarray[ListTaskItem][]ListTaskItemYes

Data Model

ListTaskItem

Field NameTypeDescription InformationRequired
SrcHostNamestringSource Machine NameNo
SrcHostIpstringSource Machine IPNo
HostIdstringTarget Machine IDNo
HostIpstringTarget Machine IPNo
TaskIdstringTask IDNo
NamestringTask NameNo
AgentIdstringClient IDNo
AgentNamestringClient NameNo
StatestringTask StatusNo
AgentStatestringClient StatusNo
ProgressProgressDataTask ProgressNo
MinimalCpuPlatformstringCPU PlatformNo
MachineTypestringMachine TypeNo
CreateTimeintCreation TimeNo
DiskTypestringDisk TypeNo
DataDiskTypestringData Disk TypeNo
GpuintNumber of GPUsNo
GpuTypestringGPU TypeNo
CpuintCPU CoresNo
MemoryintMemory SizeNo
UDSetIdstring[Private Zone Properties] Zone IDNo
UDHostIdstring[Private Zone Property] Host ID of the zoneNo
HostBindingboolean[UDSet Attributes] Enable the residence association attribute for the UDSet UHost.No
SecGroupIdarray[SecGroup][]SecGroupNo

ProgressData

Field NameTypeDescription InformationRequired
PercentagefloatProgress PercentageNo

SecGroup

Field NameTypeDescription InformationRequired
IdstringSecurity Group IDNo
PriorityintSecurity Group PriorityNo

Example

Request Example

https://api.dezai.com/?Action=ListUSMCTask
&Region=cn-zj
&Zone=cn-zj-01
&ProjectId=XgqnRSEC
&Offset=7
&Limit=5
&SetId=WdlAPLrt
&NetworkId=xrqzmAQh

Response Example

{
  "Action": "ListUSMCTaskResponse",
  "Data": [
    "jdbaCYcE"
  ],
  "RetCode": 0
}