Reviewed-by: Gladkov, Maksim <mgladkov@noreply.gitea.eco.tsi-dev.otc-service.com> Co-authored-by: wangdengke2 <wangdengke2@huawei.com> Co-committed-by: wangdengke2 <wangdengke2@huawei.com>
17 KiB
Obtaining Information About a Task with a Specified ID (a V3 API)
Function
This API is used to obtain information about a task with a specified ID in the DDM task center.
Constraints
None
URI
Request Parameters
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
X-Auth-Token |
Yes |
String |
User token. You can obtain the token by calling the IAM API used to obtain a user token. |
Example Request
GET https://ddm.eu-de.otc.t-systems.com/v3/619d3e78f61b4be68bc5aa0b59edcf7b/31b8ae23-c687-4d80-b7b4-42a66c9bb886
Response
- Normal response
Table 3 Response body parameters Parameter
Type
Description
job
JobInfo object
Task information.
Table 4 JobInfo Parameter
Type
Description
id
String
Task ID
name
String
Task name
For details, see Task Statuses.
status
String
Task execution status. The value can be:
Running: The task is being executed. Completed: The task is successfully executed. Failed: The task fails to be executed.
created_time
String
Creation time in the "yyyy-mm-ddThh:mm:ssZ" format.
T is the separator between the calendar and the hourly notation of time. Z indicates the time zone offset. For example, in the Central European time zone, the offset is +0100.
end_time
String
End time. The format is yyyy-mm-ddThh:mm:ssZ.
T is the separator between the calendar and the hourly notation of time. Z indicates the time zone offset. For example, in the Central European time zone, the offset is +0100.
process
String
Task execution progress
The execution progress (such as "60%", indicating the task execution progress is 60%) is displayed only when the task is being executed. Otherwise, "" is returned.
instance
Instance object
Instance on which the task is executed
- Normal response example
{ "job": { "id": "31b8ae23-c687-4d80-b7b4-42a66c9bb886", "name": "CreateInstance", "status": "Running", "created_time": "2018-08-06T10:41:14+0100", "end_time": "2018-08-06T16:41:14+0100", "process": "60%", "instance": { "id": "a48e43ff268f4c0e879652d65e63d0fbin09", "name": "DDM-test" } } }
- Abnormal response
For details, see Abnormal Request Results.
Status Codes
- Normal
- Abnormal
For details, see Status Codes.
Error Codes
For details, see Error Codes.