Sdílet prostřednictvím


WorkflowVersionCollection.GetIfExistsAsync(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/versions/{versionId}
  • Operation Id: WorkflowVersions_Get
  • Default Api Version: 2023-12-01
  • Resource: WorkflowVersionResource
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.AppService.WorkflowVersionResource>> GetIfExistsAsync (string versionId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.AppService.WorkflowVersionResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.AppService.WorkflowVersionResource>>
Public Overridable Function GetIfExistsAsync (versionId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of WorkflowVersionResource))

Parameters

versionId
String

The workflow versionId.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

versionId is an empty string, and was expected to be non-empty.

versionId is null.

Applies to