Delen via


Workflows - Create Or Update

Hiermee maakt of werkt u een werkstroom bij.

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

URI-parameters

Name In Vereist Type Description
resourceGroupName
path True

string

De naam van de resourcegroep.

subscriptionId
path True

string

De abonnements-id.

workflowName
path True

string

De naam van de werkstroom.

api-version
query True

string

De API-versie.

Aanvraagbody

Name Type Description
location

string

De resourcelocatie.

properties.definition

Object

De definitie. Zie Schemareferentie voor Werkstroomdefinitietaal in Azure Logic Apps.

properties.integrationAccount

ResourceReference

Het integratieaccount.

properties.parameters

<string,  WorkflowParameter>

De parameters.

properties.sku

Sku

De SKU.

properties.state

WorkflowState

De staat.

tags

object

De resourcetags.

Antwoorden

Name Type Description
200 OK

Workflow

OK

201 Created

Workflow

Gemaakt

Beveiliging

azure_auth

Azure Active Directory OAuth2-stroom.

Type: oauth2
Stroom: implicit
Autorisatie-URL: https://login.microsoftonline.com/common/oauth2/authorize

Bereiken

Name Description
user_impersonation uw gebruikersaccount imiteren

Voorbeelden

Create or update a workflow

Voorbeeldaanvraag

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

Voorbeeldrespons

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

Definities

Name Description
Object
ParameterType
ResourceReference

De resourcereferentie.

Sku

Het SKU-type.

SkuName

De naam van de SKU.

Workflow

Het werkstroomtype.

WorkflowParameter

De werkstroomparameters.

WorkflowProvisioningState
WorkflowState

Object

ParameterType

Name Type Description
Array

string

Bool

string

Float

string

Int

string

NotSpecified

string

Object

string

SecureObject

string

SecureString

string

String

string

ResourceReference

De resourcereferentie.

Name Type Description
id

string

De resource-id.

name

string

Hiermee haalt u de resourcenaam op.

type

string

Hiermee haalt u het resourcetype op.

Sku

Het SKU-type.

Name Type Description
name

SkuName

De naam.

plan

ResourceReference

De verwijzing naar plan.

SkuName

De naam van de SKU.

Name Type Description
Basic

string

Free

string

NotSpecified

string

Premium

string

Shared

string

Standard

string

Workflow

Het werkstroomtype.

Name Type Description
id

string

De resource-id.

location

string

De resourcelocatie.

name

string

Hiermee haalt u de resourcenaam op.

properties.accessEndpoint

string

Hiermee haalt u het toegangseindpunt op.

properties.changedTime

string

Hiermee haalt u de gewijzigde tijd op.

properties.createdTime

string

Hiermee haalt u de gemaakte tijd op.

properties.definition

Object

De definitie. Zie Schemareferentie voor Werkstroomdefinitietaal in Azure Logic Apps.

properties.integrationAccount

ResourceReference

Het integratieaccount.

properties.parameters

<string,  WorkflowParameter>

De parameters.

properties.provisioningState

WorkflowProvisioningState

Hiermee haalt u de inrichtingsstatus op.

properties.sku

Sku

De SKU.

properties.state

WorkflowState

De staat.

properties.version

string

Hiermee haalt u de versie op.

tags

object

De resourcetags.

type

string

Hiermee haalt u het resourcetype op.

WorkflowParameter

De werkstroomparameters.

Name Type Description
description

string

De beschrijving.

metadata

Object

De metagegevens.

type

ParameterType

Het type.

value

Object

De waarde.

WorkflowProvisioningState

Name 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

Name Type Description
Completed

string

Deleted

string

Disabled

string

Enabled

string

NotSpecified

string

Suspended

string