HybridNetworkExtensions.GetSites Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetSites(ResourceGroupResource) |
Gets a collection of SiteResources in the ResourceGroupResource. MockingTo mock this method, please mock GetSites() instead. |
GetSites(SubscriptionResource, CancellationToken) |
Lists all sites in the network service in a subscription.
|
GetSites(ResourceGroupResource)
- Source:
- HybridNetworkExtensions.cs
Gets a collection of SiteResources in the ResourceGroupResource. MockingTo mock this method, please mock GetSites() instead.
public static Azure.ResourceManager.HybridNetwork.SiteCollection GetSites (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetSites : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.HybridNetwork.SiteCollection
<Extension()>
Public Function GetSites (resourceGroupResource As ResourceGroupResource) As SiteCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
Returns
An object representing collection of SiteResources and their operations over a SiteResource.
Exceptions
resourceGroupResource
is null.
Applies to
GetSites(SubscriptionResource, CancellationToken)
- Source:
- HybridNetworkExtensions.cs
Lists all sites in the network service in a subscription.
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.HybridNetwork/sites
- Operation Id: Sites_ListBySubscription
public static Azure.Pageable<Azure.ResourceManager.HybridNetwork.SiteResource> GetSites (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetSites : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.HybridNetwork.SiteResource>
<Extension()>
Public Function GetSites (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of SiteResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of SiteResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource
is null.
Applies to
Azure SDK for .NET