Workflows - Create Or Update
创建或更新工作流。
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}?api-version=2019-05-01URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 | 
|---|---|---|---|---|
| resource | path | True | string | 资源组名称。 | 
| subscription | path | True | string | 订阅 ID。 | 
| workflow | path | True | string | 工作流名称。 | 
| api-version | query | True | string | API 版本。 | 
请求正文
| 名称 | 类型 | 说明 | 
|---|---|---|
| identity | 托管服务标识属性。 | |
| location | string | 资源位置。 | 
| properties.accessControl | 访问控制配置。 | |
| properties.definition | 定义。 | |
| properties.endpointsConfiguration | 终结点配置。 | |
| properties.integrationAccount | 集成帐户。 | |
| properties.integrationServiceEnvironment | 集成服务环境。 | |
| properties.parameters | 
				
		<string, 
		Workflow | 参数。 | 
| properties.state | 状态。 | |
| tags | object | 资源标记。 | 
响应
| 名称 | 类型 | 说明 | 
|---|---|---|
| 200 OK | 好的 | |
| 201 Created | 已创建 | |
| Other Status Codes | 描述操作失败的原因的错误响应。 | 
安全性
azure_auth
Azure Active Directory OAuth2 Flow。
					类型: 
					oauth2
					流向: 
					implicit
					授权 URL: 
					https://login.microsoftonline.com/common/oauth2/authorize
			
作用域
| 名称 | 说明 | 
|---|---|
| user_impersonation | 模拟用户帐户 | 
示例
Create or update a workflow
示例请求
PUT https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow?api-version=2019-05-01
{
  "properties": {
    "integrationAccount": {
      "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account"
    },
    "definition": {
      "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
      "contentVersion": "1.0.0.0",
      "parameters": {
        "$connections": {
          "defaultValue": {},
          "type": "Object"
        }
      },
      "triggers": {
        "manual": {
          "type": "Request",
          "kind": "Http",
          "inputs": {
            "schema": {}
          }
        }
      },
      "actions": {
        "Find_pet_by_ID": {
          "runAfter": {},
          "type": "ApiConnection",
          "inputs": {
            "host": {
              "connection": {
                "name": "@parameters('$connections')['test-custom-connector']['connectionId']"
              }
            },
            "method": "get",
            "path": "/pet/@{encodeURIComponent('1')}"
          }
        }
      },
      "outputs": {}
    },
    "parameters": {
      "$connections": {
        "value": {
          "test-custom-connector": {
            "connectionId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Web/connections/test-custom-connector",
            "connectionName": "test-custom-connector",
            "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.Web/locations/brazilsouth/managedApis/test-custom-connector"
          }
        }
      }
    }
  },
  "location": "brazilsouth",
  "tags": {}
}
示例响应
{
  "properties": {
    "provisioningState": "Succeeded",
    "createdTime": "2018-04-25T01:39:21.4365247Z",
    "changedTime": "2018-08-09T22:54:54.3533634Z",
    "state": "Enabled",
    "version": "08586677515911718341",
    "accessEndpoint": "http://tempuri.org",
    "integrationAccount": {
      "name": "test-integration-account",
      "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account",
      "type": "Microsoft.Logic/integrationAccounts"
    },
    "integrationServiceEnvironment": {
      "name": "test-integration-service-environment",
      "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationServiceEnvironments/test-integration-service-environment",
      "type": "Microsoft.Logic/integrationServiceEnvironments"
    },
    "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": {}
    },
    "parameters": {},
    "endpointsConfiguration": {
      "workflow": {
        "outgoingIpAddresses": [
          {
            "address": "13.84.159.168"
          },
          {
            "address": "13.65.86.56"
          },
          {
            "address": "13.65.82.190"
          }
        ],
        "accessEndpointIpAddresses": [
          {
            "address": "104.210.153.89"
          },
          {
            "address": "13.85.79.155"
          },
          {
            "address": "13.65.39.247"
          }
        ]
      },
      "connector": {
        "outgoingIpAddresses": [
          {
            "address": "40.84.145.61"
          }
        ]
      }
    }
  }
}{
  "properties": {
    "provisioningState": "Succeeded",
    "createdTime": "2018-04-25T01:39:21.4365247Z",
    "changedTime": "2018-08-09T22:54:54.3533634Z",
    "state": "Enabled",
    "version": "08586677515911718341",
    "accessEndpoint": "http://tempuri.org",
    "integrationAccount": {
      "name": "test-integration-account",
      "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account",
      "type": "Microsoft.Logic/integrationAccounts"
    },
    "integrationServiceEnvironment": {
      "name": "test-integration-service-environment",
      "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationServiceEnvironments/test-integration-service-environment",
      "type": "Microsoft.Logic/integrationServiceEnvironments"
    },
    "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": {}
    },
    "parameters": {},
    "endpointsConfiguration": {
      "workflow": {
        "outgoingIpAddresses": [
          {
            "address": "13.84.159.168"
          },
          {
            "address": "13.65.86.56"
          },
          {
            "address": "13.65.82.190"
          }
        ],
        "accessEndpointIpAddresses": [
          {
            "address": "104.210.153.89"
          },
          {
            "address": "13.85.79.155"
          },
          {
            "address": "13.65.39.247"
          }
        ]
      },
      "connector": {
        "outgoingIpAddresses": [
          {
            "address": "40.84.145.61"
          }
        ]
      }
    }
  }
}定义
| 名称 | 说明 | 
|---|---|
| Error | 错误属性指示逻辑服务无法处理传入请求的原因。 错误消息中提供了原因。 | 
| Error | 错误响应表示逻辑服务无法处理传入请求。 error 属性包含错误详细信息。 | 
| Flow | 访问控制配置。 | 
| Flow | 访问控制配置策略。 | 
| Flow | 流端点配置。 | 
| Flow | 终结点配置。 | 
| Ip | IP 地址。 | 
| Ip | IP 地址范围。 | 
| Managed | 托管服务标识属性。 | 
| Managed | 托管服务标识的类型。 类型“SystemAssigned”包括隐式创建的标识。 类型“None”将从资源中删除任何标识。 | 
| Object | |
| Open | AuthenticationPolicy 类型为 Open。 | 
| Open | 打开用户定义的身份验证访问策略。 | 
| Open | 打开身份验证策略声明。 | 
| Open | 打开身份验证策略提供程序类型。 | 
| Parameter | 参数类型。 | 
| Resource | 资源引用。 | 
| Sku | SKU 类型。 | 
| Sku | SKU 名称。 | 
| user | 用户分配的标识属性。 | 
| Workflow | 工作流类型。 | 
| Workflow | 工作流参数。 | 
| Workflow | 工作流预配状态。 | 
| 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 地址范围。 | 
ManagedServiceIdentity  
			
			托管服务标识属性。
| 名称 | 类型 | 说明 | 
|---|---|---|
| principalId | string (uuid) | 托管服务标识的主体 ID。 | 
| tenantId | string (uuid) | 托管服务标识的租户。 | 
| type | 托管服务标识的类型。 类型“SystemAssigned”包括隐式创建的标识。 类型“None”将从资源中删除任何标识。 | |
| userAssignedIdentities | 
				
		<string, 
		user | 与资源关联的用户分配标识的列表。 用户标识字典密钥引用的格式为 ARM 资源 ID:“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName} | 
ManagedServiceIdentityType   
			
			托管服务标识的类型。 类型“SystemAssigned”包括隐式创建的标识。 类型“None”将从资源中删除任何标识。
| 值 | 说明 | 
|---|---|
| SystemAssigned | |
| UserAssigned | |
| None | 
Object
OpenAuthenticationAccessPolicies   
			
			AuthenticationPolicy 类型为 Open。
| 名称 | 类型 | 说明 | 
|---|---|---|
| policies | 
				
		<string, 
		Open | 打开身份验证策略。 | 
OpenAuthenticationAccessPolicy   
			
			打开用户定义的身份验证访问策略。
| 名称 | 类型 | 说明 | 
|---|---|---|
| claims | 访问策略声明。 | |
| type | OAuth 的提供程序类型。 | 
OpenAuthenticationPolicyClaim   
			
			打开身份验证策略声明。
| 名称 | 类型 | 说明 | 
|---|---|---|
| name | string | 声明名称。 | 
| value | string | 索赔的价值。 | 
OpenAuthenticationProviderType   
			
			打开身份验证策略提供程序类型。
| 值 | 说明 | 
|---|---|
| AAD | 
ParameterType 
			
			参数类型。
| 值 | 说明 | 
|---|---|
| NotSpecified | |
| String | |
| SecureString | |
| Int | |
| Float | |
| Bool | |
| Array | |
| Object | |
| SecureObject | 
ResourceReference 
			
			资源引用。
| 名称 | 类型 | 说明 | 
|---|---|---|
| id | string | 资源 ID。 | 
| name | string | 获取资源名称。 | 
| type | string | 获取资源类型。 | 
Sku
SKU 类型。
| 名称 | 类型 | 说明 | 
|---|---|---|
| name | 名称。 | |
| plan | 计划的引用。 | 
SkuName 
			
			SKU 名称。
| 值 | 说明 | 
|---|---|
| NotSpecified | |
| Free | |
| Shared | |
| Basic | |
| Standard | |
| Premium | 
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.parameters | 
				
		<string, 
		Workflow | 参数。 | 
| properties.provisioningState | 获取预配状态。 | |
| properties.sku | SKU。 | |
| properties.state | 状态。 | |
| properties.version | string | 获取版本。 | 
| tags | object | 资源标记。 | 
| type | string | 获取资源类型。 | 
WorkflowParameter 
			
			工作流参数。
| 名称 | 类型 | 说明 | 
|---|---|---|
| description | string | 说明。 | 
| metadata | 元数据。 | |
| type | 类型。 | |
| value | 值。 | 
WorkflowProvisioningState  
			
			工作流预配状态。
| 值 | 说明 | 
|---|---|
| NotSpecified | |
| Accepted | |
| Running | |
| Ready | |
| Creating | |
| Created | |
| Deleting | |
| Deleted | |
| Canceled | |
| Failed | |
| Succeeded | |
| Moving | |
| Updating | |
| Registering | |
| Registered | |
| Unregistering | |
| Unregistered | |
| Completed | |
| Renewing | |
| Pending | |
| Waiting | |
| InProgress | 
WorkflowState 
			
			工作流状态。
| 值 | 说明 | 
|---|---|
| NotSpecified | |
| Completed | |
| Enabled | |
| Disabled | |
| Deleted | |
| Suspended |