Skip to main content

Query Task Log Files

更新时间:2025-05-08 14:32:25
Query the list of task log files.
GET
https://api.alayanew.com/api/serverless-train/v1/task/{id}/logfile/list
Authorizations
AuthorizationsStringHeaderRequired

用户可通过已获取Open API Key做验证,例如:plain Credential=[YOUR_AK],Signature=[YOUR_SK]。

Path Parameters
idStringRequired

Task ID.

Response
状态码:application/json
codeInt

code is a common return value format representing the execution result of the query operation.

0 is the success identifier, indicating the operation completed successfully.
dataArray

msgStringRequired

Returns exception information when the code value is -1.

curl -X GET 'https://api.alayanew.com/api/serverless-train/v1/task/506927a1-1883-4413-abad-0de1ff309023/logfile/list' 
     -H 'Authorization: plain Credential=YOUR_AK,Signature=YOUR_SK'
{
    "code": 0,
    "data": [
        {
            "fileName": "worker-0.log",
            "createdTime": "2025-01-09 14:44:39",
            "filePath": "task/506927a1-1883-4413-abad-0de1ff309023/logs/worker-0.log",
        }
    ]
}