Web Apps - Get Instance Workflow Slot
按网站的 ID 或部署槽获取工作流信息。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/workflows/{workflowName}?api-version=2025-03-01
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
name
|
path | True |
string |
网站名称。 |
|
resource
|
path | True |
string minLength: 1maxLength: 90 pattern: ^[-\w\._\(\)]+[^\.]$ |
资源所属的资源组的名称。 |
|
slot
|
path | True |
string |
部署槽的名称。 |
|
subscription
|
path | True |
string |
Azure 订阅 ID。 这是 GUID 格式的字符串(例如 000000000-0000-0000-0000-00000000000000)。 |
|
workflow
|
path | True |
string minLength: 3maxLength: 63 pattern: ^[a-z][a-z0-9]*$ |
工作流名称。 |
|
api-version
|
query | True |
string |
API 版本 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK |
返回的工作流信息。 |
|
| 404 Not Found |
名称为 {workflowName} 的工作流不存在。 |
|
| Other Status Codes |
应用服务错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 流
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
| 名称 | 说明 |
|---|---|
| user_impersonation | 冒充您的用户帐户 |
示例
GET a workflow Slot
示例请求
GET https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/testsite2/slots/staging/workflows/stateful1?api-version=2025-03-01
示例响应
{
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/testsite2/workflows/stateful1",
"name": "testsite2/stateful1",
"type": "Microsoft.Web/sites/workflows",
"kind": "Stateful",
"location": "USAAnywhere",
"properties": {
"files": {
"workflow.json": {
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"actions": {},
"contentVersion": "1.0.0.0",
"outputs": {},
"parameters": {},
"triggers": {}
}
},
"connections.json": {
"managedApiConnections": {
"office365": {
"api": {
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.Web/locations/brazilsouth/managedApis/office365"
},
"connection": {
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/connections/office365-1"
},
"connectionRuntimeUrl": "string",
"authentication": {
"type": "Raw",
"scheme": "Key",
"parameter": "@appsetting('office365-connectionKey')"
}
}
}
}
},
"flowState": "Enabled",
"health": {
"state": "Healthy"
}
}
}
定义
| 名称 | 说明 |
|---|---|
|
Default |
应用服务错误响应。 |
| Details | |
| Error |
错误模型。 |
|
Error |
从 API 返回的错误响应的正文。 |
| Properties |
其他工作流属性。 |
|
Workflow |
工作流属性定义。 |
|
Workflow |
表示工作流运行状况。 |
|
Workflow |
获取或设置工作流运行状况状态。 |
|
Workflow |
工作流状态。 |
DefaultErrorResponse
应用服务错误响应。
| 名称 | 类型 | 说明 |
|---|---|---|
| error |
错误模型。 |
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 |
错误目标。 |
Properties
其他工作流属性。
| 名称 | 类型 | 说明 |
|---|---|---|
| files |
object |
获取或设置文件。 |
| flowState |
获取或设置工作流的状态。 |
|
| health |
获取或设置工作流运行状况。 |
WorkflowEnvelope
工作流属性定义。
| 名称 | 类型 | 说明 |
|---|---|---|
| id |
string |
资源 ID。 |
| kind |
string |
资源类型。 |
| location |
string |
资源位置。 |
| name |
string |
获取资源名称。 |
| properties |
其他工作流属性。 |
|
| type |
string |
获取资源类型。 |
WorkflowHealth
表示工作流运行状况。
| 名称 | 类型 | 说明 |
|---|---|---|
| error |
获取或设置工作流错误。 |
|
| state |
获取或设置工作流运行状况状态。 |
WorkflowHealthState
获取或设置工作流运行状况状态。
| 值 | 说明 |
|---|---|
| NotSpecified | |
| Healthy | |
| Unhealthy | |
| Unknown |
WorkflowState
工作流状态。
| 值 | 说明 |
|---|---|
| NotSpecified | |
| Completed | |
| Enabled | |
| Disabled | |
| Deleted | |
| Suspended |