Share via


DataBoxExtensions.GetAvailableSkusAsync Method

Definition

This method provides the list of available skus for the given subscription, resource group and location.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/locations/{location}/availableSkus
  • Operation Id: Service_ListAvailableSkusByResourceGroup
public static Azure.AsyncPageable<Azure.ResourceManager.DataBox.Models.DataBoxSkuInformation> GetAvailableSkusAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.Core.AzureLocation location, Azure.ResourceManager.DataBox.Models.AvailableSkusContent content, System.Threading.CancellationToken cancellationToken = default);
static member GetAvailableSkusAsync : Azure.ResourceManager.Resources.ResourceGroupResource * Azure.Core.AzureLocation * Azure.ResourceManager.DataBox.Models.AvailableSkusContent * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.DataBox.Models.DataBoxSkuInformation>
<Extension()>
Public Function GetAvailableSkusAsync (resourceGroupResource As ResourceGroupResource, location As AzureLocation, content As AvailableSkusContent, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of DataBoxSkuInformation)

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

location
AzureLocation

The location of the resource.

content
AvailableSkusContent

Filters for showing the available skus.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

resourceGroupResource or content is null.

Applies to