Workflows - Create Or Update
Skapar eller uppdaterar ett arbetsflöde.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}?api-version=2016-06-01
URI-parametrar
Name | I | Obligatorisk | Typ | Description |
---|---|---|---|---|
resource
|
path | True |
string |
Resursgruppens namn. |
subscription
|
path | True |
string |
Prenumerations-ID:t. |
workflow
|
path | True |
string |
Arbetsflödets namn. |
api-version
|
query | True |
string |
API-versionen. |
Begärandetext
Name | Typ | Description |
---|---|---|
location |
string |
Resursplatsen. |
properties.definition |
Definitionen. Se Schemareferens för arbetsflödesdefinitionsspråk i Azure Logic Apps. |
|
properties.integrationAccount |
Integrationskontot. |
|
properties.parameters |
<string,
Workflow |
Parametrarna. |
properties.sku |
SKU:n. |
|
properties.state |
Tillståndet. |
|
tags |
object |
Resurstaggar. |
Svar
Name | Typ | Description |
---|---|---|
200 OK |
OK |
|
201 Created |
Skapad |
Säkerhet
azure_auth
Azure Active Directory OAuth2 Flow.
Typ:
oauth2
Flow:
implicit
Auktoriseringswebbadress:
https://login.microsoftonline.com/common/oauth2/authorize
Omfattningar
Name | Description |
---|---|
user_impersonation | personifiera ditt användarkonto |
Exempel
Create or update a workflow
Exempelbegäran
PUT 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": {}
}
Exempelsvar
{
"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": {}
}
}
{
"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": {}
}
}
Definitioner
Name | Description |
---|---|
Object | |
Parameter |
|
Resource |
Resursreferensen. |
Sku |
SKU-typen. |
Sku |
SKU-namnet. |
Workflow |
Arbetsflödestypen. |
Workflow |
Arbetsflödesparametrarna. |
Workflow |
|
Workflow |
Object
ParameterType
Name | Typ | Description |
---|---|---|
Array |
string |
|
Bool |
string |
|
Float |
string |
|
Int |
string |
|
NotSpecified |
string |
|
Object |
string |
|
SecureObject |
string |
|
SecureString |
string |
|
String |
string |
ResourceReference
Resursreferensen.
Name | Typ | Description |
---|---|---|
id |
string |
Resurs-ID:t. |
name |
string |
Hämtar resursnamnet. |
type |
string |
Hämtar resurstypen. |
Sku
SKU-typen.
Name | Typ | Description |
---|---|---|
name |
Namnet. |
|
plan |
Referensen till planen. |
SkuName
SKU-namnet.
Name | Typ | Description |
---|---|---|
Basic |
string |
|
Free |
string |
|
NotSpecified |
string |
|
Premium |
string |
|
Shared |
string |
|
Standard |
string |
Workflow
Arbetsflödestypen.
Name | Typ | Description |
---|---|---|
id |
string |
Resurs-ID:t. |
location |
string |
Resursplatsen. |
name |
string |
Hämtar resursnamnet. |
properties.accessEndpoint |
string |
Hämtar åtkomstslutpunkten. |
properties.changedTime |
string |
Hämtar den ändrade tiden. |
properties.createdTime |
string |
Hämtar den skapade tiden. |
properties.definition |
Definitionen. Se Schemareferens för arbetsflödesdefinitionsspråk i Azure Logic Apps. |
|
properties.integrationAccount |
Integrationskontot. |
|
properties.parameters |
<string,
Workflow |
Parametrarna. |
properties.provisioningState |
Hämtar etableringstillståndet. |
|
properties.sku |
SKU:n. |
|
properties.state |
Tillståndet. |
|
properties.version |
string |
Hämtar versionen. |
tags |
object |
Resurstaggar. |
type |
string |
Hämtar resurstypen. |
WorkflowParameter
Arbetsflödesparametrarna.
Name | Typ | Description |
---|---|---|
description |
string |
Beskrivningen. |
metadata |
Metadata. |
|
type |
Typ. |
|
value |
Värdet. |
WorkflowProvisioningState
Name | Typ | Description |
---|---|---|
Accepted |
string |
|
Canceled |
string |
|
Completed |
string |
|
Created |
string |
|
Creating |
string |
|
Deleted |
string |
|
Deleting |
string |
|
Failed |
string |
|
Moving |
string |
|
NotSpecified |
string |
|
Ready |
string |
|
Registered |
string |
|
Registering |
string |
|
Running |
string |
|
Succeeded |
string |
|
Unregistered |
string |
|
Unregistering |
string |
|
Updating |
string |
WorkflowState
Name | Typ | Description |
---|---|---|
Completed |
string |
|
Deleted |
string |
|
Disabled |
string |
|
Enabled |
string |
|
NotSpecified |
string |
|
Suspended |
string |