Get background task result
Returns result of an asynchronous operation, e.g. database service configuration.
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string The requested task Id. |
Request Examples
onepanel-rest-cli -u onepanel:$PASSPHRASE getTaskStatus id=$TASK_ID --host https://$HOST:9443Responses
The requested task status.
| Property | Type & Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|
status string The operation status. Enum: okerrorrunning | |||||||||
steps array of strings The list of operation steps that have been executed successfully. | |||||||||
totalSteps integer Total number of steps to be executed. | |||||||||
error object (Error) The generic error model for REST requests.
| |||||||||
Example
{
"status": "running",
"steps": [
"configuring"
],
"totalSteps": 3
}Unauthorized request.
Forbidden request.
The task does not exist.
Internal server error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}