Compartilhar via


MockableComputeSubscriptionResource.GetVirtualMachineImagesAsync Method

Definition

Overloads

GetVirtualMachineImagesAsync(SubscriptionResourceGetVirtualMachineImagesOptions, CancellationToken)

Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions
  • Operation Id: VirtualMachineImages_List
  • Default Api Version: 2024-07-01
GetVirtualMachineImagesAsync(AzureLocation, String, String, String, String, Nullable<Int32>, String, CancellationToken)

Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions
  • Operation Id: VirtualMachineImages_List

GetVirtualMachineImagesAsync(SubscriptionResourceGetVirtualMachineImagesOptions, CancellationToken)

Source:
MockableComputeSubscriptionResource.cs
Source:
MockableComputeSubscriptionResource.cs

Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions
  • Operation Id: VirtualMachineImages_List
  • Default Api Version: 2024-07-01
public virtual Azure.AsyncPageable<Azure.ResourceManager.Compute.Models.VirtualMachineImageBase> GetVirtualMachineImagesAsync (Azure.ResourceManager.Compute.Models.SubscriptionResourceGetVirtualMachineImagesOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member GetVirtualMachineImagesAsync : Azure.ResourceManager.Compute.Models.SubscriptionResourceGetVirtualMachineImagesOptions * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Compute.Models.VirtualMachineImageBase>
override this.GetVirtualMachineImagesAsync : Azure.ResourceManager.Compute.Models.SubscriptionResourceGetVirtualMachineImagesOptions * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Compute.Models.VirtualMachineImageBase>
Public Overridable Function GetVirtualMachineImagesAsync (options As SubscriptionResourceGetVirtualMachineImagesOptions, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of VirtualMachineImageBase)

Parameters

options
SubscriptionResourceGetVirtualMachineImagesOptions

A property bag which contains all the parameters of this method except the LRO qualifier and request context parameter.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of VirtualMachineImageBase that may take multiple service requests to iterate over.

Exceptions

options is null.

Applies to

GetVirtualMachineImagesAsync(AzureLocation, String, String, String, String, Nullable<Int32>, String, CancellationToken)

Source:
MockableComputeSubscriptionResource.cs
Source:
MockableComputeSubscriptionResource.cs

Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions
  • Operation Id: VirtualMachineImages_List
public virtual Azure.AsyncPageable<Azure.ResourceManager.Compute.Models.VirtualMachineImageBase> GetVirtualMachineImagesAsync (Azure.Core.AzureLocation location, string publisherName, string offer, string skus, string expand = default, int? top = default, string orderby = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetVirtualMachineImagesAsync : Azure.Core.AzureLocation * string * string * string * string * Nullable<int> * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Compute.Models.VirtualMachineImageBase>
override this.GetVirtualMachineImagesAsync : Azure.Core.AzureLocation * string * string * string * string * Nullable<int> * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Compute.Models.VirtualMachineImageBase>
Public Overridable Function GetVirtualMachineImagesAsync (location As AzureLocation, publisherName As String, offer As String, skus As String, Optional expand As String = Nothing, Optional top As Nullable(Of Integer) = Nothing, Optional orderby As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of VirtualMachineImageBase)

Parameters

location
AzureLocation

The name of a supported Azure region.

publisherName
String

A valid image publisher.

offer
String

A valid image publisher offer.

skus
String

A valid image SKU.

expand
String

The expand expression to apply on the operation.

top
Nullable<Int32>

The Integer to use.

orderby
String

The String to use.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of VirtualMachineImageBase that may take multiple service requests to iterate over.

Exceptions

publisherName, offer or skus is an empty string, and was expected to be non-empty.

publisherName, offer or skus is null.

Applies to