Application

获取版本

获取版本

GET /application/v1/workers/{worker_id}/versions/{version_id}

Get one version of a Worker with its modules, bindings and asset settings; secret values are never returned.

支持状态: supported

参数

名称位置类型必填说明
worker_idpathstringtrueWorker ID (wkr_…).
version_idpathstringtrueVersion ID (ver_…).

响应

HTTP 200

Success

application/json

名称类型说明
idstringVersion ID, prefixed ver_.
numberintegerPer-Worker counter (v1, v2, …).
created_onstringWhen the version was created.
main_modulestring | nullEntry module name, or null for a version containing only static assets.
modulesarray<object>Module names and types; content is never returned.
modules[].namestringModule name.
modules[].content_typestringMIME type.
compatibility_datestringWorkers runtime compatibility date.
compatibility_flagsarray<string>Runtime compatibility flags.
bindingsarray<object>Bindings; secret values are never returned.
bindings[].typestringBinding type; see the binding description for what each needs and which are unavailable.
bindings[].namestringName of the binding in the Worker's env: 1–64 letters, digits or underscores, not starting with a digit; unique within a version.
assetsobject | nullStatic asset settings.
assets.configobjectRouting settings for the static assets.
annotationsobjectFree-form annotations.
annotations.workers/messagestringVersion message.
annotations.workers/tagstringVersion tag.
author_idstring | nullWho created the version.
sourcestringUpload origin, e.g. api or sdk.
urlsarray<string>Preview URLs of this version.
praxisobjectPlatform fields: owning Worker, build source, script size and asset manifest summary.
praxis.worker_idstringOwning Worker.
praxis.sourceobjectWhere the build came from: inline, machine (a tar.gz on a session machine) or file (an uploaded tar.gz).
praxis.size_bytesintegerScript size in bytes.
praxis.assets_manifestobject | nullStatic asset manifest summary.
导出

本页内容