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. <item> Mocking. To mock this method, please mock GetCommunityGalleryImageVersionsAsync(AzureLocation, String, String, CancellationToken) instead. </item>
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 the method will execute against.
- location
- AzureLocation
The name of the 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.
subscriptionResource is null.