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

Activate a Forge function version.

POST/api/v1/forge-functions/{forge_function_id}/versions/{forge_function_version_id}/activateforge:deploy
注記

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

Makes the version the one that runs, and copies its manifest onto the function. Only an active version can be activated. Needs Activate Forge Function Versions, or Rollback Forge Function Versions when the version is older than the active one; is refused to external users, and is unavailable while Forge publishing is off.

スコープforge:deploy (機密性の高いスコープ)
非同期いいえ
MCP ツールactivate_forge_function_version

パラメーター​

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

応答​

ステータス説明本文
200Success.application/json ForgeFunction または object
400invalid_versionapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409conflict, idempotency_in_progressapplication/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

ForgeRoute​

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