Udostępnij za pośrednictwem


NetworkWatcherResource.GetVmSecurityRulesAsync Method

Definition

Gets the configured and effective security group rules on the specified VM.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/securityGroupView
  • Operation Id: NetworkWatchers_GetVmSecurityRules
  • Default Api Version: 2024-03-01
  • Resource: NetworkWatcherResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.Models.SecurityGroupViewResult>> GetVmSecurityRulesAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.Models.SecurityGroupViewContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member GetVmSecurityRulesAsync : Azure.WaitUntil * Azure.ResourceManager.Network.Models.SecurityGroupViewContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.Models.SecurityGroupViewResult>>
override this.GetVmSecurityRulesAsync : Azure.WaitUntil * Azure.ResourceManager.Network.Models.SecurityGroupViewContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.Models.SecurityGroupViewResult>>
Public Overridable Function GetVmSecurityRulesAsync (waitUntil As WaitUntil, content As SecurityGroupViewContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of SecurityGroupViewResult))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

content
SecurityGroupViewContent

Parameters that define the VM to check security groups for.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

content is null.

Applies to