MockableHciSubscriptionResource.GetBySubscriptionLocationResourceAsync 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 all kubernetes versions.
- Request Path. : /subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/locations/{location}/kubernetesVersions.
- Operation Id. : KubernetesVersions_ListBySubscriptionLocationResource.
- Default Api Version. : 2026-04-01-preview.
public virtual Azure.AsyncPageable<Azure.ResourceManager.Hci.Models.HciKubernetesVersion> GetBySubscriptionLocationResourceAsync(Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default);
abstract member GetBySubscriptionLocationResourceAsync : Azure.Core.AzureLocation * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Hci.Models.HciKubernetesVersion>
override this.GetBySubscriptionLocationResourceAsync : Azure.Core.AzureLocation * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Hci.Models.HciKubernetesVersion>
Public Overridable Function GetBySubscriptionLocationResourceAsync (location As AzureLocation, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of HciKubernetesVersion)
Parameters
- location
- AzureLocation
The name of the Azure region.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of HciKubernetesVersion that may take multiple service requests to iterate over.