WorkflowRunsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

WebSiteManagementClient's

<xref:workflow_runs> attribute.

Inheritance
builtins.object
WorkflowRunsOperations

Constructor

WorkflowRunsOperations(*args, **kwargs)

Methods

cancel

Cancels a workflow run.

get

Gets a workflow run.

list

Gets a list of workflow runs.

cancel

Cancels a workflow run.

cancel(resource_group_name: str, name: str, workflow_name: str, run_name: str, **kwargs: Any) -> None

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

name
Required
str

Site name. Required.

workflow_name
Required
str

The workflow name. Required.

run_name
Required
str

The workflow run name. Required.

Returns

Type Description

None or the result of cls(response)

Exceptions

Type Description

get

Gets a workflow run.

get(resource_group_name: str, name: str, workflow_name: str, run_name: str, **kwargs: Any) -> WorkflowRun

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

name
Required
str

Site name. Required.

workflow_name
Required
str

The workflow name. Required.

run_name
Required
str

The workflow run name. Required.

Returns

Type Description

WorkflowRun or the result of cls(response)

Exceptions

Type Description

list

Gets a list of workflow runs.

list(resource_group_name: str, name: str, workflow_name: str, top: int | None = None, filter: str | None = None, **kwargs: Any) -> Iterable[WorkflowRun]

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

name
Required
str

Site name. Required.

workflow_name
Required
str

The workflow name. Required.

top
Required
int

The number of items to be included in the result. Default value is None.

filter
Required
str

The filter to apply on the operation. Options for filters include: Status, StartTime, and ClientTrackingId. Default value is None.

Returns

Type Description

An iterator like instance of either WorkflowRun or the result of cls(response)

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.web.v2023_12_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\web\\v2023_12_01\\models\\__init__.py'>