Share via


AppServiceExtensions.GetWebSites Method

Definition

Overloads

GetWebSites(ResourceGroupResource)

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

GetWebSites(SubscriptionResource, CancellationToken)

Description for Get all apps for a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Web/sites
  • Operation Id: WebApps_List
  • Default Api Version: 2023-12-01
  • Resource: WebSiteResource

GetWebSites(ResourceGroupResource)

Source:
AppServiceExtensions.cs
Source:
AppServiceExtensions.cs

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

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

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of WebSiteResources and their operations over a WebSiteResource.

Exceptions

resourceGroupResource is null.

Applies to

GetWebSites(SubscriptionResource, CancellationToken)

Source:
AppServiceExtensions.cs
Source:
AppServiceExtensions.cs

Description for Get all apps for a subscription.

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

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to