Condividi tramite


MockableComputeSubscriptionResource.GetCommunityGalleryImageVersionsAsync Method

Definition

List community gallery image versions inside an image.

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

Parameters

location
AzureLocation

The name of Azure region.

publicGalleryName
String

The public name of the community gallery.

galleryImageName
String

The name of the community gallery image definition.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of CommunityGalleryImageVersionData that may take multiple service requests to iterate over.

Exceptions

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

publicGalleryName or galleryImageName is null.

Applies to