Cloudflare

列出版本

列出版本

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

List versions, newest first.

支持状态: supported

参数

名称位置类型必填说明
account_idpathstringtrueAny value; your account comes from the API key.
worker_idpathstringtrueWorker ID or name.
pagequeryintegerfalsePage number, from 1.
per_pagequeryintegerfalseItems per page (default 20).

响应

HTTP 200

Success

application/json

名称类型说明
successbooleanAlways true on success.
errorsarray<any>Always empty on success.
messagesarray<any>Always empty on success.
resultarray<object>Versions.
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.
导出

本页内容