Share via


AppServiceExtensions.GetStaticSitesAsync Method

Definition

Description for Get all Static Sites for a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Web/staticSites
  • Operation Id: StaticSites_List
  • Default Api Version: 2023-12-01
  • Resource: StaticSiteResource
public static Azure.AsyncPageable<Azure.ResourceManager.AppService.StaticSiteResource> GetStaticSitesAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetStaticSitesAsync : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.AppService.StaticSiteResource>
<Extension()>
Public Function GetStaticSitesAsync (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of StaticSiteResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to