Share via


HciVmExtensions.GetHciVmGalleryImages Method

Definition

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.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/galleryImages
  • Operation Id: GalleryImage_ListAll
  • Default Api Version: 2025-06-01-preview
  • Resource: HciVmGalleryImageResource
<item>MockingTo mock this method, please mock GetHciVmGalleryImages(CancellationToken) instead.</item>

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
<item>MockingTo mock this method, please mock GetHciVmGalleryImages(CancellationToken) instead.</item>
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.

Applies to