SecurityCenterExtensions.GetAllowedConnectionAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.