Workflows - Create Or Update

Tworzy lub aktualizuje przepływ pracy.

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

Parametry identyfikatora URI

Nazwa W Wymagane Typ Opis
resourceGroupName
path True

string

Nazwa grupy zasobów.

subscriptionId
path True

string

Identyfikator subskrypcji.

workflowName
path True

string

Nazwa przepływu pracy.

api-version
query True

string

Wersja interfejsu API.

Treść żądania

Nazwa Typ Opis
location

string

Lokalizacja zasobu.

properties.definition

Object

Definicja. Zobacz Dokumentacja schematu dla języka definicji przepływu pracy w usłudze Azure Logic Apps.

properties.integrationAccount

ResourceReference

Konto integracji.

properties.parameters

<string,  WorkflowParameter>

Parametry.

properties.sku

Sku

Jednostka SKU.

properties.state

WorkflowState

Stan.

tags

object

Tagi zasobów.

Odpowiedzi

Nazwa Typ Opis
200 OK

Workflow

OK

201 Created

Workflow

Utworzone

Zabezpieczenia

azure_auth

Przepływ OAuth2 usługi Azure Active Directory.

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

Scopes

Nazwa Opis
user_impersonation personifikacja konta użytkownika

Przykłady

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

Definicje

Nazwa Opis
Object
ParameterType
ResourceReference

Odwołanie do zasobu.

Sku

Typ jednostki SKU.

SkuName

Nazwa jednostki SKU.

Workflow

Typ przepływu pracy.

WorkflowParameter

Parametry przepływu pracy.

WorkflowProvisioningState
WorkflowState

Object

ParameterType

Nazwa Typ Opis
Array

string

Bool

string

Float

string

Int

string

NotSpecified

string

Object

string

SecureObject

string

SecureString

string

String

string

ResourceReference

Odwołanie do zasobu.

Nazwa Typ Opis
id

string

Identyfikator zasobu.

name

string

Pobiera nazwę zasobu.

type

string

Pobiera typ zasobu.

Sku

Typ jednostki SKU.

Nazwa Typ Opis
name

SkuName

Nazwa.

plan

ResourceReference

Odwołanie do planu.

SkuName

Nazwa jednostki SKU.

Nazwa Typ Opis
Basic

string

Free

string

NotSpecified

string

Premium

string

Shared

string

Standard

string

Workflow

Typ przepływu pracy.

Nazwa Typ Opis
id

string

Identyfikator zasobu.

location

string

Lokalizacja zasobu.

name

string

Pobiera nazwę zasobu.

properties.accessEndpoint

string

Pobiera punkt końcowy dostępu.

properties.changedTime

string

Pobiera zmieniony czas.

properties.createdTime

string

Pobiera czas utworzenia.

properties.definition

Object

Definicja. Zobacz Dokumentacja schematu dla języka definicji przepływu pracy w usłudze Azure Logic Apps.

properties.integrationAccount

ResourceReference

Konto integracji.

properties.parameters

<string,  WorkflowParameter>

Parametry.

properties.provisioningState

WorkflowProvisioningState

Pobiera stan aprowizacji.

properties.sku

Sku

Jednostka SKU.

properties.state

WorkflowState

Stan.

properties.version

string

Pobiera wersję.

tags

object

Tagi zasobów.

type

string

Pobiera typ zasobu.

WorkflowParameter

Parametry przepływu pracy.

Nazwa Typ Opis
description

string

Opis.

metadata

Object

Metadane.

type

ParameterType

Typ.

value

Object

Wartość.

WorkflowProvisioningState

Nazwa Typ Opis
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

Nazwa Typ Opis
Completed

string

Deleted

string

Disabled

string

Enabled

string

NotSpecified

string

Suspended

string