Get Status of an Import Task
get
/v1/imports/{importId}/tasks/{taskID}
Retrieve the status for the specified import task.
Request
Path Parameters
-
importId(required): string
The unique identifier of the import.
-
taskID(required): string
The unique identifier of the import task.
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
The import task information was retrieved successfully.
Root Schema : NodeChainTestUploadResponse
Type:
objectThe response schema to get the node chain test upload operation's information.
Show Source
-
inputType(required): string
The input file type of the uploaded file, for example, NAR, TEXT, etc.
-
records(required): array
records
File records part of the input file.
-
uploadId(required): string
The identifier of the file upload operation.
Nested Schema : items
Type:
Show Source
array-
Array of:
object NARAttribute
The schema that defines the details of a record attribute.
Nested Schema : NARAttribute
Type:
objectThe schema that defines the details of a record attribute.
Show Source
-
key: string
The name of the variable key.
-
length: integer
(int32)
The length of the value in bytes.
-
type: string
The type of value that the key holds.
-
value:
The value assigned to the variable.
-
values: array
values
The list of nested NAR attributes.
Nested Schema : values
Type:
arrayThe list of nested NAR attributes.
Show Source
-
Array of:
object NARAttribute
The schema that defines the details of a record attribute.
400 Response
The server could not process the request due to a client error.
Root Schema : Error
Type:
objectUsed when an API encounters an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source
-
@type: string
Defines the sub-class entity when sub-classing.
-
cause: string
Cause of the exception
-
code(required): string
The application relevant details defined in the API or a common list.
-
message: string
The details and corrective actions for the error shown to the client user.
-
reason(required): string
The reason for the error, which is shown to a client user.
-
referenceError: string
(uri)
URI of documentation describing the error
-
status: string
HTTP Error code extension
401 Response
The client is not authorized to perform this request.
Root Schema : Error
Type:
objectUsed when an API encounters an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source
-
@type: string
Defines the sub-class entity when sub-classing.
-
cause: string
Cause of the exception
-
code(required): string
The application relevant details defined in the API or a common list.
-
message: string
The details and corrective actions for the error shown to the client user.
-
reason(required): string
The reason for the error, which is shown to a client user.
-
referenceError: string
(uri)
URI of documentation describing the error
-
status: string
HTTP Error code extension
403 Response
Access to the requested resource is forbidden.
Root Schema : Error
Type:
objectUsed when an API encounters an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source
-
@type: string
Defines the sub-class entity when sub-classing.
-
cause: string
Cause of the exception
-
code(required): string
The application relevant details defined in the API or a common list.
-
message: string
The details and corrective actions for the error shown to the client user.
-
reason(required): string
The reason for the error, which is shown to a client user.
-
referenceError: string
(uri)
URI of documentation describing the error
-
status: string
HTTP Error code extension
404 Response
The specified import task could not be found.
Root Schema : Error
Type:
objectUsed when an API encounters an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source
-
@type: string
Defines the sub-class entity when sub-classing.
-
cause: string
Cause of the exception
-
code(required): string
The application relevant details defined in the API or a common list.
-
message: string
The details and corrective actions for the error shown to the client user.
-
reason(required): string
The reason for the error, which is shown to a client user.
-
referenceError: string
(uri)
URI of documentation describing the error
-
status: string
HTTP Error code extension
405 Response
The request method is not allowed for this endpoint.
Root Schema : Error
Type:
objectUsed when an API encounters an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source
-
@type: string
Defines the sub-class entity when sub-classing.
-
cause: string
Cause of the exception
-
code(required): string
The application relevant details defined in the API or a common list.
-
message: string
The details and corrective actions for the error shown to the client user.
-
reason(required): string
The reason for the error, which is shown to a client user.
-
referenceError: string
(uri)
URI of documentation describing the error
-
status: string
HTTP Error code extension
409 Response
A conflict occurred with the current state of the resource.
Root Schema : Error
Type:
objectUsed when an API encounters an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source
-
@type: string
Defines the sub-class entity when sub-classing.
-
cause: string
Cause of the exception
-
code(required): string
The application relevant details defined in the API or a common list.
-
message: string
The details and corrective actions for the error shown to the client user.
-
reason(required): string
The reason for the error, which is shown to a client user.
-
referenceError: string
(uri)
URI of documentation describing the error
-
status: string
HTTP Error code extension
413 Response
The request payload is too large.
Root Schema : Error
Type:
objectUsed when an API encounters an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source
-
@type: string
Defines the sub-class entity when sub-classing.
-
cause: string
Cause of the exception
-
code(required): string
The application relevant details defined in the API or a common list.
-
message: string
The details and corrective actions for the error shown to the client user.
-
reason(required): string
The reason for the error, which is shown to a client user.
-
referenceError: string
(uri)
URI of documentation describing the error
-
status: string
HTTP Error code extension
415 Response
The media type of the request is not supported.
Root Schema : Error
Type:
objectUsed when an API encounters an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source
-
@type: string
Defines the sub-class entity when sub-classing.
-
cause: string
Cause of the exception
-
code(required): string
The application relevant details defined in the API or a common list.
-
message: string
The details and corrective actions for the error shown to the client user.
-
reason(required): string
The reason for the error, which is shown to a client user.
-
referenceError: string
(uri)
URI of documentation describing the error
-
status: string
HTTP Error code extension
500 Response
The server encountered an internal error while processing the request.
Root Schema : Error
Type:
objectUsed when an API encounters an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source
-
@type: string
Defines the sub-class entity when sub-classing.
-
cause: string
Cause of the exception
-
code(required): string
The application relevant details defined in the API or a common list.
-
message: string
The details and corrective actions for the error shown to the client user.
-
reason(required): string
The reason for the error, which is shown to a client user.
-
referenceError: string
(uri)
URI of documentation describing the error
-
status: string
HTTP Error code extension
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
}