Get Status of an Import Task

get

/v1/imports/{importId}/tasks/{taskID}

Retrieve the status for the specified import task.

Request

Path Parameters

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

The import task information was retrieved successfully.
Body ()
Root Schema : NodeChainTestUploadResponse
Type: object
The response schema to get the node chain test upload operation's information.
Show Source
Nested Schema : records
Type: array
File records part of the input file.
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : NARAttribute
Type: object
The schema that defines the details of a record attribute.
Show Source
Nested Schema : values
Type: array
The list of nested NAR attributes.
Show Source

400 Response

The server could not process the request due to a client error.
Body ()
Root Schema : Error
Type: object
Used when an API encounters an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

401 Response

The client is not authorized to perform this request.
Body ()
Root Schema : Error
Type: object
Used when an API encounters an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

403 Response

Access to the requested resource is forbidden.
Body ()
Root Schema : Error
Type: object
Used when an API encounters an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

404 Response

The specified import task could not be found.
Body ()
Root Schema : Error
Type: object
Used when an API encounters an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

405 Response

The request method is not allowed for this endpoint.
Body ()
Root Schema : Error
Type: object
Used when an API encounters an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

409 Response

A conflict occurred with the current state of the resource.
Body ()
Root Schema : Error
Type: object
Used when an API encounters an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

413 Response

The request payload is too large.
Body ()
Root Schema : Error
Type: object
Used when an API encounters an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

415 Response

The media type of the request is not supported.
Body ()
Root Schema : Error
Type: object
Used when an API encounters an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

500 Response

The server encountered an internal error while processing the request.
Body ()
Root Schema : Error
Type: object
Used when an API encounters an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source
Back to Top

Examples

The following example shows how to check the status of a specific import task by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL.

curl -X GET 'http://host:port/version/imports/{importId}/tasks/{taskID}'

Example of the Response Body

The following examples show the response body at different stages of the import process, with response code 200.

Task In-Progress

The following is an example of the response body while the task is still running.

{
  "importId": "I-5fa40130-3632-4edc-bedf-93e00b22b53b",
  "importTaskId": "IT-a828152f-0f96-419f-9aa5-963f9511dd9c",
  "startTime": "2024-04-23T08:18:45Z[UTC]",
  "status": "IMPORTING_CUSTOMIZATION",
  "taskFinished": false
}

Task Concluded

The following is an example of the response body once the task has finished or encountered an error.
{
  "endTime": "2024-04-23T08:19:55Z[UTC]",
  "importId": "I-5fa40130-3632-4edc-bedf-93e00b22b53b",
  "importTaskId": "IT-a828152f-0f96-419f-9aa5-963f9511dd9c",
  "startTime": "2024-04-23T08:18:45Z[UTC]",
  "status": "CONCLUDED",
  "taskFinished": true
}
Back to Top