Microsoft Azure Workflow Runs API

The Workflow Runs API from Microsoft Azure, for workflow runs.

GitHub OpenAPI

Operations 10

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs List runs of a Logic Apps workflow · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Which runs has my Logic Apps workflow executed recently?”
“Can I filter a consumption Logic App's run history, say to failed runs only?”
Tell an agent
List runs of Logic App workflow {workflow} in resource group {rg} of subscription {sub}.
Show the last {top} runs of Logic App {workflow} matching {filter}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName} Get one Logic Apps workflow run · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“What happened in a specific run of my Logic App?”
“Where do I see the status and timing of a single consumption Logic Apps run?”
Tell an agent
Get run {run} of Logic App workflow {workflow} in resource group {rg} of subscription {sub}.
Show Logic App {workflow}'s run {run}.
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName} Delete a Logic Apps workflow run · Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Can I delete a run record from a Logic App's history?”
“How do I remove one old Logic Apps run?”
Tell an agent destructive · confirm first
Delete run {run} of Logic App workflow {workflow} in resource group {rg} of subscription {sub}.
Erase Logic App {workflow} run {run} from history.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/cancel Cancel a running Logic Apps run · Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I stop a consumption Logic App run that is stuck in progress?”
“Can I cancel one in-flight run of a Logic Apps workflow?”
Tell an agent destructive · confirm first
Cancel run {run} of Logic App workflow {workflow} in resource group {rg} of subscription {sub}.
Abort the in-progress Logic App {workflow} run {run}.
GET /workflowruns List data-plane workflow runs · Microsoft Azure Get Workflowruns #
Ask an LLM
“Which workflow runs happened in a given time window?”
“Can I list only workflow runs with certain statuses or for specific workflow ids?”
Tell an agent
List workflow runs in time window {window} with statuses {statuses}.
Show runs for workflows {workflow_ids} ordered by {orderby}.
GET /workflowruns/{workflowRunId} Get a workflow run by its run id · Microsoft Azure Get Workflowruns Workflowrunid #
Ask an LLM
“What is the status of a workflow run when I only have its run id?”
“Where do I fetch one workflow run without naming its workflow?”
Tell an agent
Get workflow run {run_id}.
Show details and status for run id {run_id}.
POST /workflowruns/{workflowRunId}/cancel Cancel a workflow run by its run id · Microsoft Azure Post Workflowruns Workflowrunid Cancel #
Ask an LLM
“Can I cancel a workflow run using just its run id and leave a comment why?”
“How do I stop a workflow run by id rather than by workflow name?”
Tell an agent destructive · confirm first
Cancel workflow run {run_id} with comment {comment}.
Stop run id {run_id}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/runs List runs of a Standard Logic App workflow · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Which runs has a workflow inside my Standard Logic App site executed?”
“Can I filter the run history of a workflow hosted in an App Service site?”
Tell an agent
List runs of workflow {workflow} in Standard Logic App site {site}, resource group {rg}, subscription {sub}.
Show the top {top} runs of site {site} workflow {workflow}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/runs/{runName} Get a run of a Standard Logic App workflow · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“What happened in one run of a workflow on my Standard Logic App site?”
“Where do I check a single run hosted on an App Service Logic App?”
Tell an agent
Get run {run} of workflow {workflow} on Standard Logic App site {site}, resource group {rg}, subscription {sub}.
Show site {site} workflow {workflow} run {run}.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/runs/{runName}/cancel Cancel a run of a Standard Logic App workflow · Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I cancel a stuck run on a Standard Logic App site?”
“Can I abort a workflow run hosted in my App Service Logic App?”
Tell an agent destructive · confirm first
Cancel run {run} of workflow {workflow} on Standard Logic App site {site}, resource group {rg}, subscription {sub}.
Abort site {site} workflow {workflow} run {run}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/microsoft-azure:microsoft-azure-workflow-runs-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

microsoft-azure-workflow-runs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure LogicManagementClient Workflow Runs API
  description: REST API for Azure Logic Apps.
  version: 2018-07-01-preview
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: Workflow Runs
paths:
  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs:
    get:
      tags:
      - Workflow Runs
      operationId: microsoftAzureWorkflowrunsList
      description: Gets a list of workflow runs.
      x-ms-examples:
        List workflow runs:
          $ref: ./examples/WorkflowRuns_List.json
      parameters:
      - $ref: '#/components/parameters/subscriptionId'
      - name: resourceGroupName
        description: The resource group name.
        in: path
        required: true
        schema:
          type: string
      - name: workflowName
        description: The workflow name.
        in: path
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/api-version'
      - name: $top
        description: The number of items to be included in the result.
        in: query
        required: false
        schema:
          type: integer
          format: int32
      - name: $filter
        description: 'The filter to apply on the operation. Options for filters include: Status, StartTime, and ClientTrackingId.'
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowRunListResult'
      x-ms-pageable:
        nextLinkName: nextLink
      x-ms-odata: '#/definitions/WorkflowRunFilter'
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}
  : get:
      tags:
      - Workflow Runs
      operationId: microsoftAzureWorkflowrunsGet
      description: Gets a workflow run.
      x-ms-examples:
        Get a run for a workflow:
          $ref: ./examples/WorkflowRuns_Get.json
      parameters:
      - $ref: '#/components/parameters/subscriptionId'
      - name: resourceGroupName
        description: The resource group name.
        in: path
        required: true
        schema:
          type: string
      - name: workflowName
        description: The workflow name.
        in: path
        required: true
        schema:
          type: string
      - name: runName
        description: The workflow run name.
        in: path
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowRun'
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
    delete:
      tags:
      - Workflow Runs
      operationId: microsoftAzureWorkflowrunsDelete
      description: Deletes a workflow run.
      x-ms-examples:
        Delete a run for a workflow:
          $ref: ./examples/WorkflowRuns_Delete.json
      parameters:
      - $ref: '#/components/parameters/subscriptionId'
      - name: resourceGroupName
        description: The resource group name.
        in: path
        required: true
        schema:
          type: string
      - name: workflowName
        description: The workflow name.
        in: path
        required: true
        schema:
          type: string
      - name: runName
        description: The workflow run name.
        in: path
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: OK
        '204':
          description: No Content
      summary: Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups…
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/cancel
  : post:
      tags:
      - Workflow Runs
      operationId: microsoftAzureWorkflowrunsCancel
      description: Cancels a workflow run.
      x-ms-examples:
        Cancel a workflow run:
          $ref: ./examples/WorkflowRuns_Cancel.json
      parameters:
      - $ref: '#/components/parameters/subscriptionId'
      - name: resourceGroupName
        description: The resource group name.
        in: path
        required: true
        schema:
          type: string
      - name: workflowName
        description: The workflow name.
        in: path
        required: true
        schema:
          type: string
      - name: runName
        description: The workflow run name.
        in: path
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: OK
      summary: Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups…
  /workflowruns:
    get:
      tags:
      - Workflow Runs
      description: List workflow runs.
      operationId: microsoftAzureListworkflowruns
      x-ms-examples:
        WorkflowRuns_List:
          $ref: ./examples/ListWorkflowRuns.json
      x-ms-pageable:
        nextLinkName: nextLink
      parameters:
      - $ref: '#/components/parameters/api-version'
      - $ref: '#/components/parameters/timeWindow'
      - name: orderby
        in: query
        required: false
        x-ms-enum:
          name: orderby
          modelAsString: true
        description: The key word which used to sort the results.
        x-ms-parameter-location: method
        schema:
          type: string
          enum:
          - status desc
          - status asc
          - requestor desc
          - requestor asc
          - startTime desc
          - startTime asc
      - $ref: '#/components/parameters/runStatuses'
      - $ref: '#/components/parameters/workflowIds'
      - $ref: '#/components/parameters/maxpagesize'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowRunList'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Microsoft Azure Get Workflowruns
  /workflowruns/{workflowRunId}:
    get:
      tags:
      - Workflow Runs
      description: Get a workflow run.
      operationId: microsoftAzureGetworkflowrun
      x-ms-examples:
        WorkflowRun_Get:
          $ref: ./examples/GetWorkflowRun.json
      parameters:
      - $ref: '#/components/parameters/api-version'
      - $ref: '#/components/parameters/workflowRunId'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowRun'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Microsoft Azure Get Workflowruns Workflowrunid
  /workflowruns/{workflowRunId}/cancel:
    post:
      tags:
      - Workflow Runs
      description: Cancel a workflow run.
      operationId: microsoftAzureCancelworkflowrun
      x-ms-examples:
        WorkflowRun_Cancel:
          $ref: ./examples/CancelWorkflowRun.json
      parameters:
      - $ref: '#/components/parameters/api-version'
      - $ref: '#/components/parameters/workflowRunId'
      responses:
        '200':
          description: OK
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Microsoft Azure Post Workflowruns Workflowrunid Cancel
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WorkflowRunCancelRequest'
        description: Reply of canceling a workflow run.
        required: true
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/runs
  : get:
      tags:
      - Workflow Runs
      operationId: microsoftAzureWorkflowrunsList
      description: Gets a list of workflow runs.
      x-ms-examples:
        List workflow runs:
          $ref: ./examples/WorkflowRuns_List.json
      parameters:
      - $ref: '#/components/parameters/subscriptionIdParameter'
      - $ref: '#/components/parameters/resourceGroupNameParameter'
      - $ref: '#/components/parameters/siteNameParameter'
      - name: workflowName
        description: The workflow name.
        in: path
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/apiVersionParameter'
      - name: $top
        description: The number of items to be included in the result.
        in: query
        required: false
        schema:
          type: integer
          format: int32
      - name: $filter
        description: 'The filter to apply on the operation. Options for filters include: Status, StartTime, and ClientTrackingId.'
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowRunListResult'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-pageable:
        nextLinkName: nextLink
      x-ms-odata: '#/definitions/WorkflowRunFilter'
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/runs/{runName}
  : get:
      tags:
      - Workflow Runs
      operationId: microsoftAzureWorkflowrunsGet
      description: Gets a workflow run.
      x-ms-examples:
        Get a run for a workflow:
          $ref: ./examples/WorkflowRuns_Get.json
      parameters:
      - $ref: '#/components/parameters/subscriptionIdParameter'
      - $ref: '#/components/parameters/resourceGroupNameParameter'
      - $ref: '#/components/parameters/siteNameParameter'
      - name: workflowName
        description: The workflow name.
        in: path
        required: true
        schema:
          type: string
      - name: runName
        description: The workflow run name.
        in: path
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/apiVersionParameter'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowRun'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/runs/{runName}/cancel
  : post:
      tags:
      - Workflow Runs
      operationId: microsoftAzureWorkflowrunsCancel
      description: Cancels a workflow run.
      x-ms-examples:
        Cancel a workflow run:
          $ref: ./examples/WorkflowRuns_Cancel.json
      parameters:
      - $ref: '#/components/parameters/subscriptionIdParameter'
      - $ref: '#/components/parameters/resourceGroupNameParameter'
      - $ref: '#/components/parameters/siteNameParameter'
      - name: workflowName
        description: The workflow name.
        in: path
        required: true
        schema:
          type: string
      - name: runName
        description: The workflow run name.
        in: path
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/apiVersionParameter'
      responses:
        '200':
          description: OK
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups…
components:
  schemas:
    WorkflowOutputParameter:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/Object'
          readOnly: true
          description: Gets the error.
      description: The workflow output parameter.
      allOf:
      - $ref: '#/components/schemas/WorkflowParameter'
    Object:
      type: object
      properties: {}
    ContentHash:
      type: object
      properties:
        algorithm:
          type: string
          description: The algorithm of the content hash.
        value:
          type: string
          description: The value of the content hash.
      description: The content hash.
    WorkflowParameter:
      type: object
      properties:
        type:
          $ref: '#/components/schemas/ParameterType'
          description: The type.
        value:
          $ref: '#/components/schemas/Object'
          description: The value.
        metadata:
          $ref: '#/components/schemas/Object'
          description: The metadata.
        description:
          type: string
          description: The description.
      description: The workflow parameters.
    WorkflowRunTrigger:
      type: object
      properties:
        name:
          type: string
          readOnly: true
          description: Gets the name.
        inputs:
          $ref: '#/components/schemas/Object'
          readOnly: true
          description: Gets the inputs.
        inputsLink:
          $ref: '#/components/schemas/ContentLink'
          readOnly: true
          description: Gets the link to inputs.
        outputs:
          $ref: '#/components/schemas/Object'
          readOnly: true
          description: Gets the outputs.
        outputsLink:
          $ref: '#/components/schemas/ContentLink'
          readOnly: true
          description: Gets the link to outputs.
        scheduledTime:
          type: string
          format: date-time
          readOnly: true
          description: Gets the scheduled time.
        startTime:
          type: string
          format: date-time
          readOnly: true
          description: Gets the start time.
        endTime:
          type: string
          format: date-time
          readOnly: true
          description: Gets the end time.
        trackingId:
          type: string
          readOnly: true
          description: Gets the tracking id.
        correlation:
          $ref: '#/components/schemas/Correlation'
          description: The run correlation.
        code:
          type: string
          readOnly: true
          description: Gets the code.
        status:
          $ref: '#/components/schemas/WorkflowStatus'
          readOnly: true
          description: Gets the status.
        error:
          $ref: '#/components/schemas/Object'
          readOnly: true
          description: Gets the error.
        trackedProperties:
          $ref: '#/components/schemas/Object'
          readOnly: true
          description: Gets the tracked properties.
      description: The workflow run trigger.
    ParameterType:
      type: string
      enum:
      - NotSpecified
      - String
      - SecureString
      - Int
      - Float
      - Bool
      - Array
      - Object
      - SecureObject
      x-ms-enum:
        name: ParameterType
        modelAsString: true
    Correlation:
      type: object
      properties:
        clientTrackingId:
          type: string
          description: The client tracking id.
      description: The correlation property.
    WorkflowRunListResult:
      type: object
      properties:
        value:
          type: array
          items:
            $ref: '#/components/schemas/WorkflowRun'
          description: A list of workflow runs.
        nextLink:
          type: string
          description: The URL to get the next set of results.
      description: The list of workflow runs.
    SubResource:
      properties:
        id:
          type: string
          readOnly: true
          description: The resource id.
      x-ms-azure-resource: true
      description: The sub resource type.
    WorkflowRunProperties:
      type: object
      properties:
        waitEndTime:
          type: string
          format: date-time
          readOnly: true
          description: Gets the wait end time.
        startTime:
          type: string
          format: date-time
          readOnly: true
          description: Gets the start time.
        endTime:
          type: string
          format: date-time
          readOnly: true
          description: Gets the end time.
        status:
          $ref: '#/components/schemas/WorkflowStatus'
          readOnly: true
          description: Gets the status.
        code:
          type: string
          readOnly: true
          description: Gets the code.
        error:
          $ref: '#/components/schemas/Object'
          readOnly: true
          description: Gets the error.
        correlationId:
          type: string
          readOnly: true
          description: Gets the correlation id.
        correlation:
          $ref: '#/components/schemas/Correlation'
          description: The run correlation.
        workflow:
          $ref: '#/components/schemas/ResourceReference'
          readOnly: true
          description: Gets the reference to workflow version.
        trigger:
          $ref: '#/components/schemas/WorkflowRunTrigger'
          readOnly: true
          description: Gets the fired trigger.
        outputs:
          type: object
          readOnly: true
          additionalProperties:
            $ref: '#/components/schemas/WorkflowOutputParameter'
          description: Gets the outputs.
        response:
          $ref: '#/components/schemas/WorkflowRunTrigger'
          readOnly: true
          description: Gets the response of the flow run.
      description: The workflow run properties.
    ResourceReference:
      type: object
      properties:
        id:
          type: string
          description: The resource id.
        name:
          type: string
          readOnly: true
          description: Gets the resource name.
        type:
          type: string
          readOnly: true
          description: Gets the resource type.
      description: The resource reference.
    WorkflowStatus:
      type: string
      enum:
      - NotSpecified
      - Paused
      - Running
      - Waiting
      - Succeeded
      - Skipped
      - Suspended
      - Cancelled
      - Failed
      - Faulted
      - TimedOut
      - Aborted
      - Ignored
      x-ms-enum:
        name: WorkflowStatus
        modelAsString: true
    ContentLink:
      type: object
      properties:
        uri:
          type: string
          description: The content link URI.
        contentVersion:
          type: string
          description: The content version.
        contentSize:
          type: integer
          format: int64
          description: The content size.
        contentHash:
          $ref: '#/components/schemas/ContentHash'
          description: The content hash.
        metadata:
          $ref: '#/components/schemas/Object'
          description: The metadata.
      description: The content link.
    WorkflowRun:
      type: object
      properties:
        properties:
          x-ms-client-flatten: true
          $ref: '#/components/schemas/WorkflowRunProperties'
          description: The workflow run properties.
        name:
          type: string
          readOnly: true
          description: Gets the workflow run name.
        type:
          type: string
          readOnly: true
          description: Gets the workflow run type.
      description: The workflow run.
      allOf:
      - $ref: '#/components/schemas/SubResource'
    WorkflowRunId:
      type: string
      format: uuid
      description: The workflow run id.
    WorkflowRunList:
      type: object
      properties:
        value:
          type: array
          items:
            $ref: '#/components/schemas/WorkflowRunMetadata'
          description: The value of workflow run list.
        nextLink:
          type: string
          description: The URL to get the next set of results.
      required:
      - value
    RequestorId:
      type: string
      format: uuid
      description: The person who submitted the user request.
    WorkflowId:
      type: string
      format: uuid
      description: The workflow id.
    ErrorModel:
      description: Default error model
      type: object
      properties:
        code:
          description: Gets or sets the code.
          type: string
        details:
          description: Gets or sets the details.
          uniqueItems: false
          type: array
          items:
            $ref: '#/components/schemas/ErrorModel'
          x-ms-identifiers:
          - code
        message:
          description: Gets or sets the messages.
          type: string
        target:
          description: Gets or sets the target.
          type: string
      required:
      - code
      - message
    ErrorResponse:
      description: Default error response model
      type: object
      properties:
        error:
          $ref: '#/components/schemas/ErrorModel'
      required:
      - error
    WorkflowRunMetadata:
      description: 'The execution of a workflow. It includes status of the entire run and other properties of a run. '
      type: object
      properties:
        id:
          $ref: '#/components/schemas/WorkflowRunId'
        workflowId:
          $ref: '#/components/schemas/WorkflowId'
        startTime:
          type: string
          description: Workflow run start time.
          format: date-time
        requestor:
          $ref: '#/components/schemas/RequestorId'
        userRequestId:
          type: string
          format: uuid
          description: The user request id.
        runPayload:
          $ref: '#/components/schemas/WorkflowRunPayload'
        status:
          $ref: '#/components/schemas/Status'
        endTime:
          type: string
          format: date-time
          description: The time of workflow run completed.
        cancelTime:
          type: string
          format: date-time
          description: The time of workflow run be canceled.
        cancelComment:
          type: string
          description: The comment when cancel a workflow run.
      required:
      - id
      - workflowId
      - startTime
      - requestor
      - runPayload
      - status
    Status:
      type: string
      description: The status.
      enum:
      - NotStarted
      - InProgress
      - Failed
      - Completed
      - Canceling
      - CancellationFailed
      - Canceled
      x-ms-enum:
        name: UserRequestStatus
        modelAsString: true
    WorkflowRunDetail:
      type: object
      description: It refers to the "detail" property of a workflow run object, which contains run context and runtime information of actions.
      properties:
        runInput:
          description: 'Built-in variables starts with @runInput. Its properties are determined by trigger type at workflow run time. '
          type: object
        actions:
          type: object
      required:
      - runInput
      - actions
    WorkflowRunPayload:
      type: object
      description: 'The input of a workflow run. Align with operation in user request. '
      properties:
        type:
          $ref: '#/components/schemas/WorkflowRunPayloadType'
        targetValue:
          type: string
          description: The target value which need involve workflow to update.
      required:
      - type
      - targetValue
    WorkflowRunPayloadType:
      type: string
      description: The workflow run payload type.
      enum:
      - CreateTerm
      - UpdateTerm
      - DeleteTerm
      - ImportTerms
      - UpdateAsset
      - GrantDataAccess
      x-ms-enum:
        name: WorkflowRunPayloadType
        modelAsString: true
    WorkflowRunCancelRequest:
      type: object
      properties:
        comment:
          type: string
          description: The comment of canceling a workflow run.
    ErrorProperties:
      description: Error properties indicate why the Logic service was not able to process the incoming request. The reason is provided in the error message.
      type: object
      properties:
        code:
          description: Error code.
          type: string
        message:
          description: Error message indicating why the operation failed.
          type: string
  parameters:
    subscriptionId:
      name: subscriptionId
      description: The subscription id.
      in: path
      required: true
      schema:
        type: string
    api-version:
      name: api-version
      description: The API version.
      in: query
      required: true
      schema:
        type: string
    maxpagesize:
      name: maxpagesize
      in: query
      required: false
      description: The maximum page size to get the items at one time.
      x-ms-parameter-location: method
      schema:
        type: integer
        format: int32
    workflowRunId:
      name: workflowRunId
      in: path
      required: true
      description: The workflow run id.
      x-ms-parameter-location: method
      schema:
        type: string
        format: uuid
    workflowIds:
      name: workflowIds
      in: query
      required: false
      description: Filter items by workflow id list.
      x-ms-parameter-location: method
      schema:
        type: array
        items:
          type: string
    runStatuses:
      name: runStatuses
      in: query
      required: false
      description: Filter workflow runs by workflow run status.
      x-ms-parameter-location: method
      schema:
        type: array
        items:
          type: string
          enum:
          - InProgress
          - Failed
          - Completed
          - NotStarted
          - Canceling
          - CancellationFailed
          - Canceled
          x-ms-enum:
            name: status
            modelAsString: true
    timeWindow:
      name: timeWindow
      in: query
      required: false
      x-ms-enum:
        name: TimeWindow
        modelAsString: true
      description: Time window of filtering items.
      x-ms-parameter-location: method
      schema:
        type: string
        enum:
        - 1d
        - 7d
        - 30d
        - 90d
    resourceGroupNameParameter:
      name: resourceGroupName
      in: path
      description: Name of the resource group to which the resource belongs.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
        maxLength: 90
        minLength: 1
        pattern: ^[-\w\._\(\)]+[^\.]$
    subscriptionIdParameter:
      name: subscriptionId
      in: path
      description: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).
      required: true
      x-ms-parameter-location: client
      schema:
        type: string
    siteNameParameter:
      name: name
      in: path
      description: Site name.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
    apiVersionParameter:
      name: api-version
      in: query
      description: API Version
      required: true
      x-ms-parameter-location: client
      schema:
        type: string
  securitySchemes:
    azure_auth:
      type: oauth2
      flows:
        implicit:
          scopes:
            user_impersonation: impersonate your user account
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
      description: Azure Active Directory OAuth2 Flow.