Workflows - Update
更新工作流程。
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}?api-version=2016-06-01
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
resource
|
path | True |
string |
資源組名。 |
subscription
|
path | True |
string |
訂用帳戶標識碼。 |
workflow
|
path | True |
string |
工作流程名稱。 |
api-version
|
query | True |
string |
API 版本。 |
要求本文
名稱 | 類型 | Description |
---|---|---|
location |
string |
資源位置。 |
properties.definition |
定義。 請參閱 Azure Logic Apps中工作流程定義語言的 |
|
properties.integrationAccount |
整合帳戶。 |
|
properties.parameters |
<string,
Workflow |
參數。 |
properties.sku |
SKU。 |
|
properties.state |
國家。 |
|
tags |
object |
資源標記。 |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
還行 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow。
類型:
oauth2
Flow:
implicit
授權 URL:
https://login.microsoftonline.com/common/oauth2/authorize
範圍
名稱 | Description |
---|---|
user_impersonation | 模擬您的用戶帳戶 |
範例
Patch a workflow
範例要求
PATCH https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow?api-version=2016-06-01
{
"properties": {
"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"
},
"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": {}
}
}
定義
名稱 | Description |
---|---|
Object | |
Parameter |
|
Resource |
資源參考。 |
Sku |
SKU 類型。 |
Sku |
SKU 名稱。 |
Workflow |
工作流程類型。 |
Workflow |
工作流程參數。 |
Workflow |
|
Workflow |
Object
ParameterType
值 | Description |
---|---|
Array | |
Bool | |
Float | |
Int | |
NotSpecified | |
Object | |
SecureObject | |
SecureString | |
String |
ResourceReference
資源參考。
名稱 | 類型 | Description |
---|---|---|
id |
string |
資源標識碼。 |
name |
string |
取得資源名稱。 |
type |
string |
取得資源類型。 |
Sku
SKU 類型。
名稱 | 類型 | Description |
---|---|---|
name |
名稱。 |
|
plan |
計劃的參考。 |
SkuName
SKU 名稱。
值 | Description |
---|---|
Basic | |
Free | |
NotSpecified | |
Premium | |
Shared | |
Standard |
Workflow
工作流程類型。
名稱 | 類型 | Description |
---|---|---|
id |
string |
資源標識碼。 |
location |
string |
資源位置。 |
name |
string |
取得資源名稱。 |
properties.accessEndpoint |
string |
取得存取端點。 |
properties.changedTime |
string (date-time) |
取得變更的時間。 |
properties.createdTime |
string (date-time) |
取得建立的時間。 |
properties.definition |
定義。 請參閱 Azure Logic Apps中工作流程定義語言的 |
|
properties.integrationAccount |
整合帳戶。 |
|
properties.parameters |
<string,
Workflow |
參數。 |
properties.provisioningState |
取得布建狀態。 |
|
properties.sku |
SKU。 |
|
properties.state |
國家。 |
|
properties.version |
string |
取得版本。 |
tags |
object |
資源標記。 |
type |
string |
取得資源類型。 |
WorkflowParameter
工作流程參數。
名稱 | 類型 | Description |
---|---|---|
description |
string |
描述。 |
metadata |
元數據。 |
|
type |
型別。 |
|
value |
值。 |
WorkflowProvisioningState
值 | Description |
---|---|
Accepted | |
Canceled | |
Completed | |
Created | |
Creating | |
Deleted | |
Deleting | |
Failed | |
Moving | |
NotSpecified | |
Ready | |
Registered | |
Registering | |
Running | |
Succeeded | |
Unregistered | |
Unregistering | |
Updating |
WorkflowState
值 | Description |
---|---|
Completed | |
Deleted | |
Disabled | |
Enabled | |
NotSpecified | |
Suspended |