SecurityCenterExtensions.GetPrivateLinkResources Method

Definition

Overloads

Name Description
GetPrivateLinkResources(ResourceGroupResource)

Gets a collection of PrivateLinkResources in the ResourceGroupResource<item> Mocking. To mock this method, please mock GetPrivateLinkResources() instead. </item>

GetPrivateLinkResources(SubscriptionResource, CancellationToken)

Lists all the private links in the specified subscription. private links enable secure, private connectivity to Microsoft Defender for Cloud services without exposing traffic to the public internet. Use the 'nextLink' property in the response to get the next page of private links for the specified subscription. <item> Mocking. To mock this method, please mock GetPrivateLinkResources(CancellationToken) instead. </item>

GetPrivateLinkResources(ResourceGroupResource)

Source:
SecurityCenterExtensions.cs

Gets a collection of PrivateLinkResources in the ResourceGroupResource<item> Mocking. To mock this method, please mock GetPrivateLinkResources() instead. </item>

public static Azure.ResourceManager.SecurityCenter.PrivateLinkResourceCollection GetPrivateLinkResources(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetPrivateLinkResources : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.SecurityCenter.PrivateLinkResourceCollection
<Extension()>
Public Function GetPrivateLinkResources (resourceGroupResource As ResourceGroupResource) As PrivateLinkResourceCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource the method will execute against.

Returns

An object representing collection of PrivateLinkResources and their operations over a PrivateLinkResource.

Exceptions

resourceGroupResource is null.

Applies to

GetPrivateLinkResources(SubscriptionResource, CancellationToken)

Source:
SecurityCenterExtensions.cs

Lists all the private links in the specified subscription. private links enable secure, private connectivity to Microsoft Defender for Cloud services without exposing traffic to the public internet. Use the 'nextLink' property in the response to get the next page of private links for the specified subscription. <item> Mocking. To mock this method, please mock GetPrivateLinkResources(CancellationToken) instead. </item>

public static Azure.Pageable<Azure.ResourceManager.SecurityCenter.PrivateLinkResource> GetPrivateLinkResources(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetPrivateLinkResources : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.SecurityCenter.PrivateLinkResource>
<Extension()>
Public Function GetPrivateLinkResources (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of PrivateLinkResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to