SecurityCenterExtensions.GetPrivateLinkResourceAsync Method

Definition

Get a private link resource. Returns the configuration and status of private endpoint connectivity for Microsoft Defender for Cloud services in the specified region. <item> Mocking. To mock this method, please mock GetPrivateLinkResourceAsync(String, CancellationToken) instead. </item>

public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.PrivateLinkResource>> GetPrivateLinkResourceAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string privateLinkName, System.Threading.CancellationToken cancellationToken = default);
static member GetPrivateLinkResourceAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.PrivateLinkResource>>
<Extension()>
Public Function GetPrivateLinkResourceAsync (resourceGroupResource As ResourceGroupResource, privateLinkName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of PrivateLinkResource))

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource the method will execute against.

privateLinkName
String

The name of the private link resource.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

resourceGroupResource is null.

Applies to