Mengkueri informasi tentang sebuah node. Sebuah pekerjaan pipeline berisi berbagai node.
Deskripsi operasi
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.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
paiflow:GetPipelineRunNode |
get |
*All Resource
|
None | None |
Sintaks permintaan
GET /api/v1/pipelineruns/{PipelineRunId}/nodes/{NodeId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PipelineRunId |
string |
Yes |
ID pekerjaan pipeline. Anda dapat memanggil ListPipelineRuns untuk mendapatkan ID pekerjaan pipeline. |
flow-ebppc********5lwea |
| NodeId |
string |
Yes |
ID sebuah node dalam pekerjaan pipeline. Anda dapat memanggil ListPipelineRuns untuk mendapatkan ID node. |
node-wcs9z********27ps3 |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Depth |
integer |
No |
Kedalaman tempat informasi tentang node dikueri. Jika Anda mengatur Depth menjadi 2, informasi tentang node dan semua node turunannya di lapisan berikutnya akan dikembalikan. |
2 |
| Type |
string |
No |
Tipe node. Nilai valid:
|
Logical |
| TokenId |
string |
No |
ID pekerjaan pipeline yang dibagikan. |
https://pai.console.alibabacloud.com/?regionId=cn-hangzhou&workspaceId=102******&mode=noSidebar#/paiflow/pipeline-runs/flow-6y7******?Token=eyJ0e****** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
0a981ea816**********42244e7ba2 |
| ApiVersion |
string |
The version defined in the pipeline. |
core/v1 |
| Metadata |
object |
The node metadata. |
|
| NodeId |
string |
The node ID. |
node-wcs9z********27ps3 |
| Provider |
string |
The provider of the pipeline for the node. In most cases, this parameter indicates the uploader of the pipeline. If the pipeline is officially provided, the parameter value is PAI. |
15577********904 |
| Name |
string |
The node name. |
flow-ebppc********5lwea |
| Version |
string |
The version of the pipeline for the node. |
v1 |
| Identifier |
string |
The identifier of the pipeline for the node. |
composite-pipeline |
| NodeType |
string |
The node type. Valid values:
|
Dag |
| RelatedNodeIds |
array |
The ID of the physical node corresponding to the Alink logical node or the ID of the logical node corresponding to the Alink physical node. |
|
|
string |
The node ID. |
node-wcs9z********27ps3 |
|
| DisplayName |
string |
The display name of the node, which can be modified. |
flow-ebppc********5lwea |
| Spec |
object |
The node specifications. |
|
| HasPipelines |
boolean |
Indicates whether the node contains child nodes. Valid values:
|
true |
| Dependencies |
array |
The dependencies between the node and other nodes. |
|
|
string |
The name of the pipeline for other nodes that the node depends on. |
"single-node-sub1" |
|
| Pipelines |
array<object> |
The child nodes. |
|
|
object |
The child node. |
详细结构参见Pipeline相关接口描述。 |
|
| Inputs |
object |
The input information about of the node. |
|
| Artifacts |
array<object> |
The node inputs. |
|
|
object |
The node input. |
{"Name":"input","Value":"******"} |
|
| Parameters |
array<object> |
The input parameters of the node. |
|
|
object |
The input parameter of the node. |
{"Name":"inputTable","Value":"******"} |
|
| Outputs |
object |
The output information about of the node. |
|
| Artifacts |
array<object> |
The node outputs. |
|
|
object |
The node output. |
{"Name":"output","Value":"******"} |
|
| Parameters |
array<object> |
The output parameters of the node. |
|
|
object |
The output parameter of the node. |
{"Name":"outputTable","Value":"******"} |
|
| When |
string |
The condition on which the node runs.
|
”{{inputs.parameters.skip}} == false“ |
| WithItems |
array |
Expands one pipeline node into multiple pipeline nodes. |
|
|
string |
Expands an item in the dataset into a pipeline node. |
abc |
|
| WithParam |
string |
Expands each item in an array that is the value type of a parameter into a pipeline node. |
"{{pipelines.generate.outputs.result}}" |
| WithSequence |
object |
Expands each item of a numerical sequence into a pipeline node. |
|
| Start |
integer |
The start number of the numerical sequence. |
1 |
| End |
integer |
The end number of the numerical sequence. |
10 |
| Format |
string |
Formats the value of the numerical sequence. |
"2020-05-%d" |
| Parallelism |
integer |
The maximum parallelism of the nodes. |
2 |
| StatusInfo |
object |
The execution status of the node. |
|
| FinishedAt |
string |
The time when the node finished execution. |
2021-10-15T10:40:54.000Z |
| StartedAt |
string |
The time when the node started to execute. |
2021-10-15T10:39:58.000Z |
| Status |
string |
The running status of the node. Valid values:
|
Succeeded |
| Conditions |
array<object> |
The running conditions of the node. |
|
|
object |
The running condition of the node. |
{"ArtifactArchived": "true"} |
|
| Progress |
string |
The running progress of the node. |
9/9 |
Contoh
Respons sukses
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"
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.