Get registry credentials to push a container Forge version's image.
このページの操作の説明は、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_id | path | string | 必須 | |
forge_function_version_id | path | string | 必須 | |
Docwize-Version | header | string (date) | 任意 |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
200 | Success. | application/json ForgeRegistryCredentials または object |
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 |
409 | conflict | 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 |
conflict | 409 |
wrong_region | 421 |
validation_failed | 422 |
internal_error | 500 |
tenant_unavailable | 503 |
unavailable | 503 |
timeout | 504 |
スキーマ
ForgeRegistryCredentials
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
expires_at | string (date-time) または null | 必須 | When the credentials stop working; null where there are none. |
forge_function_id | string | 必須 | |
forge_function_version_id | string | 必須 | |
image_tag | string | 必須 | The tag this version's image must be pushed under. |
login_command | string または null | 必須 | docker login with the username; the password goes to its stdin or prompt. Null where the registry needs no login. |
password | string または 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_commands | string の配列 | 必須 | The build and push command, in the only shape the platform accepts. |
repository | string | 必須 | The function's repository name in the registry. |
repository_uri | string | 必須 | Where the image is pushed, without the tag. |
shim_path | string | 必須 | Where the Docwize shim must sit inside the image. |
username | string または null | 必須 | Null where the registry needs no login (local development). |