Compartir a través de


NetworkWatchersOperationsExtensions.GetVMSecurityRulesAsync Método

Definición

Obtiene las reglas de grupo de seguridad configuradas y eficaces en la máquina virtual 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

El grupo de operaciones de este método de extensión.

resourceGroupName
String

Nombre del grupo de recursos.

networkWatcherName
String

Nombre del monitor de red.

targetResourceId
String

Identificador de la máquina virtual de destino.

cancellationToken
CancellationToken

Token de cancelación.

Devoluciones

Se aplica a