Querying Batch Job Logs

Function

This API is used to query the back-end logs of batch processing jobs.

URI

Request

None

Response

Table 3 Response parameters

Parameter

Mandatory

Type

Description

id

No

String

ID of a batch processing job.

from

No

String

Start index of a log.

total

No

Long

Total number of records in a log.

log

No

Array of Strings

Log of the current batch processing job.

Example Request

None

Example Response

{
    "id": "0a324461-d9d9-45da-a52a-3b3c7a3d809e",
    "from": 0,
    "total": 3,
    "log": [
           "Detailed information about job logs"
    ]
}

Status Codes

Table 4 describes the status code.

Table 4 Status codes

Status Code

Description

200

The query is successful.

400

Request error.

500

Internal service error.

Error Codes

If an error occurs when this API is invoked, the system does not return the result similar to the preceding example, but returns the error code and error information. For details, see Error Code.