ComputeExtensions.GetCommunityGalleryImageVersionsAsync 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 static Azure.AsyncPageable<Azure.ResourceManager.Compute.CommunityGalleryImageVersionData> GetCommunityGalleryImageVersionsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, string publicGalleryName, string galleryImageName, System.Threading.CancellationToken cancellationToken = default);
static member GetCommunityGalleryImageVersionsAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * string * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Compute.CommunityGalleryImageVersionData>
<Extension()>
Public Function GetCommunityGalleryImageVersionsAsync (subscriptionResource As SubscriptionResource, location As AzureLocation, publicGalleryName As String, galleryImageName As String, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of CommunityGalleryImageVersionData)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- 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.
subscriptionResource, publicGalleryName or galleryImageName is null.