Share via


DataLakeStoreFirewallRuleCollection.CreateOrUpdate 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 Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DataLakeStore.DataLakeStoreFirewallRuleResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string firewallRuleName, Azure.ResourceManager.DataLakeStore.Models.DataLakeStoreFirewallRuleCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.DataLakeStore.Models.DataLakeStoreFirewallRuleCreateOrUpdateContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DataLakeStore.DataLakeStoreFirewallRuleResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.DataLakeStore.Models.DataLakeStoreFirewallRuleCreateOrUpdateContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DataLakeStore.DataLakeStoreFirewallRuleResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, firewallRuleName As String, content As DataLakeStoreFirewallRuleCreateOrUpdateContent, Optional cancellationToken As CancellationToken = Nothing) As 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