Compartilhar via


NetworkWatchersOperationsExtensions.GetVMSecurityRulesAsync Método

Definição

Obtém as regras de grupo de segurança configuradas e eficazes na VM especificada.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Network.Fluent.Models.SecurityGroupViewResultInner> GetVMSecurityRulesAsync (this Microsoft.Azure.Management.Network.Fluent.INetworkWatchersOperations operations, string resourceGroupName, string networkWatcherName, string targetResourceId, System.Threading.CancellationToken cancellationToken = default);
static member GetVMSecurityRulesAsync : Microsoft.Azure.Management.Network.Fluent.INetworkWatchersOperations * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Network.Fluent.Models.SecurityGroupViewResultInner>
<Extension()>
Public Function GetVMSecurityRulesAsync (operations As INetworkWatchersOperations, resourceGroupName As String, networkWatcherName As String, targetResourceId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of SecurityGroupViewResultInner)

Parâmetros

operations
INetworkWatchersOperations

O grupo de operações para esse método de extensão.

resourceGroupName
String

O nome do grupo de recursos.

networkWatcherName
String

O nome do observador de rede.

targetResourceId
String

ID da VM de destino.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Aplica-se a