Obtaining the status of the task by using API
Request URL
https://<host_name>/opt/api/v1/backend/etls/<etl-id>/status
Example request URL
https://hostname.bmc.com/opt/api/v1/backend/etls/321/status
Request Header
Content-Type: application/json
Authorization: Bearer <jwttoken>
Authorization: Bearer <jwttoken>
Sample response
Example 1
{
"status": "ENDED",
"task_id": 467,
"exit_code": "ERROR",
"last_exec_ts": "2022-09-06T12:07:34Z"
}
"status": "ENDED",
"task_id": 467,
"exit_code": "ERROR",
"last_exec_ts": "2022-09-06T12:07:34Z"
}
Example 2
{
"status": "ENDED",
"task_id": 321,
"exit_code": "OK",
"last_exec_ts": "2022-09-08T14:56:28Z"
}
"status": "ENDED",
"task_id": 321,
"exit_code": "OK",
"last_exec_ts": "2022-09-08T14:56:28Z"
}
Status codes and messages
HTTP code | Message | Description |
|---|---|---|
204 | OK | Request succeeded |
400 | ETL not found | |
500 | Error |
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*