ComputeExtensions.GetSharedGalleryImageVersionAsync Method

Definition

Get a shared gallery image version by subscription id or tenant id. <item> Mocking. To mock this method, please mock GetSharedGalleryImageVersionAsync(AzureLocation, String, String, String, CancellationToken) instead. </item>

public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.SharedGalleryImageVersionData>> GetSharedGalleryImageVersionAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, string galleryUniqueName, string galleryImageName, string galleryImageVersionName, System.Threading.CancellationToken cancellationToken = default);
static member GetSharedGalleryImageVersionAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.SharedGalleryImageVersionData>>
<Extension()>
Public Function GetSharedGalleryImageVersionAsync (subscriptionResource As SubscriptionResource, location As AzureLocation, galleryUniqueName As String, galleryImageName As String, galleryImageVersionName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SharedGalleryImageVersionData))

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource the method will execute against.

location
AzureLocation

The name of the Azure region.

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 to use.

Returns

Exceptions

galleryUniqueName, galleryImageName or galleryImageVersionName is an empty string, and was expected to be non-empty.

subscriptionResource is null.

Applies to