共用方式為


Workflows - List Swagger

取得工作流程的 OpenAPI 定義。

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/listSwagger?api-version=2019-05-01

URI 參數

名稱 位於 必要 類型 Description
resourceGroupName
path True

string

資源組名。

subscriptionId
path True

string

訂用帳戶標識碼。

workflowName
path True

string

工作流程名稱。

api-version
query True

string

API 版本。

回應

名稱 類型 Description
200 OK

Object

OK

Other Status Codes

ErrorResponse

描述作業失敗原因的錯誤回應。

安全性

azure_auth

Azure Active Directory OAuth2 Flow。

類型: oauth2
Flow: implicit
授權 URL: https://login.microsoftonline.com/common/oauth2/authorize

範圍

名稱 Description
user_impersonation 模擬您的用戶帳戶

範例

Get the swagger for a workflow

範例要求

POST https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testResourceGroup/providers/Microsoft.Logic/workflows/testWorkflowName/listSwagger?api-version=2019-05-01

範例回覆

{
  "swagger": "2.0",
  "info": {
    "title": "flow",
    "description": "Azure Logic App."
  },
  "host": "test-host",
  "basePath": "/workflows/2e420261710e423490d5d502fe9c4abb/triggers",
  "schemes": [
    "http"
  ],
  "consumes": [
    "application/json"
  ],
  "produces": [
    "application/json"
  ],
  "paths": {
    "/simpleManualTrigger/paths/invoke": {
      "post": {
        "description": "Trigger a run of the logic app.",
        "operationId": "simpleManualTrigger-invoke",
        "parameters": [
          {
            "name": "api-version",
            "in": "query",
            "description": "The service API version.",
            "required": true,
            "type": "string"
          },
          {
            "name": "sp",
            "in": "query",
            "description": "The permissions; generally 'read' or 'write'.",
            "required": true,
            "type": "string"
          },
          {
            "name": "sv",
            "in": "query",
            "description": "The version number of the query parameters.",
            "required": true,
            "type": "string"
          },
          {
            "name": "sig",
            "in": "query",
            "description": "The SHA 256 hash of the entire request URI with an internal key.",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "default": {
            "description": "The Logic App Response.",
            "schema": {
              "type": "object"
            }
          }
        }
      }
    }
  }
}

定義

名稱 Description
ErrorProperties

錯誤屬性會指出邏輯服務無法處理傳入要求的原因。 原因在錯誤訊息中提供。

ErrorResponse

錯誤回應表示邏輯服務無法處理傳入的要求。 error 屬性包含錯誤詳細資料。

Object

ErrorProperties

錯誤屬性會指出邏輯服務無法處理傳入要求的原因。 原因在錯誤訊息中提供。

名稱 類型 Description
code

string

錯誤碼。

message

string

錯誤訊息,指出作業失敗的原因。

ErrorResponse

錯誤回應表示邏輯服務無法處理傳入的要求。 error 屬性包含錯誤詳細資料。

名稱 類型 Description
error

ErrorProperties

錯誤屬性。

Object