你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Workflows - Validate
验证工作流定义。
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/validate?api-version=2024-04-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
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)。 |
workflow
|
path | True |
string |
工作流名称。 |
api-version
|
query | True |
string |
API 版本 |
请求正文
名称 | 类型 | 说明 |
---|---|---|
identity |
托管服务标识。 |
|
location |
string |
资源位置。 |
properties.accessControl |
访问控制配置。 |
|
properties.definition |
定义。 |
|
properties.endpointsConfiguration |
终结点配置。 |
|
properties.integrationAccount |
集成帐户。 |
|
properties.integrationServiceEnvironment |
集成服务环境。 |
|
properties.kind |
工作流类型。 |
|
properties.parameters |
<string,
Workflow |
参数。 |
properties.state |
状态。 |
|
tags |
object |
资源标记。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
还行 |
|
Other Status Codes |
描述作失败的原因的错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户 |
示例
Validate a workflow
示例请求
POST https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Web/sites/test-name/hostruntime/runtime/webhooks/workflow/api/management/workflows/test-workflow/validate?api-version=2024-04-01
{
"properties": {
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"contentVersion": "1.0.0.0",
"parameters": {},
"triggers": {},
"actions": {},
"outputs": {}
},
"kind": "Stateful"
}
}
示例响应
定义
名称 | 说明 |
---|---|
Error |
错误属性指示逻辑服务无法处理传入请求的原因。 错误消息中提供了原因。 |
Error |
错误响应指示逻辑服务无法处理传入请求。 error 属性包含错误详细信息。 |
Flow |
访问控制配置。 |
Flow |
访问控制配置策略。 |
Flow |
流终结点配置。 |
Flow |
终结点配置。 |
Ip |
IP 地址。 |
Ip |
IP 地址范围。 |
Kind |
工作流类型。 |
Managed |
托管服务标识。 |
Managed |
托管服务标识的类型。 |
Object | |
Open |
Open 类型的 AuthenticationPolicy。 |
Open |
打开用户定义的身份验证访问策略。 |
Open |
打开身份验证策略声明。 |
Open |
打开身份验证策略提供程序类型。 |
Parameter |
参数类型。 |
Resource |
资源引用。 |
user |
用户分配的标识。 |
Workflow |
工作流类型。 |
Workflow |
工作流参数。 |
Workflow |
工作流预配状态。 |
Workflow |
SKU 类型。 |
Workflow |
SKU 名称。 |
Workflow |
工作流状态。 |
ErrorProperties
错误属性指示逻辑服务无法处理传入请求的原因。 错误消息中提供了原因。
名称 | 类型 | 说明 |
---|---|---|
code |
string |
错误代码。 |
message |
string |
指示作失败的原因的错误消息。 |
ErrorResponse
错误响应指示逻辑服务无法处理传入请求。 error 属性包含错误详细信息。
名称 | 类型 | 说明 |
---|---|---|
error |
错误属性。 |
FlowAccessControlConfiguration
访问控制配置。
名称 | 类型 | 说明 |
---|---|---|
actions |
工作流作的访问控制配置。 |
|
contents |
用于访问工作流运行内容的访问控制配置。 |
|
triggers |
用于调用工作流触发器的访问控制配置。 |
|
workflowManagement |
工作流管理的访问控制配置。 |
FlowAccessControlConfigurationPolicy
访问控制配置策略。
名称 | 类型 | 说明 |
---|---|---|
allowedCallerIpAddresses |
允许的调用方 IP 地址范围。 |
|
openAuthenticationPolicies |
工作流的身份验证策略。 |
FlowEndpoints
流终结点配置。
名称 | 类型 | 说明 |
---|---|---|
accessEndpointIpAddresses |
访问终结点 IP 地址。 |
|
outgoingIpAddresses |
传出 IP 地址。 |
FlowEndpointsConfiguration
终结点配置。
名称 | 类型 | 说明 |
---|---|---|
connector |
连接器终结点。 |
|
workflow |
工作流终结点。 |
IpAddress
IP 地址。
名称 | 类型 | 说明 |
---|---|---|
address |
string |
地址。 |
IpAddressRange
IP 地址范围。
名称 | 类型 | 说明 |
---|---|---|
addressRange |
string |
IP 地址范围。 |
Kind
工作流类型。
值 | 说明 |
---|---|
Stateful | |
Stateless |
ManagedServiceIdentity
托管服务标识。
名称 | 类型 | 说明 |
---|---|---|
principalId |
string |
托管服务标识的主体 ID。 |
tenantId |
string |
托管服务标识的租户。 |
type |
托管服务标识的类型。 |
|
userAssignedIdentities |
<string,
user |
与资源关联的用户分配标识的列表。 用户标识字典密钥引用的格式为 ARM 资源 ID:“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName} |
ManagedServiceIdentityType
托管服务标识的类型。
值 | 说明 |
---|---|
None | |
SystemAssigned | |
SystemAssigned, UserAssigned | |
UserAssigned |
Object
OpenAuthenticationAccessPolicies
Open 类型的 AuthenticationPolicy。
名称 | 类型 | 说明 |
---|---|---|
policies |
<string,
Open |
打开身份验证策略。 |
OpenAuthenticationAccessPolicy
打开用户定义的身份验证访问策略。
名称 | 类型 | 说明 |
---|---|---|
claims |
访问策略声明。 |
|
type |
OAuth 的提供程序类型。 |
OpenAuthenticationPolicyClaim
打开身份验证策略声明。
名称 | 类型 | 说明 |
---|---|---|
name |
string |
声明的名称。 |
value |
string |
声明的值。 |
OpenAuthenticationProviderType
打开身份验证策略提供程序类型。
值 | 说明 |
---|---|
AAD |
ParameterType
参数类型。
值 | 说明 |
---|---|
Array | |
Bool | |
Float | |
Int | |
NotSpecified | |
Object | |
SecureObject | |
SecureString | |
String |
ResourceReference
资源引用。
名称 | 类型 | 说明 |
---|---|---|
id |
string |
资源 ID。 |
name |
string |
获取资源名称。 |
type |
string |
获取资源类型。 |
userAssignedIdentity
用户分配的标识。
名称 | 类型 | 说明 |
---|---|---|
clientId |
string |
用户分配标识的客户端 ID |
principalId |
string |
用户分配标识的主体 ID |
Workflow
工作流类型。
名称 | 类型 | 说明 |
---|---|---|
id |
string |
资源 ID。 |
identity |
托管服务标识。 |
|
location |
string |
资源位置。 |
name |
string |
获取资源名称。 |
properties.accessControl |
访问控制配置。 |
|
properties.accessEndpoint |
string |
获取访问终结点。 |
properties.changedTime |
string (date-time) |
获取更改的时间。 |
properties.createdTime |
string (date-time) |
获取创建的时间。 |
properties.definition |
定义。 |
|
properties.endpointsConfiguration |
终结点配置。 |
|
properties.integrationAccount |
集成帐户。 |
|
properties.integrationServiceEnvironment |
集成服务环境。 |
|
properties.kind |
工作流类型。 |
|
properties.parameters |
<string,
Workflow |
参数。 |
properties.provisioningState |
获取预配状态。 |
|
properties.sku |
SKU。 |
|
properties.state |
状态。 |
|
properties.version |
string |
获取版本。 |
tags |
object |
资源标记。 |
type |
string |
获取资源类型。 |
WorkflowParameter
工作流参数。
名称 | 类型 | 说明 |
---|---|---|
description |
string |
说明。 |
metadata |
元数据。 |
|
type |
类型。 |
|
value |
值。 |
WorkflowProvisioningState
工作流预配状态。
值 | 说明 |
---|---|
Accepted | |
Canceled | |
Completed | |
Created | |
Creating | |
Deleted | |
Deleting | |
Failed | |
InProgress | |
Moving | |
NotSpecified | |
Pending | |
Ready | |
Registered | |
Registering | |
Renewing | |
Running | |
Succeeded | |
Unregistered | |
Unregistering | |
Updating | |
Waiting |
WorkflowSku
SKU 类型。
名称 | 类型 | 说明 |
---|---|---|
name |
名称。 |
|
plan |
计划的引用。 |
WorkflowSkuName
SKU 名称。
值 | 说明 |
---|---|
Basic | |
Free | |
NotSpecified | |
Premium | |
Shared | |
Standard |
WorkflowState
工作流状态。
值 | 说明 |
---|---|
Completed | |
Deleted | |
Disabled | |
Enabled | |
NotSpecified | |
Suspended |