Description
The QueryTaskInfoHistory API queries the list of historical domain name tasks under the current account and returns the results by page.
Request parameters
For more information about public request parameters, see Public parameters.
Parameter |
Type |
Required |
Description |
Action |
String |
Yes |
The API name, a system required parameter. Set this parameter to QueryTaskInfoHistory . |
PageSize |
Integer |
Yes |
Page size. |
BeginCreateTime |
Long |
No |
Start time of the period in which the domain name tasks are queried by creation date, expressed by the number of milliseconds between the start time and the UTC time 00:00 on January 1, 1970. Currently, only query by day is supported. |
EndCreateTime |
Long |
No |
End time of the period in which the domain name tasks are queried by creation date, expressed by the number of milliseconds between the end time and the UTC time 00:00 on January 1, 1970. Currently, only query by day is supported. |
CreateTimeCursor |
String |
No |
Creation date cursor. |
TaskNoCursor |
String |
No |
Task cursor. When you turn pages, this is task number in the corresponding page cursor. |
Response parameters
Error codes
Error code |
Description |
HTTP status code |
Description |
ParameterIllegal |
Parameter illegal. |
400 |
Parameter error. |
|
NetworkIOError |
Network IO Error. |
400 |
Network I/O exception. |
Samples
Sample request
http://domain-intl.aliyuncs.com/?Action=QueryTaskInfoHistory
&PageSize=2
&<Public request parameter>
Sample response
<?xml version='1.0' encoding='UTF-8'?>
<QueryTaskInfoHistoryResponse>
<Objects>
<TaskInfoHistory>
<Clientip>127.0.0.1</Clientip>
<TaskNo>aa634d3f-927e-4d17-9d2c-test</TaskNo>
<CreateTime>2017-11-01 17:22:51</CreateTime>
<TaskStatus>COMPLETE</TaskStatus>
<TaskNum>1</TaskNum>
<TaskStatusCode>3</TaskStatusCode>
<TaskType>CHG_DNS</TaskType>
<CreateTimeLong>1509528171000</CreateTimeLong>
</TaskInfoHistory>
<TaskInfoHistory>
<Clientip>127.0.0.1</Clientip>
<TaskNo>f9baa3d5-33b9-4c81-8847-test</TaskNo>
<CreateTime>2017-11-01 17:19:47</CreateTime>
<TaskStatus>COMPLETE</TaskStatus>
<TaskNum>15</TaskNum>
<TaskStatusCode>3</TaskStatusCode>
<TaskType>CHG_DNS</TaskType>
<CreateTimeLong>1509527987000</CreateTimeLong>
</TaskInfoHistory>
</Objects>
<PageSize>2</PageSize>
<NextPageCursor>
<TaskNo>8f112aa1-98be-48c3-82f8-test</TaskNo>
<CreateTime>2017-10-27 13:07:07</CreateTime>
<CreateTimeLong>1509080827000</CreateTimeLong>
</NextPageCursor>
<RequestId>EB3FCCBA-CA1F-4D31-9F34-test</RequestId>
<CurrentPageCursor>
<Clientip>127.0.0.1</Clientip>
<TaskNo>aa634d3f-927e-4d17-9d2c-test</TaskNo>
<CreateTime>2017-11-01 17:22:51</CreateTime>
<TaskStatus>COMPLETE</TaskStatus>
<TaskNum>1</TaskNum>
<TaskStatusCode>3</TaskStatusCode>
<TaskType>CHG_DNS</TaskType>
<CreateTimeLong>1509528171000</CreateTimeLong>
</CurrentPageCursor>
</QueryTaskInfoHistoryResponse>
{
"currentPageCursor": {
"clientip": "127.0.0.1",
"createTime": "2017-11-01 17:22:51",
"createTimeLong": 1509528171000,
"taskNo": "aa634d3f-927e-4d17-9d2c-test",
"taskNum": 1,
"taskStatus": "COMPLETE",
"taskStatusCode": 3,
"taskType": "CHG_DNS"
},
"nextPageCursor": {
"createTime": "2017-10-27 13:07:07",
"createTimeLong": 1509080827000,
"taskNo": "8f112aa1-98be-48c3-82f8-test"
},
"objects": [
{
"clientip": "127.0.0.1",
"createTime": "2017-11-01 17:22:51",
"createTimeLong": 1509528171000,
"taskNo": "aa634d3f-927e-4d17-9d2c-test",
"taskNum": 1,
"taskStatus": "COMPLETE",
"taskStatusCode": 3,
"taskType": "CHG_DNS"
},
{
"clientip": "127.0.0.1",
"createTime": "2017-11-01 17:19:47",
"createTimeLong": 1509527987000,
"taskNo": "f9baa3d5-33b9-4c81-8847-test",
"taskNum": 15,
"taskStatus": "COMPLETE",
"taskStatusCode": 3,
"taskType": "CHG_DNS"
}
],
"pageSize": 2,
"prePageCursor": {},
"requestId": "6EB5D9B8-AD99-4423-9D02-test"
}