开发者社区> 问答> 正文

创建定时任务

反向一觉 2017-10-26 14:52:51 973

创建伸缩任务(CreateScheduledTask),如创建 12:00 触发第四步伸缩规则的定时任务。在请求时,需要指定第四步返回的 ScalingRuleAri。

请求示例

  1. [backcolor=transparent]http[backcolor=transparent]:[backcolor=transparent]//ess.aliyuncs.com/?Action=CreateScheduledTask
  2. [backcolor=transparent]&[backcolor=transparent]RegionId[backcolor=transparent]=[backcolor=transparent]cn[backcolor=transparent]-[backcolor=transparent]qingdao
  3. [backcolor=transparent]&[backcolor=transparent]LaunchTime[backcolor=transparent]=[backcolor=transparent]2014[backcolor=transparent]-[backcolor=transparent]08[backcolor=transparent]-[backcolor=transparent]17T12[backcolor=transparent]:[backcolor=transparent]00Z
  4. [backcolor=transparent]&[backcolor=transparent]RecurrenceType[backcolor=transparent]=[backcolor=transparent]Daily
  5. [backcolor=transparent]&[backcolor=transparent]RecurrenceValue[backcolor=transparent]=[backcolor=transparent]1
  6. [backcolor=transparent]&[backcolor=transparent]RecurrenceEndTime[backcolor=transparent]=[backcolor=transparent]2014[backcolor=transparent]-[backcolor=transparent]09[backcolor=transparent]-[backcolor=transparent]17T16[backcolor=transparent]:[backcolor=transparent]55Z
  7. [backcolor=transparent]&[backcolor=transparent]ScheduledAction[backcolor=transparent]=[backcolor=transparent]ari[backcolor=transparent]:[backcolor=transparent]acs[backcolor=transparent]:[backcolor=transparent]ess[backcolor=transparent]:[backcolor=transparent]cn[backcolor=transparent]-[backcolor=transparent]qingdao[backcolor=transparent]:[backcolor=transparent]1344371[backcolor=transparent]:[backcolor=transparent]scalingrule[backcolor=transparent]/[backcolor=transparent]eMKWG8SRNb9dBLAjweNI1Ik
  8. [backcolor=transparent]&<公共请求参数>


返回示例

  1. [backcolor=transparent]<CreateScheduledTaskResponse>
  2. [backcolor=transparent]    [backcolor=transparent]<ScheduledTaskId>[backcolor=transparent]edRtShc57WGXdt8TlPbrjsnV[backcolor=transparent]</ScheduledTaskId>
  3. [backcolor=transparent]    [backcolor=transparent]<RequestId>[backcolor=transparent]0F02D931-2B12-44D7-A0E9-39925C13D15E[backcolor=transparent]</RequestId>
  4. [backcolor=transparent]</CreateScheduledTaskResponse>
分享到
取消 提交回答
全部回答(0)
+ 订阅

时时分享云计算技术内容,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。

推荐文章