Viewing the Job List

Function

This API is used to query the job list in the logs of a cluster.

Debugging

You can debug this API in . Automatic authentication is supported.

URI

GET /v1.0/{project_id}/clusters/{cluster_id}/logs/records

Table 1 Path parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID. For details, see Obtaining a Project ID and Name.

cluster_id

Yes

String

ID of the cluster to be queried

Request Parameters

None

Response Parameters

Status code: 200

Table 2 Response body parameter

Parameter

Type

Description

clusterLogRecord

Array of clusterLogRecord objects

Entity object of cluster log records

Table 3 clusterLogRecord

Parameter

Type

Description

id

String

Log task ID, which is generated based on the system UUID.

clusterId

String

Cluster ID

createAt

String

Creation time. Format: Unix timestamp.

logPath

String

Storage path of backup logs in the OBS bucket

status

String

Task status. The value can be:

  • RUNNING: The backup is in progress.

  • SUCCESS: The backup is successful.

  • FAIL: The backup fails.

finishedAt

Long

End time. If the creation has not been completed, the end time is null. Format: Unix timestamp.

jobTypes

String

Task type. The value can be:

  • Manual

  • Auto

failedMsg

String

Error message. If the task is not failed, the value of this parameter is null.

jobId

String

Task ID