Share via


NetworkWatcherResource.GetVmSecurityRules 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 Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.Models.SecurityGroupViewResult> GetVmSecurityRules (Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.Models.SecurityGroupViewContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member GetVmSecurityRules : Azure.WaitUntil * Azure.ResourceManager.Network.Models.SecurityGroupViewContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.Models.SecurityGroupViewResult>
override this.GetVmSecurityRules : Azure.WaitUntil * Azure.ResourceManager.Network.Models.SecurityGroupViewContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.Models.SecurityGroupViewResult>
Public Overridable Function GetVmSecurityRules (waitUntil As WaitUntil, content As SecurityGroupViewContent, Optional cancellationToken As CancellationToken = Nothing) As 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