Workflows - Create Or Update

Munkafolyamatot hoz létre vagy frissít.

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

URI-paraméterek

Name In Kötelező Típus Description
resourceGroupName
path True

string

Az erőforráscsoport neve.

subscriptionId
path True

string

Az előfizetés azonosítója.

workflowName
path True

string

A munkafolyamat neve.

api-version
query True

string

Az API verziója.

Kérelem törzse

Name Típus Description
location

string

Az erőforrás helye.

properties.definition

Object

A definíció. Lásd: Sémahivatkozás a munkafolyamat-definíciós nyelvhez az Azure Logic Appsben.

properties.integrationAccount

ResourceReference

Az integrációs fiók.

properties.parameters

<string,  WorkflowParameter>

A paraméterek.

properties.sku

Sku

A termékváltozat.

properties.state

WorkflowState

Az állapot.

tags

object

Az erőforráscímkék.

Válaszok

Name Típus Description
200 OK

Workflow

OK

201 Created

Workflow

Létrehozva

Biztonság

azure_auth

Azure Active Directory OAuth2 Flow.

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

Scopes

Name Description
user_impersonation felhasználói fiók megszemélyesítése

Példák

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

Definíciók

Name Description
Object
ParameterType
ResourceReference

Az erőforrás-referencia.

Sku

A termékváltozat típusa.

SkuName

A termékváltozat neve.

Workflow

A munkafolyamat típusa.

WorkflowParameter

A munkafolyamat paraméterei.

WorkflowProvisioningState
WorkflowState

Object

ParameterType

Name Típus Description
Array

string

Bool

string

Float

string

Int

string

NotSpecified

string

Object

string

SecureObject

string

SecureString

string

String

string

ResourceReference

Az erőforrás-referencia.

Name Típus Description
id

string

Az erőforrás-azonosító.

name

string

Lekéri az erőforrás nevét.

type

string

Lekéri az erőforrás típusát.

Sku

A termékváltozat típusa.

Name Típus Description
name

SkuName

A név.

plan

ResourceReference

A tervre mutató hivatkozás.

SkuName

A termékváltozat neve.

Name Típus Description
Basic

string

Free

string

NotSpecified

string

Premium

string

Shared

string

Standard

string

Workflow

A munkafolyamat típusa.

Name Típus Description
id

string

Az erőforrás-azonosító.

location

string

Az erőforrás helye.

name

string

Lekéri az erőforrás nevét.

properties.accessEndpoint

string

Lekéri a hozzáférési végpontot.

properties.changedTime

string

Lekéri a módosított időpontot.

properties.createdTime

string

Lekéri a létrehozott időt.

properties.definition

Object

A definíció. Lásd: Sémahivatkozás a munkafolyamat-definíciós nyelvhez az Azure Logic Appsben.

properties.integrationAccount

ResourceReference

Az integrációs fiók.

properties.parameters

<string,  WorkflowParameter>

A paraméterek.

properties.provisioningState

WorkflowProvisioningState

Lekéri a kiépítési állapotot.

properties.sku

Sku

A termékváltozat.

properties.state

WorkflowState

Az állapot.

properties.version

string

Lekéri a verziót.

tags

object

Az erőforráscímkék.

type

string

Lekéri az erőforrás típusát.

WorkflowParameter

A munkafolyamat paraméterei.

Name Típus Description
description

string

A leírás.

metadata

Object

A metaadatok.

type

ParameterType

A típus.

value

Object

Az érték.

WorkflowProvisioningState

Name Típus 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 Típus Description
Completed

string

Deleted

string

Disabled

string

Enabled

string

NotSpecified

string

Suspended

string