功能介紹
獲取指定函數(shù)流執(zhí)行實(shí)例
調(diào)試
您可以在API Explorer中調(diào)試該接口,支持自動(dòng)認(rèn)證鑒權(quán)。API Explorer可以自動(dòng)生成SDK代碼示例,并提供SDK代碼示例調(diào)試功能。
URI
GET /v2/{project_id}/fgs/workflows/{workflow_id}/executions/{execution_id}
|
參數(shù) |
是否必選 |
參數(shù)類(lèi)型 |
描述 |
|---|---|---|---|
|
project_id |
是 |
String |
項(xiàng)目ID,獲取方式請(qǐng)參見(jiàn)獲取項(xiàng)目ID。 最小長(zhǎng)度:1 最大長(zhǎng)度:64 |
|
workflow_id |
是 |
String |
函數(shù)工作流 ID 最小長(zhǎng)度:1 最大長(zhǎng)度:512 |
|
execution_id |
是 |
String |
函數(shù)流執(zhí)行實(shí)例ID 最小長(zhǎng)度:1 最大長(zhǎng)度:64 |
請(qǐng)求參數(shù)
|
參數(shù) |
是否必選 |
參數(shù)類(lèi)型 |
描述 |
|---|---|---|---|
|
X-Get-Workflow-Full-History-Data |
否 |
Boolean |
獲取函數(shù)流執(zhí)行詳情完整輸出值 |
響應(yīng)參數(shù)
狀態(tài)碼: 200
|
參數(shù) |
參數(shù)類(lèi)型 |
描述 |
|---|---|---|
|
workflow_id |
String |
流程定義ID 最小長(zhǎng)度:1 最大長(zhǎng)度:64 |
|
workflow_urn |
String |
函數(shù)工作流URN, 格式為:urn:fss:<region_id>:<project_id>:workflow:<package>:<workflow_name>:<version>注意:package當(dāng)前只支持defaultversion當(dāng)前只支持latest |
|
execution_id |
String |
流程執(zhí)行實(shí)例ID 最小長(zhǎng)度:1 最大長(zhǎng)度:64 |
|
status |
String |
流程實(shí)例執(zhí)行狀態(tài) 最小長(zhǎng)度:1 最大長(zhǎng)度:32 枚舉值:
|
|
headers |
Object |
函數(shù)執(zhí)行時(shí)需要的Header |
|
input |
Object |
函數(shù)執(zhí)行時(shí)的入?yún)?/p> |
|
output |
Object |
函數(shù)執(zhí)行結(jié)果 |
|
begin_time |
String |
流程實(shí)例創(chuàng)建時(shí)間,格式:yyyy-MM-ddTHH:mm:ssZ,UTC時(shí)間 最小長(zhǎng)度:0 最大長(zhǎng)度:64 |
|
end_time |
String |
流程實(shí)例結(jié)束時(shí)間,格式:yyyy-MM-ddTHH:mm:ssZ,UTC時(shí)間 最小長(zhǎng)度:0 最大長(zhǎng)度:64 |
|
last_update_time |
String |
流程實(shí)例上次更新時(shí)間,格式:yyyy-MM-ddTHH:mm:ssZ,UTC時(shí)間 最小長(zhǎng)度:0 最大長(zhǎng)度:64 |
|
created_by |
String |
流程實(shí)例創(chuàng)建者 最小長(zhǎng)度:1 最大長(zhǎng)度:32 |
|
node_execution_details |
節(jié)點(diǎn)執(zhí)行信息 |
|
參數(shù) |
參數(shù)類(lèi)型 |
描述 |
|---|---|---|
|
node_id |
String |
流程節(jié)點(diǎn)ID 最小長(zhǎng)度:1 最大長(zhǎng)度:64 |
|
node_name |
String |
流程節(jié)點(diǎn)名稱 |
|
execution_id |
String |
流程節(jié)點(diǎn)執(zhí)行ID |
|
executions |
節(jié)點(diǎn)執(zhí)行記錄 |
|
參數(shù) |
參數(shù)類(lèi)型 |
描述 |
|---|---|---|
|
status |
String |
流程節(jié)點(diǎn)執(zhí)行狀態(tài) 最小長(zhǎng)度:1 最大長(zhǎng)度:32 枚舉值:
|
|
input |
Object |
函數(shù)執(zhí)行時(shí)的入?yún)?/p> |
|
output |
Object |
函數(shù)執(zhí)行結(jié)果 |
|
begin_time |
Long |
節(jié)點(diǎn)啟動(dòng)時(shí)間,UTC毫秒時(shí)間戳格式 最小值:0 最大值:99999999999999999 |
|
end_time |
Long |
節(jié)點(diǎn)結(jié)束時(shí)間,UTC毫秒時(shí)間戳格式 最小值:0 最大值:99999999999999999 |
|
error_message |
Object |
節(jié)點(diǎn)錯(cuò)誤信息,僅在節(jié)點(diǎn)出錯(cuò)時(shí)非空 |
|
request_id |
String |
流程節(jié)點(diǎn)請(qǐng)求ID |
狀態(tài)碼: 400
|
參數(shù) |
參數(shù)類(lèi)型 |
描述 |
|---|---|---|
|
error_code |
String |
錯(cuò)誤碼 最小長(zhǎng)度:1 最大長(zhǎng)度:36 |
|
error_msg |
String |
錯(cuò)誤描述 最小長(zhǎng)度:2 最大長(zhǎng)度:512 |
|
request_id |
String |
請(qǐng)求ID 最小長(zhǎng)度:2 最大長(zhǎng)度:512 |
狀態(tài)碼: 404
|
參數(shù) |
參數(shù)類(lèi)型 |
描述 |
|---|---|---|
|
error_code |
String |
錯(cuò)誤碼 最小長(zhǎng)度:1 最大長(zhǎng)度:36 |
|
error_msg |
String |
錯(cuò)誤描述 最小長(zhǎng)度:2 最大長(zhǎng)度:512 |
狀態(tài)碼: 500
|
參數(shù) |
參數(shù)類(lèi)型 |
描述 |
|---|---|---|
|
error_code |
String |
錯(cuò)誤碼 最小長(zhǎng)度:1 最大長(zhǎng)度:36 |
|
error_msg |
String |
錯(cuò)誤描述 最小長(zhǎng)度:2 最大長(zhǎng)度:512 |
|
request_id |
String |
請(qǐng)求ID 最小長(zhǎng)度:2 最大長(zhǎng)度:512 |
請(qǐng)求示例
獲取函數(shù)流id為{workflow_id}并且執(zhí)行實(shí)例id為{execution_id}的函數(shù)流執(zhí)行實(shí)例詳情。
GET /v2/{project_id}/fgs/workflows/{workflow_id}/executions/{execution_id}
響應(yīng)示例
狀態(tài)碼: 200
OK
{
"workflow_id" : "48aff955-ea10-4ffd-b426-190bc192dc14",
"workflow_urn" : "urn:fss:cn-north-7:73d69ae0cfcf460190522d060f05ad:workflow:default:testflow:latest",
"execution_id" : "48aff955-ea10-4ffd-b426-190bc192dc14",
"status" : "running",
"headers" : {
"tenantId" : "user1"
},
"input" : {
"arg1" : "argument_1",
"arg2" : "argument_2"
},
"output" : {
"arg1" : "argument_1",
"arg2" : "argument_2"
},
"begin_time" : "2021-01-01T00:00:00Z",
"end_time" : "2021-01-01T00:00:00Z",
"last_update_time" : "2021-01-01T00:00:00Z",
"created_by" : "admin",
"node_execution_details" : [ {
"node_id" : "48aff955-ea10-4ffd-b426-190bc192dc14",
"node_name" : "string",
"execution_id" : "string",
"executions" : [ {
"status" : "running",
"input" : {
"arg1" : "argument_1",
"arg2" : "argument_2"
},
"output" : {
"arg1" : "argument_1",
"arg2" : "argument_2"
},
"begin_time" : 1605119892050,
"end_time" : 1605119892050,
"error_message" : {
"detail:\"Execution failed\"" : null
},
"request_id" : "string"
} ]
} ]
}
狀態(tài)碼
|
狀態(tài)碼 |
描述 |
|---|---|
|
200 |
OK |
|
400 |
Bad Request |
|
404 |
Bad Request |
|
500 |
Internal Server Error |
錯(cuò)誤碼
請(qǐng)參見(jiàn)錯(cuò)誤碼。
最新文章
- 什么是函數(shù)工作流_functiongraph是什么_函數(shù)工作流服務(wù)
- 什么是函數(shù)工作流_函數(shù)托管計(jì)算服務(wù)_函數(shù)工作流 FunctionGraph-華為云
- 函數(shù)工作流可以做什么_函數(shù)工作流有什么優(yōu)勢(shì)_函數(shù)工作流 FunctionGraph-華為云
- 調(diào)用函數(shù)_函數(shù)調(diào)用方式_函數(shù)工作流 FunctionGraph-華為云
- 使用函數(shù)工作流資源成本降低70%_函數(shù)能力_函數(shù)工作流 FunctionGraph-華為云
- 使用SpringBoot構(gòu)建HTTP函數(shù)_functiongraph_函數(shù)工作流
