Workflows - Create Or Update
Crée ou met à jour un workflow.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}?api-version=2016-06-01
Paramètres URI
Nom | Dans | Obligatoire | Type | Description |
---|---|---|---|---|
resource
|
path | True |
string |
Nom du groupe de ressources. |
subscription
|
path | True |
string |
ID d’abonnement. |
workflow
|
path | True |
string |
Le nom du workflow. |
api-version
|
query | True |
string |
Version de l'API. |
Corps de la demande
Nom | Type | Description |
---|---|---|
location |
string |
Emplacement de la ressource. |
properties.definition |
Définition. Consultez Informations de référence sur le schéma pour le langage de définition de flux de travail dans Azure Logic Apps. |
|
properties.integrationAccount |
Compte d’intégration. |
|
properties.parameters |
<string,
Workflow |
Paramètres. |
properties.sku |
Référence sku. |
|
properties.state |
État. |
|
tags |
object |
Étiquettes de la ressource. |
Réponses
Nom | Type | Description |
---|---|---|
200 OK |
Ok |
|
201 Created |
Date de création |
Sécurité
azure_auth
Flux OAuth2 Azure Active Directory.
Type:
oauth2
Flux:
implicit
URL d’autorisation:
https://login.microsoftonline.com/common/oauth2/authorize
Étendues
Nom | Description |
---|---|
user_impersonation | Emprunter l’identité de votre compte d’utilisateur |
Exemples
Create or update a workflow
Exemple de requête
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": {}
}
Exemple de réponse
{
"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": {}
}
}
Définitions
Nom | Description |
---|---|
Object | |
Parameter |
|
Resource |
Référence de ressource. |
Sku |
Type de référence SKU. |
Sku |
Nom de la référence SKU. |
Workflow |
Type de flux de travail. |
Workflow |
Paramètres de flux de travail. |
Workflow |
|
Workflow |
Object
ParameterType
Nom | Type | Description |
---|---|---|
Array |
string |
|
Bool |
string |
|
Float |
string |
|
Int |
string |
|
NotSpecified |
string |
|
Object |
string |
|
SecureObject |
string |
|
SecureString |
string |
|
String |
string |
ResourceReference
Référence de ressource.
Nom | Type | Description |
---|---|---|
id |
string |
ID de la ressource. |
name |
string |
Obtient le nom de la ressource. |
type |
string |
Obtient le type de ressource. |
Sku
Type de référence SKU.
Nom | Type | Description |
---|---|---|
name |
Nom. |
|
plan |
Référence au plan. |
SkuName
Nom de la référence SKU.
Nom | Type | Description |
---|---|---|
Basic |
string |
|
Free |
string |
|
NotSpecified |
string |
|
Premium |
string |
|
Shared |
string |
|
Standard |
string |
Workflow
Type de flux de travail.
Nom | Type | Description |
---|---|---|
id |
string |
ID de la ressource. |
location |
string |
Emplacement de la ressource. |
name |
string |
Obtient le nom de la ressource. |
properties.accessEndpoint |
string |
Obtient le point de terminaison d’accès. |
properties.changedTime |
string |
Obtient l’heure modifiée. |
properties.createdTime |
string |
Obtient l’heure de création. |
properties.definition |
Définition. Consultez Informations de référence sur le schéma pour le langage de définition de flux de travail dans Azure Logic Apps. |
|
properties.integrationAccount |
Compte d’intégration. |
|
properties.parameters |
<string,
Workflow |
Paramètres. |
properties.provisioningState |
Obtient l’état d’approvisionnement. |
|
properties.sku |
Référence sku. |
|
properties.state |
État. |
|
properties.version |
string |
Obtient la version. |
tags |
object |
Étiquettes de la ressource. |
type |
string |
Obtient le type de ressource. |
WorkflowParameter
Paramètres de flux de travail.
Nom | Type | Description |
---|---|---|
description |
string |
Description. |
metadata |
Métadonnées. |
|
type |
Type. |
|
value |
La valeur. |
WorkflowProvisioningState
Nom | Type | 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
Nom | Type | Description |
---|---|---|
Completed |
string |
|
Deleted |
string |
|
Disabled |
string |
|
Enabled |
string |
|
NotSpecified |
string |
|
Suspended |
string |