Udostępnij za pośrednictwem


NetworkVirtualApplianceResource.CreateOrUpdateInboundSecurityRuleAsync Method

Definition

Creates or updates the specified Network Virtual Appliance Inbound Security Rules.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/inboundSecurityRules/{ruleCollectionName}
  • Operation Id: InboundSecurityRule_CreateOrUpdate
  • Default Api Version: 2023-09-01
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.Models.InboundSecurityRule>> CreateOrUpdateInboundSecurityRuleAsync (Azure.WaitUntil waitUntil, string ruleCollectionName, Azure.ResourceManager.Network.Models.InboundSecurityRule inboundSecurityRule, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateInboundSecurityRuleAsync : Azure.WaitUntil * string * Azure.ResourceManager.Network.Models.InboundSecurityRule * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.Models.InboundSecurityRule>>
override this.CreateOrUpdateInboundSecurityRuleAsync : Azure.WaitUntil * string * Azure.ResourceManager.Network.Models.InboundSecurityRule * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.Models.InboundSecurityRule>>
Public Overridable Function CreateOrUpdateInboundSecurityRuleAsync (waitUntil As WaitUntil, ruleCollectionName As String, inboundSecurityRule As InboundSecurityRule, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of InboundSecurityRule))

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.

ruleCollectionName
String

The name of security rule collection.

inboundSecurityRule
InboundSecurityRule

Parameters supplied to the create or update Network Virtual Appliance Inbound Security Rules operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

ruleCollectionName is an empty string, and was expected to be non-empty.

ruleCollectionName or inboundSecurityRule is null.

Applies to