MockableComputeSubscriptionResource.GetCommunityGalleryImageVersions Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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: 2024-03-03
public virtual Azure.Pageable<Azure.ResourceManager.Compute.CommunityGalleryImageVersionData> GetCommunityGalleryImageVersions(Azure.Core.AzureLocation location, string publicGalleryName, string galleryImageName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetCommunityGalleryImageVersions : Azure.Core.AzureLocation * string * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Compute.CommunityGalleryImageVersionData>
override this.GetCommunityGalleryImageVersions : Azure.Core.AzureLocation * string * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Compute.CommunityGalleryImageVersionData>
Public Overridable Function GetCommunityGalleryImageVersions (location As AzureLocation, publicGalleryName As String, galleryImageName As String, Optional cancellationToken As CancellationToken = Nothing) As Pageable(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
A 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.