Retrieve cycle state
To read the current cycle state, perform the following HTTP request.
GET "https://<hostname>/mining/api/pub/dataIngestion/v1/dataSets/<data set>/ingestionCycles/<ingestion cycle>/state"
If the data ingestion failed, you receive a response with the corresponding reason:
{
"value": "FAILED",
"cause": {
"code": "IER1000",
"message": "An unexpected error occurred"
}
}
Otherwise, the ingestion status can be INGESTING_DATA if the cycle is still running, COMPLETED_SUCCESSFULLY if it went through without any problems, or CANCELED if it was aborted (for example, using the API).