Web Apps - Get Production Site Deployment Status
获取应用(或部署槽,如果指定)的部署状态。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/deploymentStatus/{deploymentStatusId}?api-version=2025-03-01
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
deployment
|
path | True |
string |
部署作的 GUID。 |
|
name
|
path | True |
string |
应用的名称。 |
|
resource
|
path | True |
string minLength: 1maxLength: 90 pattern: ^[-\w\._\(\)]+[^\.]$ |
资源所属的资源组的名称。 |
|
subscription
|
path | True |
string |
Azure 订阅 ID。 这是 GUID 格式的字符串(例如 000000000-0000-0000-0000-00000000000000)。 |
|
api-version
|
query | True |
string |
API 版本 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK |
好的 |
|
| 202 Accepted |
作正在进行中。 |
|
| Other Status Codes |
应用服务错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 流
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
| 名称 | 说明 |
|---|---|
| user_impersonation | 模拟用户帐户 |
示例
Get Deployment Status
示例请求
GET https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/sites/testSite/deploymentStatus/eacfd68b-3bbd-4ad9-99c5-98614d89c8e5?api-version=2025-03-01
示例响应
{
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/sites/testSite/deploymentStatus/eacfd68b-3bbd-4ad9-99c5-98614d89c8e5",
"name": "eacfd68b-3bbd-4ad9-99c5-98614d89c8e5",
"type": "Microsoft.Web/sites/deploymentStatus",
"properties": {
"deploymentId": "eacfd68b-3bbd-4ad9-99c5-98614d89c8e5",
"status": "RuntimeSuccessful",
"numberOfInstancesInProgress": 0,
"numberOfInstancesSuccessful": 1,
"numberOfInstancesFailed": 0,
"failedInstancesLogs": [],
"errors": null
}
}
{
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/sites/testSite/deploymentStatus/eacfd68b-3bbd-4ad9-99c5-98614d89c8e5",
"name": "eacfd68b-3bbd-4ad9-99c5-98614d89c8e5",
"type": "Microsoft.Web/sites/deploymentStatus",
"properties": {
"deploymentId": "eacfd68b-3bbd-4ad9-99c5-98614d89c8e5",
"status": "RuntimeStarting",
"numberOfInstancesInProgress": 1,
"numberOfInstancesSuccessful": 0,
"numberOfInstancesFailed": 0,
"failedInstancesLogs": [],
"errors": null
}
}
定义
| 名称 | 说明 |
|---|---|
|
Csm |
部署状态响应有效负载。 |
|
Default |
应用服务错误响应。 |
|
Deployment |
部署生成状态。 |
| Details | |
| Error |
错误模型。 |
|
Error |
从 API 返回的错误响应的正文。 |
CsmDeploymentStatus
部署状态响应有效负载。
| 名称 | 类型 | 说明 |
|---|---|---|
| id |
string |
资源 ID。 |
| kind |
string |
资源类型。 |
| name |
string |
资源名称。 |
| properties.deploymentId |
string |
部署作 ID。 |
| properties.errors |
错误列表。 |
|
| properties.failedInstancesLogs |
string[] |
指向预配失败的实例的日志的 URL 列表。 |
| properties.numberOfInstancesFailed |
integer (int32) |
无法置备的站点实例数。 |
| properties.numberOfInstancesInProgress |
integer (int32) |
当前正在置备的站点实例数。 |
| properties.numberOfInstancesSuccessful |
integer (int32) |
成功预配的站点实例数。 |
| properties.status |
部署生成状态。 |
|
| type |
string |
资源类型。 |
DefaultErrorResponse
应用服务错误响应。
| 名称 | 类型 | 说明 |
|---|---|---|
| error |
错误模型。 |
DeploymentBuildStatus
部署生成状态。
| 值 | 说明 |
|---|---|
| TimedOut | |
| RuntimeFailed | |
| BuildAborted | |
| BuildFailed | |
| BuildRequestReceived | |
| BuildPending | |
| BuildInProgress | |
| BuildSuccessful | |
| PostBuildRestartRequired | |
| StartPolling | |
| StartPollingWithRestart | |
| RuntimeStarting | |
| RuntimeSuccessful |
Details
| 名称 | 类型 | 说明 |
|---|---|---|
| code |
string |
标准化字符串,以编程方式识别错误。 |
| message |
string |
详细的错误描述和调试信息。 |
| target |
string |
详细的错误描述和调试信息。 |
Error
错误模型。
| 名称 | 类型 | 说明 |
|---|---|---|
| code |
string |
标准化字符串,以编程方式识别错误。 |
| details |
Details[] |
详细错误。 |
| innererror |
string |
调试错误的更多信息。 |
| message |
string |
详细的错误描述和调试信息。 |
| target |
string |
详细的错误描述和调试信息。 |
ErrorEntity
从 API 返回的错误响应的正文。
| 名称 | 类型 | 说明 |
|---|---|---|
| code |
string |
基本错误代码。 |
| details |
错误详细信息。 |
|
| extendedCode |
string |
错误类型。 |
| innerErrors |
内部错误。 |
|
| message |
string |
错误的任何详细信息。 |
| messageTemplate |
string |
消息模板。 |
| parameters |
string[] |
模板的参数。 |
| target |
string |
错误目标。 |