Task get request
Description
This API retrieves the Task object specified by the guid in the URI.
API stability classification
API overview
HTTP | URI | Return | Return type |
---|---|---|---|
GET | csm/Task/guid | 0..1 |
HTTP request message
Query string parameters
This API does not use query string parameters.
Request message headers
This API uses only common headers listed in HTTP-request-and-response-headers.
HTTP response message
Response message headers
This API uses only common headers listed in HTTP-request-and-response-headers.
Response message body
The response message body contains a Task object.
Example
The following sample shows the response for the start compute operation in which the unique task ID is associated with the task:
URL Syntax: /csm/task/taskInternalUUID/result
[
{
"cloudClass": "com.bmc.cloud.model.beans.Task",
"className": "ComputeContainer",
"completionTime": "$$*$$",
"creationTime": "$$*$$",
"errors": "$$*$$",
"guid": "$$*$$",
"isCallout": false,
"isError": false,
"isSuccess": true,
"operationName": "start",
"parentTaskInternalUUID": "$$*$$",
"results": "$$*$$",
"taskInternalUUID": "$$*$$",
"taskProgress": "$$*$$",
"taskResultURI": "$$*$$",
"taskState": "COMPLETED",
"taskStatusURI": "$$*$$",
"taskSubState": "task_success_final",
"transactionID": "$$*$$"
}
]
[
{
"cloudClass": "com.bmc.cloud.model.beans.Task",
"className": "ComputeContainer",
"completionTime": "$$*$$",
"creationTime": "$$*$$",
"errors": "$$*$$",
"guid": "$$*$$",
"isCallout": false,
"isError": false,
"isSuccess": true,
"operationName": "start",
"parentTaskInternalUUID": "$$*$$",
"results": "$$*$$",
"taskInternalUUID": "$$*$$",
"taskProgress": "$$*$$",
"taskResultURI": "$$*$$",
"taskState": "COMPLETED",
"taskStatusURI": "$$*$$",
"taskSubState": "task_success_final",
"transactionID": "$$*$$"
}
]
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*