SecurityCenterExtensions.GetPrivateLinkResource Method

Definition

Overloads

Name Description
GetPrivateLinkResource(ArmClient, ResourceIdentifier)

Gets an object representing a PrivateLinkResource along with the instance operations that can be performed on it but with no data. <item> Mocking. To mock this method, please mock GetPrivateLinkResource(ResourceIdentifier) instead. </item>

GetPrivateLinkResource(ResourceGroupResource, String, CancellationToken)

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 GetPrivateLinkResource(String, CancellationToken) instead. </item>

GetPrivateLinkResource(ArmClient, ResourceIdentifier)

Source:
SecurityCenterExtensions.cs

Gets an object representing a PrivateLinkResource along with the instance operations that can be performed on it but with no data. <item> Mocking. To mock this method, please mock GetPrivateLinkResource(ResourceIdentifier) instead. </item>

public static Azure.ResourceManager.SecurityCenter.PrivateLinkResource GetPrivateLinkResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id);
static member GetPrivateLinkResource : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier -> Azure.ResourceManager.SecurityCenter.PrivateLinkResource
<Extension()>
Public Function GetPrivateLinkResource (client As ArmClient, id As ResourceIdentifier) As PrivateLinkResource

Parameters

client
ArmClient

The ArmClient the method will execute against.

id
ResourceIdentifier

The resource ID of the resource to get.

Returns

Returns a PrivateLinkResource object.

Exceptions

client is null.

Applies to

GetPrivateLinkResource(ResourceGroupResource, String, CancellationToken)

Source:
SecurityCenterExtensions.cs

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 GetPrivateLinkResource(String, CancellationToken) instead. </item>

public static Azure.Response<Azure.ResourceManager.SecurityCenter.PrivateLinkResource> GetPrivateLinkResource(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string privateLinkName, System.Threading.CancellationToken cancellationToken = default);
static member GetPrivateLinkResource : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.SecurityCenter.PrivateLinkResource>
<Extension()>
Public Function GetPrivateLinkResource (resourceGroupResource As ResourceGroupResource, privateLinkName As String, Optional cancellationToken As CancellationToken = Nothing) As 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