Share via


SearchExtensions.GetOfferingsAsync(TenantResource, CancellationToken) Method

Definition

Lists all of the features and SKUs offered by the Azure AI Search service in each region.

  • Request Path: /providers/Microsoft.Search/offerings
  • Operation Id: Offerings_List
  • Default Api Version: 2025-02-01-preview
<item>MockingTo mock this method, please mock GetOfferings(CancellationToken) instead.</item>
public static Azure.AsyncPageable<Azure.ResourceManager.Search.Models.SearchServiceOfferingsByRegion> GetOfferingsAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, System.Threading.CancellationToken cancellationToken = default);
static member GetOfferingsAsync : Azure.ResourceManager.Resources.TenantResource * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Search.Models.SearchServiceOfferingsByRegion>
<Extension()>
Public Function GetOfferingsAsync (tenantResource As TenantResource, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of SearchServiceOfferingsByRegion)

Parameters

tenantResource
TenantResource

The TenantResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

tenantResource is null.

Applies to