Share via


ContainerRegistryArchiveVersionCollection.GetIfExistsAsync Method

Definition

Tries to get details for this resource from the service.

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

Parameters

archiveVersionName
String

The name of the archive version resource.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

archiveVersionName is null.

Applies to