Create or update function code
Changed onUpload a function source bundle. Direct API clients may send the function code as a ZIP or tar.gz archive via multipart/form-data. The API stores a normalized tar.gz source archive. Cloud deploys should include source files and dependency manifests/lockfiles, not installed dependency directories. Volcano installs Node.js, Python, and Ruby dependencies during the function compile build. Source archive size is enforced by the API with SOURCE_ARCHIVE_SIZE_LIMIT_MB; the CLI does not apply its own source archive size limit. After the final container image is built, the publish build enforces LAMBDA_TARGET_CONTAINER_SIZE_LIMIT_MB before pushing. Uploaded source archives cannot contain symlink entries. Safe symlinks created during the cloud build are materialized before publish. Volcano builds and deploys the function asynchronously after upload. A deployment that starts immediately returns a Function resource with status: provisioning, then transitions to active or failed. If another deployment is running, the response preserves the resource's current status and exposes the queued deployment through pending_deployment_id. Existing function traffic continues to use the last known-good runtime during an update. A failed update keeps that runtime available and records the attempted deployment as failed. Only one deployment runs for a given function. A newer request supersedes any queued request and starts after the running deployment. Different functions and projects deploy concurrently. If a function with the same name already exists in the project, this operation updates that function's runtime, handler, and source bundle and returns 200 OK. Each project can contain up to 10,000 functions. Creating a new function over this cap returns 403.
Request
- Base URL: https://api.volcano.dev
- URL: https://api.volcano.dev/projects/{id}/functions
- Auth: one of:
- HTTP bearer
- HTTP bearer
Path parameters
Project ID
Response
Existing function updated; its deployment was started or queued
Changes
- ●
removed the optional property
from the response with the status - ●
removed the optional property
from the response with the status - ○
the endpoint scheme security
ProjectAccessTokenwas added to the API - ○
added the new optional request property
- ○
request property
deprecated - ○
added the non-success response with the status
- ○
added the non-success response with the status
- ○
response property
is_publicdeprecated - ○
response property
is_publicdeprecated - ○
added the required property
to the response with the status - ○
added the required property
to the response with the status
- ●
- ▲
added the new path request parameter
id - ▲
request property
was restricted to a list of enum values - ▲
request property
was restricted to a list of enum values - ▲
the response's body type changed from no type to
objectfor status - ▲
the response's body type changed from no type to
objectfor status - ▲
the response's body type changed from no type to
objectfor status - ▲
the response's body type changed from no type to
objectfor status - ▲
the response's body type changed from no type to
objectfor status - ▲
the response's body type changed from no type to
objectfor status - ○
added the new optional request property
- ○
added the new optional request property
- ○
the
request property default valuefalsewas removed - ○
added the new
httpenum value to the request property - ○
added the new
noneenum value to the request property - ○
added the new
rpcenum value to the request property - ○
added the new
volcanoenum value to the request property - ○
the
request property type was generalized from no type tostring - ○
the
request property type was generalized from no type tostring - ○
added the optional property
to the response with the status - ○
added the optional property
to the response with the status - ○
added the optional property
to the response with the status - ○
added the optional property
to the response with the status - ○
added the optional property
to the response with the status - ○
added the optional property
to the response with the status - ○
added the optional property
to the response with the status - ○
added the optional property
to the response with the status - ○
added the optional property
to the response with the status - ○
added the optional property
to the response with the status - ○
added the optional property
to the response with the status - ○
added the optional property
to the response with the status - ○
added the optional property
to the response with the status - ○
added the optional property
to the response with the status - ○
added the optional property
to the response with the status - ○
added the optional property
to the response with the status - ○
added the optional property
to the response with the status - ○
added the optional property
to the response with the status - ○
added the optional property
to the response with the status - ○
added the optional property
to the response with the status - ○
added the required property
to the response with the status - ○
added the required property
to the response with the status - ○
added the required property
to the response with the status - ○
added the required property
to the response with the status - ○
added the required property
to the response with the status - ○
added the required property
to the response with the status - ○
added the required property
to the response with the status - ○
added the required property
to the response with the status - ○
added the required property
to the response with the status - ○
added the required property
to the response with the status - ○
added the required property
to the response with the status - ○
added the required property
to the response with the status - ○
added the required property
to the response with the status - ○
added the required property
to the response with the status - ○
added the required property
to the response with the status - ○
added the required property
to the response with the status - ○
added the required property
to the response with the status - ○
added the required property
to the response with the status - ○
added the required property
to the response with the status - ○
added the required property
to the response with the status - ○
added the required property
to the response with the status - ○
added the required property
to the response with the status - ○
added the required property
to the response with the status - ○
added the required property
to the response with the status - ○
added the required property
to the response with the status - ○
added the required property
to the response with the status - ○
added the required property
to the response with the status - ○
added the required property
to the response with the status
- ▲