Files
doc-exports/docs/ddm/api-ref/ddm_api_01_0112.html
wangdengke2 823df869a9 ddm_api
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>
2026-03-03 12:01:43 +00:00

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

  • URL format

    GET /v3/{project_id}/jobs/{job_id}

  • Parameter description
    Table 1 Parameter descriptions

    Parameter

    Mandatory

    Type

    Description

    project_id

    Yes

    String

    Project ID of a tenant in a region.

    job_id

    Yes

    String

    Task ID

Request Parameters

Table 2 Request header 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

Obtaining information about a task with a specified ID
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

    Table 5 Instance

    Parameter

    Type

    Description

    id

    String

    Instance ID

    name

    String

    Instance name

  • 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"
            }
        }
    }

Status Codes

Error Codes

For details, see Error Codes.