HybridNetworkExtensions.GetSiteNetworkServices Method

Definition

Overloads

GetSiteNetworkServices(ResourceGroupResource)

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

GetSiteNetworkServices(SubscriptionResource, CancellationToken)

Lists all sites in the network service in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.HybridNetwork/siteNetworkServices
  • Operation Id: SiteNetworkServices_ListBySubscription

GetSiteNetworkServices(ResourceGroupResource)

Source:
HybridNetworkExtensions.cs

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

public static Azure.ResourceManager.HybridNetwork.SiteNetworkServiceCollection GetSiteNetworkServices (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetSiteNetworkServices : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.HybridNetwork.SiteNetworkServiceCollection
<Extension()>
Public Function GetSiteNetworkServices (resourceGroupResource As ResourceGroupResource) As SiteNetworkServiceCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of SiteNetworkServiceResources and their operations over a SiteNetworkServiceResource.

Exceptions

resourceGroupResource is null.

Applies to

GetSiteNetworkServices(SubscriptionResource, CancellationToken)

Source:
HybridNetworkExtensions.cs

Lists all sites in the network service in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.HybridNetwork/siteNetworkServices
  • Operation Id: SiteNetworkServices_ListBySubscription
public static Azure.Pageable<Azure.ResourceManager.HybridNetwork.SiteNetworkServiceResource> GetSiteNetworkServices (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetSiteNetworkServices : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.HybridNetwork.SiteNetworkServiceResource>
<Extension()>
Public Function GetSiteNetworkServices (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of SiteNetworkServiceResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to