# 获取部署 (/docs/api/native/application/getDeployment)



`GET /application/v1/workers/{worker_id}/deployments/{deployment_id}`

Get one deployment with its status and upload progress; poll this after CreateDeployment until praxis.status is active or failed.

**支持状态: supported**

## 参数 [#参数]

| 名称             | 位置   | 类型     | 必填   | 说明                                                                     |
| -------------- | ---- | ------ | ---- | ---------------------------------------------------------------------- |
| worker\_id     | path | string | true | Worker ID (wkr\_…).                                                    |
| deployment\_id | path | string | true | ID from the id of CreateDeployment or ListDeployments, prefixed dep\_. |

## 响应 [#响应]

### HTTP 200 [#http-200]

Success

**application/json**

| 名称 | 类型 | 说明 |
| --- | --- | --- |
| id | string | Deployment ID, prefixed dep_. |
| created_on | string | When the deployment was created. |
| source | string | Origin: api, sdk, console or rollback. |
| strategy | string | Rollout strategy. |
| versions | array&lt;object&gt; | Exactly one version at 100 percent. |
| versions[].version_id | string | Deployed version. |
| versions[].percentage | number | Traffic share; always 100. |
| annotations | object | Free-form annotations. |
| annotations.workers/message | string | Deployment message. |
| annotations.workers/triggered_by | string | What triggered the deployment. |
| author_email | string &#124; null | Who created the deployment. |
| praxis | object | Platform fields: deployments run asynchronously, so track status, progress and error here. |
| praxis.worker_id | string | Owning Worker. |
| praxis.status | string | Deployment status: pending (queued), uploading (pushing components and assets), activating (switching traffic), active (serving), superseded (replaced by a later deployment), failed (see error), cancelled (replaced before it finished). |
| praxis.progress | object &#124; null | Upload progress. |
| praxis.error | object &#124; null | Why the deployment failed. |
| praxis.finished_on | string &#124; null | When the deployment reached a final status. |
