Share via


Workflows - Create Or Update

워크플로를 만들거나 업데이트합니다.

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

URI 매개 변수

Name In(다음 안에) 필수 형식 Description
resourceGroupName
path True

string

리소스 그룹 이름입니다.

subscriptionId
path True

string

구독 ID입니다.

workflowName
path True

string

워크플로 이름.

api-version
query True

string

API 버전입니다.

요청 본문

Name 형식 Description
location

string

리소스 위치입니다.

properties.definition

Object

정의입니다. Azure Logic Apps의 워크플로 정의 언어에 대한 스키마 참조를 참조하세요.

properties.integrationAccount

ResourceReference

통합 계정입니다.

properties.parameters

<string,  WorkflowParameter>

매개 변수입니다.

properties.sku

Sku

sku입니다.

properties.state

WorkflowState

상태입니다.

tags

object

리소스 태그입니다.

응답

Name 형식 Description
200 OK

Workflow

정상

201 Created

Workflow

생성일

보안

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 사용자 계정 가장

예제

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

정의

Name Description
Object
ParameterType
ResourceReference

리소스 참조입니다.

Sku

sku 형식입니다.

SkuName

sku 이름입니다.

Workflow

워크플로 유형입니다.

WorkflowParameter

워크플로 매개 변수입니다.

WorkflowProvisioningState
WorkflowState

Object

ParameterType

Name 형식 Description
Array

string

Bool

string

Float

string

Int

string

NotSpecified

string

Object

string

SecureObject

string

SecureString

string

String

string

ResourceReference

리소스 참조입니다.

Name 형식 Description
id

string

리소스 ID입니다.

name

string

리소스 이름을 가져옵니다.

type

string

리소스 종류를 가져옵니다.

Sku

sku 형식입니다.

Name 형식 Description
name

SkuName

이름입니다.

plan

ResourceReference

계획에 대한 참조입니다.

SkuName

sku 이름입니다.

Name 형식 Description
Basic

string

Free

string

NotSpecified

string

Premium

string

Shared

string

Standard

string

Workflow

워크플로 유형입니다.

Name 형식 Description
id

string

리소스 ID입니다.

location

string

리소스 위치입니다.

name

string

리소스 이름을 가져옵니다.

properties.accessEndpoint

string

액세스 엔드포인트를 가져옵니다.

properties.changedTime

string

변경된 시간을 가져옵니다.

properties.createdTime

string

만든 시간을 가져옵니다.

properties.definition

Object

정의입니다. Azure Logic Apps의 워크플로 정의 언어에 대한 스키마 참조를 참조하세요.

properties.integrationAccount

ResourceReference

통합 계정입니다.

properties.parameters

<string,  WorkflowParameter>

매개 변수입니다.

properties.provisioningState

WorkflowProvisioningState

프로비저닝 상태를 가져옵니다.

properties.sku

Sku

sku입니다.

properties.state

WorkflowState

상태입니다.

properties.version

string

버전을 가져옵니다.

tags

object

리소스 태그입니다.

type

string

리소스 종류를 가져옵니다.

WorkflowParameter

워크플로 매개 변수입니다.

Name 형식 Description
description

string

설명입니다.

metadata

Object

메타데이터입니다.

type

ParameterType

형식입니다.

value

Object

값입니다.

WorkflowProvisioningState

Name 형식 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 형식 Description
Completed

string

Deleted

string

Disabled

string

Enabled

string

NotSpecified

string

Suspended

string