HciVmExtensions.GetHciVmGalleryImages 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.
Overloads
GetHciVmGalleryImages(ResourceGroupResource) |
Gets a collection of HciVmGalleryImageResources in the ResourceGroupResource. <item>MockingTo mock this method, please mock GetHciVmGalleryImages() instead.</item> |
GetHciVmGalleryImages(SubscriptionResource, CancellationToken) |
Lists all of the gallery images in the specified subscription. Use the nextLink property in the response to get the next page of gallery images.
|
GetHciVmGalleryImages(ResourceGroupResource)
- Source:
- HciVmExtensions.cs
Gets a collection of HciVmGalleryImageResources in the ResourceGroupResource. <item>MockingTo mock this method, please mock GetHciVmGalleryImages() instead.</item>
public static Azure.ResourceManager.Hci.Vm.HciVmGalleryImageCollection GetHciVmGalleryImages(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetHciVmGalleryImages : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Hci.Vm.HciVmGalleryImageCollection
<Extension()>
Public Function GetHciVmGalleryImages (resourceGroupResource As ResourceGroupResource) As HciVmGalleryImageCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
Returns
An object representing collection of HciVmGalleryImageResources and their operations over a HciVmGalleryImageResource.
Exceptions
resourceGroupResource
is null.
Applies to
GetHciVmGalleryImages(SubscriptionResource, CancellationToken)
- Source:
- HciVmExtensions.cs
Lists all of the gallery images in the specified subscription. Use the nextLink property in the response to get the next page of gallery images.
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/galleryImages
- Operation Id: GalleryImage_ListAll
- Default Api Version: 2025-06-01-preview
- Resource: HciVmGalleryImageResource
public static Azure.Pageable<Azure.ResourceManager.Hci.Vm.HciVmGalleryImageResource> GetHciVmGalleryImages(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetHciVmGalleryImages : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Hci.Vm.HciVmGalleryImageResource>
<Extension()>
Public Function GetHciVmGalleryImages (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of HciVmGalleryImageResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of HciVmGalleryImageResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource
is null.