Workflows - Create Or Update

ワークフローを作成または更新します。

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

URI パラメーター

名前 / 必須 説明
resourceGroupName
path True

string

リソース グループ名。

subscriptionId
path True

string

サブスクリプション ID。

workflowName
path True

string

ワークフロー名

api-version
query True

string

API のバージョン。

要求本文

名前 説明
location

string

リソースの場所。

properties.definition

Object

定義。 「Azure Logic Apps のワークフロー定義言語のスキーマ リファレンス」を参照してください。

properties.integrationAccount

ResourceReference

統合アカウント。

properties.parameters

<string,  WorkflowParameter>

パラメーター。

properties.sku

Sku

SKU。

properties.state

WorkflowState

都道府県。

tags

object

リソース タグ。

応答

名前 説明
200 OK

Workflow

OK

201 Created

Workflow

作成済み

セキュリティ

azure_auth

Azure Active Directory OAuth2 フロー。

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

Scopes

名前 説明
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": {}
  }
}

定義

名前 説明
Object
ParameterType
ResourceReference

リソース参照。

Sku

SKU の種類。

SkuName

SKU 名。

Workflow

ワークフローの種類。

WorkflowParameter

ワークフロー パラメーター。

WorkflowProvisioningState
WorkflowState

Object

ParameterType

名前 説明
Array

string

Bool

string

Float

string

Int

string

NotSpecified

string

Object

string

SecureObject

string

SecureString

string

String

string

ResourceReference

リソース参照。

名前 説明
id

string

リソース ID。

name

string

リソース名を取得します。

type

string

リソースの種類を取得します。

Sku

SKU の種類。

名前 説明
name

SkuName

名前。

plan

ResourceReference

プランへの参照。

SkuName

SKU 名。

名前 説明
Basic

string

Free

string

NotSpecified

string

Premium

string

Shared

string

Standard

string

Workflow

ワークフローの種類。

名前 説明
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

ワークフロー パラメーター。

名前 説明
description

string

説明です。

metadata

Object

メタデータ。

type

ParameterType

型。

value

Object

値。

WorkflowProvisioningState

名前 説明
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

名前 説明
Completed

string

Deleted

string

Disabled

string

Enabled

string

NotSpecified

string

Suspended

string