SecurityCenterExtensions.GetAllowedConnection Method

Definition

Provides a compatibility shim for the GetAllowedConnection operation preserved from the previous public API surface.

public static Azure.Response<Azure.ResourceManager.SecurityCenter.Models.SecurityCenterAllowedConnection> GetAllowedConnection(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.Core.AzureLocation ascLocation, Azure.ResourceManager.SecurityCenter.Models.SecurityCenterConnectionType connectionType, System.Threading.CancellationToken cancellationToken = default);
static member GetAllowedConnection : Azure.ResourceManager.Resources.ResourceGroupResource * Azure.Core.AzureLocation * Azure.ResourceManager.SecurityCenter.Models.SecurityCenterConnectionType * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.SecurityCenter.Models.SecurityCenterAllowedConnection>
<Extension()>
Public Function GetAllowedConnection (resourceGroupResource As ResourceGroupResource, ascLocation As AzureLocation, connectionType As SecurityCenterConnectionType, Optional cancellationToken As CancellationToken = Nothing) As Response(Of SecurityCenterAllowedConnection)

Parameters

resourceGroupResource
ResourceGroupResource

The value preserved for API compatibility.

ascLocation
AzureLocation

The value preserved for API compatibility.

connectionType
SecurityCenterConnectionType

The value preserved for API compatibility.

cancellationToken
CancellationToken

The value preserved for API compatibility.

Returns

The compatibility result.

Exceptions

resourceGroupResource is null.

Applies to