Retrieves the logs of a node in a pipeline job.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
paiflow:ListPipelineRunNodeLogs |
list |
*All Resource
|
None | None |
Request syntax
GET /api/v1/pipelineruns/{PipelineRunId}/nodes/{NodeId}/logs HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PipelineRunId |
string |
Yes |
The pipeline job ID. Call ListPipelineRuns to obtain this ID. |
flow-73186********nku43 |
| NodeId |
string |
Yes |
The ID of the node in the pipeline job. Call ListPipelineRuns to obtain this ID. |
node-hh5yc********mz8ms |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Offset |
integer |
No |
The offset from which the data is returned. Default value: 0. |
0 |
| PageSize |
integer |
No |
The number of logs returned per page. |
100 |
| FromTimeInSeconds |
integer |
No |
The start of the time range to query, as a UNIX timestamp in seconds. |
1612180056 |
| Keyword |
string |
No |
The search keyword. Fuzzy match is supported. |
abc |
| Reverse |
boolean |
No |
Whether to sort logs in descending order. Valid values:
|
false |
| ToTimeInSeconds |
integer |
No |
The end of the time range to query, as a UNIX timestamp in seconds. |
1612180056 |
| TokenId |
string |
No |
The ID of the shared pipeline job. |
https://pai.console.alibabacloud.com/?regionId=cn-hangzhou&workspaceId=102******&mode=noSidebar#/paiflow/pipeline-runs/flow-6y7******?Token=eyJ0e****** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned data. |
||
| RequestId |
string |
The request ID. |
473469C7-****-****-****-A3DC0DE3C83E |
| TotalCount |
integer |
The total number of types that meet the filter conditions. |
10 |
| Logs |
array |
The returned logs. |
|
|
string |
The queried logs. |
abc |
Examples
Success response
JSON format
{
"RequestId": "473469C7-****-****-****-A3DC0DE3C83E",
"TotalCount": 10,
"Logs": [
"abc"
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.