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

Get registry credentials to push a container Forge version's image.

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

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

Mints short-lived credentials for the function's container registry repository (made on first use), with the build-and-push command and the tag this version's image must carry. The credentials are confined to this function's repository, last as long as the registry allows (12 hours on ECR), appear only in this answer and are never stored or logged: asking again mints a new set. Push the image, then deploy it with provision_forge_function_version. For a container-packaged function whose version has no image yet. Needs Issue Forge Registry Credentials and Upload Forge Function Versions, is refused to external users, and is unavailable while Forge publishing is off. There is no Idempotency-Key: a repeat mints again.

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

パラメーター​

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

応答​

ステータス説明本文
200Success.application/json ForgeRegistryCredentials または 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
409conflictapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

エラー​

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

スキーマ​

ForgeRegistryCredentials​

フィールド型必須説明
expires_atstring (date-time) または null必須When the credentials stop working; null where there are none.
forge_function_idstring必須
forge_function_version_idstring必須
image_tagstring必須The tag this version's image must be pushed under.
login_commandstring または null必須docker login with the username; the password goes to its stdin or prompt. Null where the registry needs no login.
passwordstring または null必須A short-lived registry password, shown in this answer only: it is never stored or logged, and asking again mints a new one. Null where the registry needs no login.
push_commandsstring の配列必須The build and push command, in the only shape the platform accepts.
repositorystring必須The function's repository name in the registry.
repository_uristring必須Where the image is pushed, without the tag.
shim_pathstring必須Where the Docwize shim must sit inside the image.
usernamestring または null必須Null where the registry needs no login (local development).