跳转到内容
EN

获取版本

GET /cloudflare/client/v4/accounts/{account_id}/workers/workers/{worker_id}/versions/{version_id}

Get one version.

支持状态: supported

参数

名称位置类型必填说明
account_idpathstringtrueAny value; your account comes from the API key.
worker_idpathstringtrueWorker ID or name.
version_idpathstringtrueVersion ID.

响应

HTTP 200

Success

application/json

名称 类型 说明
success boolean Always true on success.
errors array<any> Always empty on success.
messages array<any> Always empty on success.
result object
result.id string Version ID, prefixed ver_.
result.number integer Per-Worker counter (v1, v2, …).
result.created_on string When the version was created.
result.main_module string | null Entry module name, or null for a version containing only static assets.
result.modules array<object> Module names and types; content is never returned.
result.compatibility_date string Workers runtime compatibility date.
result.compatibility_flags array<string> Runtime compatibility flags.
result.bindings array<object> Bindings; secret values are never returned.
result.assets object | null Static asset settings.
result.annotations object Free-form annotations.
result.author_id string | null Who created the version.
result.source string Upload origin, e.g. api or sdk.
result.urls array<string> Preview URLs of this version.
result.praxis object Platform fields: owning Worker, build source, script size and asset manifest summary.
result_info object Present on list responses.
result_info.page integer Page number.
result_info.per_page integer Page size.
result_info.count integer Items on this page.