SecurityCenterExtensions.GetAllowedConnectionAsync Method

Definition

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

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