メインコンテンツまでスキップ

Deploy a Forge bundle.

POST/api/v1/forge-functionsforge:deploy
注記

このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。

upload_id is a completed upload session with purpose forge_bundle (a .zip). Creates the function its manifest names, or a new version of the function of that name, and queues the version's provisioning (not waited on). The bundle is checked as the Portal checks it, up to the Portal's bundle size limit. A container-packaged (image) bundle stores the version as uploaded and queues nothing: ask create_forge_function_version_registry_credentials for the push credentials (it makes the registry repository on a cloud backend), push the image, then provision_forge_function_version.

スコープforge:deploy (機密性の高いスコープ)
非同期いいえ
MCP ツールcreate_forge_function
Portal の権限create_forge_functions, upload_forge_function_versions

パラメーター​

名前場所型必須説明
Docwize-Versionheaderstring (date)任意
Idempotency-Keyheaderstring任意max 255

リクエスト本文​

Content-Type型
application/jsonForgeFunctionCreateInput

応答​

ステータス説明本文
201Success.application/json ForgeFunction または object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409conflict, idempotency_in_progressapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422idempotency_key_reused, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

エラー​

この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。

スキーマ​

ForgeConfigKey​

フィールド型必須説明
defaultstring または null必須
descriptionstring または null必須
is_requiredboolean必須
is_secretboolean必須A secret key holds a keystore secret's name, never a value.
keystring必須

ForgeFunction​

フィールド型必須説明
active_version_numberinteger または null必須The number of the version that runs.
archivedboolean必須
artifacts_enabledboolean必須
config_keysForgeConfigKey の配列必須The settings a workflow step using the function asks for.
created_atstring (date-time) または null必須
default_modestring必須
descriptionstring または null必須
display_namestring必須
document_contextstring の配列必須The optional document blocks the active version asked for (tags, folders, locations, review, collected_files).
entrypointstring の配列必須Container packaging: the command the shim runs inside the image.
env_configobject必須The function's environment variables, as an opaque forge_env_config document (format_version 1).
forge_function_idstring必須
forge_function_version_idstring または null必須The version that runs; null when none is active.
handlerstring または null必須Zip packaging: the code's entry point.
invocations_30_daysinteger必須Runs dispatched in the last 30 days. ≥ -2147483648; ≤ 2147483647
last_invoked_atstring (date-time) または null必須
latest_version_statusstring または null必須The provisioning state of the newest version, so a list shows one that is still deploying.
max_artifactsinteger必須≥ -2147483648; ≤ 2147483647
memory_mbinteger必須≥ -2147483648; ≤ 2147483647
namestring必須
output_schemaobject または null必須The JSON Schema of the function's output (format forge_output_schema); null when it declares none.
packagingstring必須
registry_repository_uristring または null必須Container packaging: where the image is pushed; null until the Portal made the repository.
routesForgeRoute の配列必須The handles a workflow edge leaves the function's step by.
runtimestring必須
timeout_secondsinteger必須≥ -2147483648; ≤ 2147483647

ForgeFunctionCreateInput​

フィールド型必須説明
upload_idstring必須A completed upload session with purpose forge_bundle.

ForgeRoute​

フィールド型必須説明
descriptionstring または null必須
handlestring必須
labelstring必須