Get registry credentials to push a container Forge version's image.
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.
| Scope | forge:deploy (sensitive) |
| Asynchronous | No |
| MCP tool | create_forge_function_version_registry_credentials |
| Portal permissions | issue_forge_registry_credentials, upload_forge_function_versions |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
forge_function_id | path | string | Required | |
forge_function_version_id | path | string | Required | |
Docwize-Version | header | string (date) | Optional |
Responses
| Status | Description | Body |
|---|---|---|
200 | Success. | application/json ForgeRegistryCredentials or 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 |
Errors
The problem codes this operation can answer with. Each code links to its page.
| Code | Status |
|---|---|
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 |
Schemas
ForgeRegistryCredentials
| Field | Type | Required | Description |
|---|---|---|---|
expires_at | string (date-time) or null | Required | When the credentials stop working; null where there are none. |
forge_function_id | string | Required | |
forge_function_version_id | string | Required | |
image_tag | string | Required | The tag this version's image must be pushed under. |
login_command | string or null | Required | docker login with the username; the password goes to its stdin or prompt. Null where the registry needs no login. |
password | string or null | Required | 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 | array of string | Required | The build and push command, in the only shape the platform accepts. |
repository | string | Required | The function's repository name in the registry. |
repository_uri | string | Required | Where the image is pushed, without the tag. |
shim_path | string | Required | Where the Docwize shim must sit inside the image. |
username | string or null | Required | Null where the registry needs no login (local development). |