MockableComputeSubscriptionResource.GetSharedGalleryImagesAsync Method

Definition

List shared gallery images by subscription id or tenant id.

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

Parameters

location
AzureLocation

The name of the Azure region.

galleryUniqueName
String

The unique name of the Shared Gallery.

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 SharedGalleryImageData that may take multiple service requests to iterate over.

Exceptions

galleryUniqueName is null.

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

Applies to