Partilhar via


SecurityCenterExtensions.GetAllowedConnectionAsync Método

Definição

Obtém a lista de todo o tráfego possível entre os recursos para a assinatura e o local, com base no tipo de conexão.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/allowedConnections/{connectionType}
  • IdAllowedConnections_Get de operação
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))

Parâmetros

resourceGroupResource
ResourceGroupResource

A ResourceGroupResource instância na qual o método será executado.

ascLocation
AzureLocation

O local em que o ASC armazena os dados da assinatura. pode ser recuperado de Obter locais.

connectionType
SecurityCenterConnectionType

O tipo de conexões permitidas (Interno, Externo).

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Aplica-se a