Get one invocation.
GET/api/v1/forge-invocations/{forge_invocation_id}forge:read
注記
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
The invocation's status, mode, error, per-phase timings, workflow and step ids, request id, the captured traceback (type, message, kind, hint and frames, with the deepest frame in your own code) and the closure body as received. Needs View Forge Function Invocations. A run you may not read is 404: you must hold View All Forge Function Invocations on an internal account or see the run's workflow (View All Workflows, View Own Workflows or View Project Workflows), and be able to read the document of the workflow item the run belongs to.
| スコープ | forge:read (機密性の高いスコープ) |
| 非同期 | いいえ |
| MCP ツール | get_forge_invocation |
| Portal の権限 | view_forge_function_invocations |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
forge_invocation_id | path | string | 必須 | |
Docwize-Version | header | string (date) | 任意 | |
If-None-Match | header | string | 任意 | Answers 304 when the representation is unchanged (resources that publish an ETag). |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
200 | Success. | application/json ForgeInvocation |
304 | Not modified (If-None-Match matched the ETag). | |
400 | invalid_version | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
エラー
この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。
| コード | ステータス |
|---|---|
invalid_version | 400 |
token_expired | 401 |
unauthenticated | 401 |
forbidden | 403 |
insufficient_scope | 403 |
token_owner_inactive | 403 |
not_found | 404 |
method_not_allowed | 405 |
not_acceptable | 406 |
wrong_region | 421 |
validation_failed | 422 |
internal_error | 500 |
tenant_unavailable | 503 |
unavailable | 503 |
timeout | 504 |
スキーマ
ForgeInvocation
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
acknowledged_at | string (date-time) または null | 必須 | When the function acknowledged the run. |
billed_duration_ms | integer または null | 必須 | |
closed_at | string (date-time) または null | 必須 | |
closure_deadline | string (date-time) または null | 必須 | When the platform gives up waiting for the function's answer. |
closure_payload | object または null | 必須 | The closure body as received (format forge_closure_payload): to tell the function's output from the platform's; null in lists. |
duration_ms | integer または null | 必須 | |
error | object または null | 必須 | What the run recorded as its error (format forge_invocation_error); null when none. |
forge_function_id | string | 必須 | |
forge_function_version_id | string | 必須 | |
forge_function_version_number | integer または null | 必須 | |
forge_invocation_id | string | 必須 | |
has_traceback | boolean | 必須 | |
is_live | boolean | 必須 | The run is still going (dispatched or awaiting its closure), so more log lines may arrive. |
log_line_count | integer | 必須 | ≥ -2147483648; ≤ 2147483647 |
log_truncated | boolean | 必須 | |
memory_used_mb | integer または null | 必須 | |
mode | string | 必須 | |
node_id | string | 必須 | The workflow step the run was dispatched for. |
provider_request_reference | string または null | 必須 | The cloud provider's own reference for the run, to quote to support. |
route_key | string または null | 必須 | |
started_at | string (date-time) または null | 必須 | |
status | string | 必須 | |
timings | object または null | 必須 | Milliseconds per execution phase (format forge_invocation_timings); null when none. |
traceback | ForgeTraceback または null | 必須 | The stack trace captured for a failed run; null in lists and when none was captured. Get the invocation to read it. |
workflow_id | string または null | 必須 | |
workflow_item_id | string または null | 必須 |
ForgeTraceback
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
frames | ForgeTracebackFrame の配列 | 必須 | |
frames_source | string または null | 必須 | output when the frames were scraped from what the process printed. |
hint | string または null | 必須 | What to try next, for the kinds where the answer is not in the stack. |
kind | string または null | 必須 | How it died: timeout, out_of_memory, native_crash, startup_failure, bad_response or unhandled_exception (open). |
message | string または null | 必須 | |
raw | string または null | 必須 | |
raw_truncated | boolean | 必須 | |
source | string または null | 必須 | function (the function reported it), runtime (the language runtime raised it) or output (recovered from captured output) (open). |
type | string または null | 必須 | |
user_frame | ForgeTracebackFrame または null | 必須 | The deepest frame in the developer's own code: the line to look at first. |
ForgeTracebackFrame
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | string または null | 必須 | The source line, when the runtime included it. |
file | string または null | 必須 | |
function | string または null | 必須 | |
is_user_code | boolean | 必須 | false for frames inside the language runtime or the cloud bootstrap. |
line | integer または null | 必須 |