MockableComputeSubscriptionResource.GetSharedGalleriesAsync Method

Definition

List shared galleries by subscription id or tenant id.

  • Request Path. : /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries.
  • Operation Id. : SharedGalleries_List.
  • Default Api Version. : 2025-03-03.
public virtual Azure.AsyncPageable<Azure.ResourceManager.Compute.SharedGalleryData> GetSharedGalleriesAsync(Azure.Core.AzureLocation location, Azure.ResourceManager.Compute.Models.SharedToValue? sharedTo = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSharedGalleriesAsync : Azure.Core.AzureLocation * Nullable<Azure.ResourceManager.Compute.Models.SharedToValue> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Compute.SharedGalleryData>
override this.GetSharedGalleriesAsync : Azure.Core.AzureLocation * Nullable<Azure.ResourceManager.Compute.Models.SharedToValue> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Compute.SharedGalleryData>
Public Overridable Function GetSharedGalleriesAsync (location As AzureLocation, Optional sharedTo As Nullable(Of SharedToValue) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of SharedGalleryData)

Parameters

location
AzureLocation

The name of the Azure region.

sharedTo
Nullable<SharedToValue>

The query parameter to decide what shared galleries to fetch when doing listing operations.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of SharedGalleryData that may take multiple service requests to iterate over.

Applies to