Dela via


NetworkExtensions.GetPrivateLinkServices Method

Definition

Overloads

GetPrivateLinkServices(ResourceGroupResource)

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

GetPrivateLinkServices(SubscriptionResource, CancellationToken)

Gets all private link service in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/privateLinkServices
  • Operation Id: PrivateLinkServices_ListBySubscription
  • Default Api Version: 2024-03-01
  • Resource: PrivateLinkServiceResource

GetPrivateLinkServices(ResourceGroupResource)

Source:
NetworkExtensions.cs
Source:
NetworkExtensions.cs

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

public static Azure.ResourceManager.Network.PrivateLinkServiceCollection GetPrivateLinkServices (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetPrivateLinkServices : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Network.PrivateLinkServiceCollection
<Extension()>
Public Function GetPrivateLinkServices (resourceGroupResource As ResourceGroupResource) As PrivateLinkServiceCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of PrivateLinkServiceResources and their operations over a PrivateLinkServiceResource.

Exceptions

resourceGroupResource is null.

Applies to

GetPrivateLinkServices(SubscriptionResource, CancellationToken)

Source:
NetworkExtensions.cs
Source:
NetworkExtensions.cs

Gets all private link service in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/privateLinkServices
  • Operation Id: PrivateLinkServices_ListBySubscription
  • Default Api Version: 2024-03-01
  • Resource: PrivateLinkServiceResource
public static Azure.Pageable<Azure.ResourceManager.Network.PrivateLinkServiceResource> GetPrivateLinkServices (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetPrivateLinkServices : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Network.PrivateLinkServiceResource>
<Extension()>
Public Function GetPrivateLinkServices (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of PrivateLinkServiceResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to