This API is used to obtain the name of a training job log file.
GET /v1/{project_id}/training-jobs/{job_id}/versions/{version_id}/log/file-names
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
project_id |
Yes |
String |
Project ID. For details about how to obtain the project ID, see Obtaining a Project ID. |
job_id |
Yes |
Long |
ID of a training job |
version_id |
Yes |
Long |
Version ID of a training job |
None
Parameter |
Type |
Description |
|---|---|---|
is_success |
Boolean |
Whether the request is successful |
error_message |
String |
Error message of a failed API call. This parameter is not included when the API call succeeds. |
error_code |
String |
Error code of a failed API call. For details, see Error Codes. This parameter is not included when the API call succeeds. |
log_file_list |
String |
Log file name of a training job. A single-node job has only one log file, and a distributed job has multiple log files. |
The following shows how to obtain the log files of the job whose job_id is 10 and version_id is 10.
GET https://endpoint/v1/{project_id}/training-jobs/10/versions/10/log/file-names
{
"is_success": true,
"log_file_list": [
"teseJob.0"
]
}
{
"is_success": false,
"error_message": "Error string",
"error_code": "ModelArts.0105"
}
For details about the status code, see Status Code.
See Error Codes.