DataLakeStoreFirewallRuleCollection.CreateOrUpdateAsync Method

Definition

Creates or updates the specified firewall rule. During update, the firewall rule with the specified name will be replaced with this new firewall rule.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeStore/accounts/{accountName}/firewallRules/{firewallRuleName}
  • Operation Id: FirewallRules_CreateOrUpdate
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DataLakeStore.DataLakeStoreFirewallRuleResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string firewallRuleName, Azure.ResourceManager.DataLakeStore.Models.DataLakeStoreFirewallRuleCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.DataLakeStore.Models.DataLakeStoreFirewallRuleCreateOrUpdateContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DataLakeStore.DataLakeStoreFirewallRuleResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.DataLakeStore.Models.DataLakeStoreFirewallRuleCreateOrUpdateContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DataLakeStore.DataLakeStoreFirewallRuleResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, firewallRuleName As String, content As DataLakeStoreFirewallRuleCreateOrUpdateContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of DataLakeStoreFirewallRuleResource))

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.

firewallRuleName
String

The name of the firewall rule to create or update.

content
DataLakeStoreFirewallRuleCreateOrUpdateContent

Parameters supplied to create or update the firewall rule.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

firewallRuleName or content is null.

Applies to