Share via


ContainerRegistryPipelineRunCollection.GetIfExistsAsync Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/pipelineRuns/{pipelineRunName}
  • Operation Id: PipelineRuns_Get
  • Default Api Version: 2024-11-01-preview
  • Resource: ContainerRegistryPipelineRunResource
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.ContainerRegistry.ContainerRegistryPipelineRunResource>> GetIfExistsAsync(string pipelineRunName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.ContainerRegistry.ContainerRegistryPipelineRunResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.ContainerRegistry.ContainerRegistryPipelineRunResource>>
Public Overridable Function GetIfExistsAsync (pipelineRunName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of ContainerRegistryPipelineRunResource))

Parameters

pipelineRunName
String

The name of the pipeline run.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

pipelineRunName is null.

Applies to