Obtains the node logs of a pipeline job.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resourcesis used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
| Operation | Access level | Resource type | Condition key | Associated operation |
|---|---|---|---|---|
| paiflow:ListPipelineRunNodeLogs | list | *All Resources * |
| none |
Request syntax
GET /api/v1/pipelineruns/{PipelineRunId}/nodes/{NodeId}/logs HTTP/1.1
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| PipelineRunId | string | Yes | The ID of the pipeline job. You can call ListPipelineRuns to obtain the ID of the pipeline job. | flow-73186********nku43 |
| NodeId | string | Yes | The ID of the node on which the pipeline job is executed. You can call ListPipelineRuns to obtain the node ID. | node-hh5yc********mz8ms |
| 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 | long | No | The beginning of the time range to query. This value is a timestamp. Unit: seconds. | 1612180056 |
| Keyword | string | No | The search keyword. Fuzzy match is supported. | abc |
| Reverse | boolean | No | Specifies whether the logs are sorted in descending order. Valid values:
| false |
| ToTimeInSeconds | long | No | The end of the time range to query. This value is a timestamp. Unit: 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 parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "473469C7-****-****-****-A3DC0DE3C83E",
"TotalCount": 10,
"Logs": [
"abc"
]
}Error codes
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|---|---|
| 2024-07-24 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
| 2023-12-21 | The request parameters of the API has changed | View Change Details |
| 2022-06-14 | Add Operation | View Change Details |
