MockableComputeSubscriptionResource.GetCommunityGalleryImages 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.Pageable<Azure.ResourceManager.Compute.CommunityGalleryImageData> GetCommunityGalleryImages(Azure.Core.AzureLocation location, string publicGalleryName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetCommunityGalleryImages : Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Compute.CommunityGalleryImageData>
override this.GetCommunityGalleryImages : Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Compute.CommunityGalleryImageData>
Public Overridable Function GetCommunityGalleryImages (location As AzureLocation, publicGalleryName As String, Optional cancellationToken As CancellationToken = Nothing) As Pageable(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