Asynchronous Data Extraction Request Status
Use the getExtractStatus REST API to retrieve the execution status and summary of an asynchronous data extraction request.
When you submit an asynchronous extract using the runExtract REST API, the response includes a request ID. Use this ID to monitor the extraction request. You can also monitor an extraction request submitted from the Extract Schedules page by using its request ID.
Request Format
Submit a GET request to the following endpoint:
https://<host:port>/fscmRestApi/scm/redwood/11.13.18.05/getExtractStatus
Include the extraction request ID as the RequestId query parameter. For example:
GET https://<host:port>/fscmRestApi/scm/redwood/11.13.18.05/getExtractStatus?RequestId=169884Response Attributes
| Attribute | Description |
|---|---|
| Status | Status returned by the API. Possible values are: In progress, Succeeded, and Error. |
| ExecutionSummary | Object that contains the extraction execution summary. |
| ExecutionSummary.requestId | Identifier of the extraction request. |
| ExecutionSummary.summaryStatus | Overall status of the extraction request. |
| ExecutionSummary.extractDefinitionName | Name of the extract definition. |
| ExecutionSummary.storage | Storage destination for the extract output. |
| ExecutionSummary.outputFilesUrl | URL for retrieving the output files. This value can be null while the extraction is in progress. |
| ExecutionSummary.totalExtracts | Total number of extracts in the request. |
| ExecutionSummary.successfulExtracts | Number of extracts that completed successfully. |
| ExecutionSummary.failedExtracts | Number of extracts that failed. |
| ExecutionSummary.extractionDetails | Array that contains details for each extract. |
| ExecutionSummary.extractionDetails[].extractName | Name of the extract query. |
| ExecutionSummary.extractionDetails[].status | Status of the individual extract. |
Response Examples
Extract in Progress
{
"Status": "In progress",
"ExecutionSummary": {
"requestId": 169884,
"summaryStatus": "In progress",
"extractDefinitionName": "LaptopManufacturerPartyExtract",
"storage": "ObjectStorage",
"outputFilesUrl": null,
"totalExtracts": 1,
"successfulExtracts": 0,
"failedExtracts": 0,
"extractionDetails": [
{
"extractName": "LaptopManufacturerPartyQuery",
"status": "In progress"
}
]
}
}Some Extracts Completed
The following example shows a request that is still in progress because one extract has completed and another extract is still running.
{
"Status": "In progress",
"ExecutionSummary": {
"requestId": 169884,
"summaryStatus": "In progress",
"extractDefinitionName": "LaptopManufacturerPartyExtract",
"storage": "ObjectStorage",
"outputFilesUrl": null,
"totalExtracts": 2,
"successfulExtracts": 1,
"failedExtracts": 0,
"extractionDetails": [
{
"extractName": "LaptopManufacturerPartyQuery",
"status": "Succeeded"
},
{
"extractName": "ExampleAdditionalQuery",
"status": "In progress"
}
]
}
}
All Extracts Completed
The following example shows a completed extraction request. The response includes the URL for retrieving the output files.
{
"Status": "Succeeded",
"ExecutionSummary": {
"requestId": 169884,
"summaryStatus": "Succeeded",
"extractDefinitionName": "LaptopManufacturerPartyExtract",
"storage": "ObjectStorage",
"outputFilesUrl": "https://<host:port>/api/saas-batch/jobfilemanager/v1/jobRequests/169884/outputFiles",
"totalExtracts": 1,
"successfulExtracts": 1,
"failedExtracts": 0,
"extractionDetails": [
{
"extractName": "LaptopManufacturerPartyQuery",
"status": "Succeeded"
}
]
}
}
Invalid Request ID
{
"Status": "Error",
"ExecutionSummary": {}
}