# 获取版本 (/docs/api/compatible/cloudflare/getVersion)



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

Get one version.

**支持状态: supported**

## 参数 [#参数]

| 名称          | 位置   | 类型     | 必填   | 说明                                              |
| ----------- | ---- | ------ | ---- | ----------------------------------------------- |
| account\_id | path | string | true | Any value; your account comes from the API key. |
| worker\_id  | path | string | true | Worker ID or name.                              |
| version\_id | path | string | true | Version ID.                                     |

## 响应 [#响应]

### HTTP 200 [#http-200]

Success

**application/json**

| 名称 | 类型 | 说明 |
| --- | --- | --- |
| success | boolean | Always true on success. |
| errors | array&lt;any&gt; | Always empty on success. |
| messages | array&lt;any&gt; | 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 &#124; null | Entry module name, or null for a version containing only static assets. |
| result.modules | array&lt;object&gt; | Module names and types; content is never returned. |
| result.compatibility_date | string | Workers runtime compatibility date. |
| result.compatibility_flags | array&lt;string&gt; | Runtime compatibility flags. |
| result.bindings | array&lt;object&gt; | Bindings; secret values are never returned. |
| result.assets | object &#124; null | Static asset settings. |
| result.annotations | object | Free-form annotations. |
| result.author_id | string &#124; null | Who created the version. |
| result.source | string | Upload origin, e.g. api or sdk. |
| result.urls | array&lt;string&gt; | 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. |
