Workflows - Create Or Update

Crea o aggiorna un flusso di lavoro.

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}?api-version=2016-06-01

Parametri dell'URI

Nome In Necessario Tipo Descrizione
resourceGroupName
path True

string

Il nome del gruppo di risorse.

subscriptionId
path True

string

ID sottoscrizione.

workflowName
path True

string

Nome del flusso di lavoro.

api-version
query True

string

La versione delle API.

Corpo della richiesta

Nome Tipo Descrizione
location

string

Percorso della risorsa.

properties.definition

Object

Definizione. Vedere Informazioni di riferimento sullo schema per Il linguaggio di definizione del flusso di lavoro in App per la logica di Azure.

properties.integrationAccount

ResourceReference

Account di integrazione.

properties.parameters

<string,  WorkflowParameter>

Parametri.

properties.sku

Sku

SKU.

properties.state

WorkflowState

Stato.

tags

object

Tag di risorsa.

Risposte

Nome Tipo Descrizione
200 OK

Workflow

OK

201 Created

Workflow

Data di creazione

Sicurezza

azure_auth

Flusso OAuth2 di Azure Active Directory.

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Nome Descrizione
user_impersonation rappresentare l'account utente

Esempio

Create or update a workflow

Sample Request

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": {}
}

Sample Response

{
  "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": {}
  }
}

Definizioni

Nome Descrizione
Object
ParameterType
ResourceReference

Riferimento alla risorsa.

Sku

Tipo di SKU.

SkuName

Nome sku.

Workflow

Tipo di flusso di lavoro.

WorkflowParameter

Parametri del flusso di lavoro.

WorkflowProvisioningState
WorkflowState

Object

ParameterType

Nome Tipo Descrizione
Array

string

Bool

string

Float

string

Int

string

NotSpecified

string

Object

string

SecureObject

string

SecureString

string

String

string

ResourceReference

Riferimento alla risorsa.

Nome Tipo Descrizione
id

string

ID risorsa.

name

string

Ottiene il nome della risorsa.

type

string

Ottiene il tipo di risorsa.

Sku

Tipo di SKU.

Nome Tipo Descrizione
name

SkuName

Nome.

plan

ResourceReference

Riferimento al piano.

SkuName

Nome sku.

Nome Tipo Descrizione
Basic

string

Free

string

NotSpecified

string

Premium

string

Shared

string

Standard

string

Workflow

Tipo di flusso di lavoro.

Nome Tipo Descrizione
id

string

ID risorsa.

location

string

Percorso della risorsa.

name

string

Ottiene il nome della risorsa.

properties.accessEndpoint

string

Ottiene l'endpoint di accesso.

properties.changedTime

string

Ottiene l'ora modificata.

properties.createdTime

string

Ottiene l'ora di creazione.

properties.definition

Object

Definizione. Vedere Informazioni di riferimento sullo schema per Il linguaggio di definizione del flusso di lavoro in App per la logica di Azure.

properties.integrationAccount

ResourceReference

Account di integrazione.

properties.parameters

<string,  WorkflowParameter>

Parametri.

properties.provisioningState

WorkflowProvisioningState

Ottiene lo stato di provisioning.

properties.sku

Sku

SKU.

properties.state

WorkflowState

Stato.

properties.version

string

Ottiene la versione.

tags

object

Tag di risorsa.

type

string

Ottiene il tipo di risorsa.

WorkflowParameter

Parametri del flusso di lavoro.

Nome Tipo Descrizione
description

string

Descrizione.

metadata

Object

Metadati.

type

ParameterType

Tipo.

value

Object

Valore.

WorkflowProvisioningState

Nome Tipo Descrizione
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

Nome Tipo Descrizione
Completed

string

Deleted

string

Disabled

string

Enabled

string

NotSpecified

string

Suspended

string