ListImportTasks
Lists import tasks.
Request Syntax
GET /importtasks?maxResults=maxResults
&nextToken=nextToken
HTTP/1.1
URI Request Parameters
The request uses the following URI parameters.
- maxResults
-
The total number of records to return in the command's output.
If the total number of records available is more than the value specified,
nextToken
is provided in the command's output. To resume pagination, provide thenextToken
output value in thenextToken
argument of a subsequent command. Do not use thenextToken
response element directly outside of the Amazon CLI.Valid Range: Minimum value of 1. Maximum value of 100.
- nextToken
-
Pagination token used to paginate output.
When this value is provided as input, the service returns results from where the previous response left off. When this value is present in output, it indicates that there are more results to retrieve.
Length Constraints: Minimum length of 1. Maximum length of 8192.
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"nextToken": "string",
"tasks": [
{
"format": "string",
"graphId": "string",
"parquetType": "string",
"roleArn": "string",
"source": "string",
"status": "string",
"taskId": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
- nextToken
-
Pagination token used to paginate output.
When this value is provided as input, the service returns results from where the previous response left off. When this value is present in output, it indicates that there are more results to retrieve.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 8192.
- tasks
-
The requested list of import tasks.
Type: Array of ImportTaskSummary objects
Errors
For information about the errors that are common to all actions, see Common Errors.
- InternalServerException
-
A failure occurred on the server.
HTTP Status Code: 500
- ResourceNotFoundException
-
A specified resource could not be located.
HTTP Status Code: 404
- ThrottlingException
-
The exception was interrupted by throttling.
HTTP Status Code: 429
- ValidationException
-
A resource could not be validated.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: