Share via


SharedGalleryImageVersionsOperationsExtensions.GetAsync Method

Definition

Get a shared gallery image version by subscription id or tenant id.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Models.SharedGalleryImageVersion> GetAsync (this Microsoft.Azure.Management.Compute.ISharedGalleryImageVersionsOperations operations, string location, string galleryUniqueName, string galleryImageName, string galleryImageVersionName, System.Threading.CancellationToken cancellationToken = default);
static member GetAsync : Microsoft.Azure.Management.Compute.ISharedGalleryImageVersionsOperations * string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Models.SharedGalleryImageVersion>
<Extension()>
Public Function GetAsync (operations As ISharedGalleryImageVersionsOperations, location As String, galleryUniqueName As String, galleryImageName As String, galleryImageVersionName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of SharedGalleryImageVersion)

Parameters

operations
ISharedGalleryImageVersionsOperations

The operations group for this extension method.

location
String

Resource location.

galleryUniqueName
String

The unique name of the Shared Gallery.

galleryImageName
String

The name of the Shared Gallery Image Definition from which the Image Versions are to be listed.

galleryImageVersionName
String

The name of the gallery image version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to