ComputeExtensions.GetSharedGalleryData Method

Definition

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

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

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.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

subscriptionResource is null.

Applies to