Cloudflare

获取版本

获取版本

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

名称类型说明
successbooleanAlways true on success.
errorsarray<any>Always empty on success.
messagesarray<any>Always empty on success.
resultobject
result.idstringVersion ID, prefixed ver_.
result.numberintegerPer-Worker counter (v1, v2, …).
result.created_onstringWhen the version was created.
result.main_modulestring | nullEntry module name, or null for a version containing only static assets.
result.modulesarray<object>Module names and types; content is never returned.
result.compatibility_datestringWorkers runtime compatibility date.
result.compatibility_flagsarray<string>Runtime compatibility flags.
result.bindingsarray<object>Bindings; secret values are never returned.
result.assetsobject | nullStatic asset settings.
result.annotationsobjectFree-form annotations.
result.author_idstring | nullWho created the version.
result.sourcestringUpload origin, e.g. api or sdk.
result.urlsarray<string>Preview URLs of this version.
result.praxisobjectPlatform fields: owning Worker, build source, script size and asset manifest summary.
result_infoobjectPresent on list responses.
result_info.pageintegerPage number.
result_info.per_pageintegerPage size.
result_info.countintegerItems on this page.
导出

本页内容