你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Web Apps - Deploy Workflow Artifacts Slot
为网站或部署槽创建项目的说明。
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/deployWorkflowArtifacts?api-version=2023-12-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
name
|
path | True |
string |
站点名称。 |
resource
|
path | True |
string |
资源所属的资源组的名称。 Regex pattern: |
slot
|
path | True |
string |
部署槽的名称。 |
subscription
|
path | True |
string |
Azure 订阅 ID。 这是一个 GUID 格式的字符串, (例如 00000000-0000-0000-0000-0000000000000) 。 |
api-version
|
query | True |
string |
API 版本 |
请求正文
名称 | 类型 | 说明 |
---|---|---|
appSettings |
工作流的应用程序设置。 |
|
files |
object |
应用的文件。 |
filesToDelete |
string[] |
要删除的应用的文件。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
部署的项目。 |
|
Other Status Codes |
App 服务错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 流
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户 |
示例
Deploys workflow artifacts slot
Sample Request
POST https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/testsite2/slots/testsSlot/deployWorkflowArtifacts?api-version=2023-12-01
{
"files": {
"test1/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": {},
"triggers": {
"When_events_are_available_in_Event_hub": {
"inputs": {
"parameters": {
"eventHubName": "test123"
},
"serviceProviderConfiguration": {
"connectionName": "eventHub",
"operationId": "receiveEvents",
"serviceProviderId": "/serviceProviders/eventHub"
}
},
"splitOn": "@triggerOutputs()?['body']",
"type": "ServiceProvider"
}
}
},
"kind": "Stateful"
},
"connections.json": {
"serviceProviderConnections": {
"eventHub": {
"parameterValues": {
"connectionString": "@appsetting('eventHub_connectionString')"
},
"serviceProvider": {
"id": "/serviceProviders/eventHub"
},
"displayName": "example1"
}
},
"managedApiConnections": {}
}
},
"appSettings": {
"eventHub_connectionString": "Endpoint=sb://example.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=EXAMPLE1a2b3c4d5e6fEXAMPLE="
}
}
Sample Response
定义
名称 | 说明 |
---|---|
Default |
App 服务错误响应。 |
Details | |
Error |
错误模型。 |
Object | |
Workflow |
工作流筛选器。 |
DefaultErrorResponse
App 服务错误响应。
名称 | 类型 | 说明 |
---|---|---|
error |
错误模型。 |
Details
名称 | 类型 | 说明 |
---|---|---|
code |
string |
标准化字符串,用于以编程方式标识错误。 |
message |
string |
详细的错误说明和调试信息。 |
target |
string |
详细的错误说明和调试信息。 |
Error
错误模型。
名称 | 类型 | 说明 |
---|---|---|
code |
string |
标准化字符串,用于以编程方式标识错误。 |
details |
Details[] |
详细错误。 |
innererror |
string |
调试错误的详细信息。 |
message |
string |
详细的错误说明和调试信息。 |
target |
string |
详细的错误说明和调试信息。 |
Object
WorkflowArtifacts
工作流筛选器。
名称 | 类型 | 说明 |
---|---|---|
appSettings |
工作流的应用程序设置。 |
|
files |
object |
应用的文件。 |
filesToDelete |
string[] |
要删除的应用的文件。 |