Workflows - Create Or Update
Erstellt oder aktualisiert einen Workflow.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}?api-version=2016-06-01
URI-Parameter
Name | In | Erforderlich | Typ | Beschreibung |
---|---|---|---|---|
resource
|
path | True |
string |
Der Name der Ressourcengruppe. |
subscription
|
path | True |
string |
Die Abonnement-ID. |
workflow
|
path | True |
string |
Den Workflownamen |
api-version
|
query | True |
string |
Die API-Version. |
Anforderungstext
Name | Typ | Beschreibung |
---|---|---|
location |
string |
Der Ressourcenspeicherort. |
properties.definition |
Die Definition. Siehe Schemareferenz für Workflowdefinitionssprache in Azure Logic Apps. |
|
properties.integrationAccount |
Das Integrationskonto. |
|
properties.parameters |
<string,
Workflow |
Die Parameter. |
properties.sku |
Die sku. |
|
properties.state |
Das Land/die Region. |
|
tags |
object |
Die Ressourcentags. |
Antworten
Name | Typ | Beschreibung |
---|---|---|
200 OK |
OK |
|
201 Created |
Erstellt |
Sicherheit
azure_auth
Azure Active Directory OAuth2 Flow.
Typ:
oauth2
Ablauf:
implicit
Autorisierungs-URL:
https://login.microsoftonline.com/common/oauth2/authorize
Bereiche
Name | Beschreibung |
---|---|
user_impersonation | Identitätswechsel Ihres Benutzerkontos |
Beispiele
Create or update a workflow
Beispielanforderung
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": {}
}
Beispiel für eine Antwort
{
"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": {}
}
}
Definitionen
Name | Beschreibung |
---|---|
Object | |
Parameter |
|
Resource |
Der Ressourcenverweis. |
Sku |
Der sku-Typ. |
Sku |
Der sku-Name. |
Workflow |
Der Workflowtyp. |
Workflow |
Die Workflowparameter. |
Workflow |
|
Workflow |
Object
ParameterType
Name | Typ | Beschreibung |
---|---|---|
Array |
string |
|
Bool |
string |
|
Float |
string |
|
Int |
string |
|
NotSpecified |
string |
|
Object |
string |
|
SecureObject |
string |
|
SecureString |
string |
|
String |
string |
ResourceReference
Der Ressourcenverweis.
Name | Typ | Beschreibung |
---|---|---|
id |
string |
Die Ressourcen-ID. |
name |
string |
Ruft den Namen der Ressource ab. |
type |
string |
Ruft den Ressourcentyp ab. |
Sku
Der sku-Typ.
Name | Typ | Beschreibung |
---|---|---|
name |
Der Name. |
|
plan |
Der Verweis auf den Plan. |
SkuName
Der sku-Name.
Name | Typ | Beschreibung |
---|---|---|
Basic |
string |
|
Free |
string |
|
NotSpecified |
string |
|
Premium |
string |
|
Shared |
string |
|
Standard |
string |
Workflow
Der Workflowtyp.
Name | Typ | Beschreibung |
---|---|---|
id |
string |
Die Ressourcen-ID. |
location |
string |
Der Ressourcenspeicherort. |
name |
string |
Ruft den Namen der Ressource ab. |
properties.accessEndpoint |
string |
Ruft den Zugriffsendpunkt ab. |
properties.changedTime |
string |
Ruft die geänderte Zeit ab. |
properties.createdTime |
string |
Ruft die erstellte Zeit ab. |
properties.definition |
Die Definition. Siehe Schemareferenz für Workflowdefinitionssprache in Azure Logic Apps. |
|
properties.integrationAccount |
Das Integrationskonto. |
|
properties.parameters |
<string,
Workflow |
Die Parameter. |
properties.provisioningState |
Ruft den Bereitstellungsstatus ab. |
|
properties.sku |
Die sku. |
|
properties.state |
Das Land/die Region. |
|
properties.version |
string |
Ruft die Version ab. |
tags |
object |
Die Ressourcentags. |
type |
string |
Ruft den Ressourcentyp ab. |
WorkflowParameter
Die Workflowparameter.
Name | Typ | Beschreibung |
---|---|---|
description |
string |
Die Beschreibung. |
metadata |
Die Metadaten. |
|
type |
Der Typ. |
|
value |
Der Wert. |
WorkflowProvisioningState
Name | Typ | Beschreibung |
---|---|---|
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 | Beschreibung |
---|---|---|
Completed |
string |
|
Deleted |
string |
|
Disabled |
string |
|
Enabled |
string |
|
NotSpecified |
string |
|
Suspended |
string |