Share via


AppServiceExtensions.GetStaticSites Method

Definition

Overloads

GetStaticSites(ResourceGroupResource)

Gets a collection of StaticSiteResources in the ResourceGroupResource. MockingTo mock this method, please mock GetStaticSites() instead.

GetStaticSites(SubscriptionResource, CancellationToken)

Description for Get all Static Sites for a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Web/staticSites
  • Operation Id: StaticSites_List
  • Default Api Version: 2024-04-01
  • Resource: StaticSiteResource

GetStaticSites(ResourceGroupResource)

Source:
AppServiceExtensions.cs
Source:
AppServiceExtensions.cs

Gets a collection of StaticSiteResources in the ResourceGroupResource. MockingTo mock this method, please mock GetStaticSites() instead.

public static Azure.ResourceManager.AppService.StaticSiteCollection GetStaticSites (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetStaticSites : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.AppService.StaticSiteCollection
<Extension()>
Public Function GetStaticSites (resourceGroupResource As ResourceGroupResource) As StaticSiteCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of StaticSiteResources and their operations over a StaticSiteResource.

Exceptions

resourceGroupResource is null.

Applies to

GetStaticSites(SubscriptionResource, CancellationToken)

Source:
AppServiceExtensions.cs
Source:
AppServiceExtensions.cs

Description for Get all Static Sites for a subscription.

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

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to