开发者社区> 问答> 正文

API快速入门怎么创建定时任务

创建伸缩任务(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>

展开
收起
反向一觉 2017-10-27 11:11:59 1705 0
0 条回答
写回答
取消 提交回答
问答排行榜
最热
最新

相关电子书

更多
Spring Boot2.0实战Redis分布式缓存 立即下载
CUDA MATH API 立即下载
API PLAYBOOK 立即下载