创建定时任务(CreateSchedulerJob)

管理员可以使用CreateSchedulerJob创建定时任务。例如:
CreateSchedulerJob name=SchedulerJob1 targetResourceUuid=d672c98c9ea5416a83d15696f324368c \
type=startVm

参数(Parameters)

名字 描述 可选的 可选的参数值 起始支持版本
name 资源名称 2.1
description 资源的详细描述 2.1
targetResourceUuid 定时任务类型 2.1
type 定时任务类型
  • startVm
  • stopVm
  • rebootVm
  • volumeSnapshot
2.1
parameters 2.1
resourceUuid 2.1
userTags 用户标签,请参见 创建用户标签(CreateUserTag);资源类型是 SchedulerJobVO 2.1
systemTags 系统标签,请参见 创建系统标签(CreateSystemTag); 资源类型是 SchedulerJobVO 2.1
timeout
Note: parameters 参数的可选值由type决定。关系如下:
type参数 parameters可选参数
startVm
stopVm
rebootVm
volumeSnapshot snapshotMaxNumber
volumeBackup
  • volumeReadBandwidth
  • volumeWriteBandwidth
  • networkReadBandwidth
  • networkWriteBandwidth
  • fullBackupTriggerUuid
  • retentionType*
  • retentionValue*
  • backupStorageUuids*
  • remoteBackupStorageUuid

vmBackup (targetResourceUuid 填 rootVolumeUuid)

  • volumeReadBandwidth
  • volumeReadBandwidth
  • volumeWriteBandwidth
  • networkReadBandwidth
  • networkWriteBandwidth
  • fullBackupTriggerUuid
  • retentionType*
  • retentionValue*
  • backupStorageUuids*
databaseBackup
  • retentionType*
  • retentionValue*
  • backupStorageUuids*
  • remoteBackupStorageUuid