MockableComputeSubscriptionResource.GetCommunityGalleryImagesAsync Method

Definition

List community gallery images inside a gallery.

  • Request Path. : /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images.
  • Operation Id. : CommunityGalleryImages_List.
  • Default Api Version. : 2025-12-03.
public virtual Azure.AsyncPageable<Azure.ResourceManager.Compute.CommunityGalleryImageData> GetCommunityGalleryImagesAsync(Azure.Core.AzureLocation location, string publicGalleryName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetCommunityGalleryImagesAsync : Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Compute.CommunityGalleryImageData>
override this.GetCommunityGalleryImagesAsync : Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Compute.CommunityGalleryImageData>
Public Overridable Function GetCommunityGalleryImagesAsync (location As AzureLocation, publicGalleryName As String, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of CommunityGalleryImageData)

Parameters

location
AzureLocation

The name of the Azure region.

publicGalleryName
String

The public name of the community gallery.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

publicGalleryName is null.

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

Applies to