Queries information about a node. A pipeline job contains a variety of nodes.
Operation description
PAIFlow supports composite pipelines, which are reflected as composite nodes during running. To obtain information about such nodes, you can configure the Depth parameter (default value: 2). You can configure the Depth parameter to recursively obtain information about the queried node and its child nodes.
A virtual root node exists each time a pipeline runs. You can call GetRun to obtain the root node. You can call GetNode to query the root node. The returned result also includes information about all nodes that run and their hierarchies.
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:GetPipelineRunNode | get | *All Resources * |
| none |
Request syntax
GET /api/v1/pipelineruns/{PipelineRunId}/nodes/{NodeId} 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-ebppc********5lwea |
| NodeId | string | Yes | The ID of a node in the pipeline job. You can call ListPipelineRuns to obtain the node ID. | node-wcs9z********27ps3 |
| Depth | integer | No | The depth at which information about the node is queried. If you set Depth to 2, the information about the node and all its child nodes at the next layer is returned. | 2 |
| Type | string | No | The node type. Valid values:
| Logical |
| 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": "0a981ea816**********42244e7ba2",
"ApiVersion": "core/v1",
"Metadata": {
"NodeId": "node-wcs9z********27ps3",
"Provider": "15577********904",
"Name": "flow-ebppc********5lwea",
"Version": "v1",
"Identifier": "composite-pipeline",
"NodeType": "Dag",
"RelatedNodeIds": [
"node-wcs9z********27ps3"
],
"DisplayName": "flow-ebppc********5lwea"
},
"Spec": {
"HasPipelines": true,
"Dependencies": [
"single-node-sub1"
],
"Pipelines": [
{
"test": "test",
"test2": 1
}
],
"Inputs": {
"Artifacts": [
{
"Name": "input",
"Value": "******"
}
],
"Parameters": [
{
"Name": "inputTable",
"Value": "******"
}
]
},
"Outputs": {
"Artifacts": [
{
"Name": "output",
"Value": "******"
}
],
"Parameters": [
{
"Name": "outputTable",
"Value": "******"
}
]
},
"When": "”{{inputs.parameters.skip}} == false“",
"WithItems": [
"abc"
],
"WithParam": "{{pipelines.generate.outputs.result}}",
"WithSequence": {
"Start": 1,
"End": 10,
"Format": "2020-05-%d"
},
"Parallelism": 2
},
"StatusInfo": {
"FinishedAt": "2021-10-15T10:40:54.000Z",
"StartedAt": "2021-10-15T10:39:58.000Z",
"Status": "Succeeded",
"Conditions": [
{
"ArtifactArchived": true
}
],
"Progress": "9/9"
}
}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-07-06 | The response structure of the API has changed | View Change Details |
| 2022-06-14 | Add Operation | View Change Details |
