描述
查询定时任务的信息。
查询时可以指定定时触发的操作(ScheduledAction)来查询关联的定时任务。
请求参数
返回参数
ScheduledTaskSetType是由ScheduledTaskItemType类型组成的集合:
ScheduledTaskItemType类型的属性如下:
错误码
关于所有接口的通用性错误,请参考
客户端错误表或
服务器端错误表。
示例
请求示例
- http://ess.aliyuncs.com/?Action=DescribeScheduledTasks
- &RegionId=cn-qingdao
- &ScheduledTaskId.1=edRtShc57WGXdt8TlPbrjsnV
- &PageSize=50
- &<公共请求参数>
返回示例
XML格式:
- <DescribeScheduledTasksResponse>
- <RequestId>B9B498DA-E836-45FF-83C7-1930492FDD5A</RequestId>
- <TotalCount>1</TotalCount>
- <PageNumber>1</PageNumber>
- <PageSize>50</PageSize>
- <ScheduledTasks>
- <ScheduledTask>
- <Description/>
- <LaunchExpirationTime>600</LaunchExpirationTime>
- <LaunchTime>2014-08-18T10:52Z</LaunchTime>
- <RecurrenceEndTime>2014-08-20T16:55Z</RecurrenceEndTime>
- <RecurrenceType>Daily</RecurrenceType>
- <RecurrenceValue>1</RecurrenceValue>
- <ScheduledAction>
- ari:acs:ess:cn-qingdao:1344371:scalingrule/cCBpdYdQuBe2cUxOdu6piOk
- </ScheduledAction>
- <ScheduledTaskId>edRtShc57WGXdt8TlPbrjsnV</ScheduledTaskId>
- <ScheduledTaskName>edRtShc57WGXdt8TlPbrjsnV</ScheduledTaskName>
- <TaskEnabled>true</TaskEnabled>
- </ScheduledTask>
- </ScheduledTasks>
- </DescribeScheduledTasksResponse>
JSON格式:
- {
- "RequestId": "43434132-91C4-4264-8343-681130760A5C",
- "TotalCount": 1,
- "PageSize": 1,
- "PageNumber": 1,
- "ScheduledTasks": {
- "ScheduledTask": [
- {
- "TaskEnabled": true,
- "ScheduledTaskId": "b27CLSc8T478c2iqHr6fqbF",
- "Description": "ditingshigechunqingchunan",
- "ScheduledTaskName": "9906a33f-14eb-42b8-8bdb-ee8cdf912706",
- "LaunchExpirationTime": 120,
- "RecurrenceType": "Daily",
- "RecurrenceEndTime": "2014-08-13T19:19Z",
- "LaunchTime": "2014-08-12T17:55Z",
- "RecurrenceValue": "1",
- "ScheduledAction": "ari:acs:ess:cn-qingdao:1344371:scalingrule/qGx9feK1giadmp3XKer94cD"
- }
- ]
- }
- }