DataLakeAnalyticsFirewallRuleCollection.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.DataLakeAnalytics/accounts/{accountName}/firewallRules/{firewallRuleName}
  • Operation Id: FirewallRules_CreateOrUpdate
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DataLakeAnalytics.DataLakeAnalyticsFirewallRuleResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string firewallRuleName, Azure.ResourceManager.DataLakeAnalytics.Models.DataLakeAnalyticsFirewallRuleCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.DataLakeAnalytics.Models.DataLakeAnalyticsFirewallRuleCreateOrUpdateContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DataLakeAnalytics.DataLakeAnalyticsFirewallRuleResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.DataLakeAnalytics.Models.DataLakeAnalyticsFirewallRuleCreateOrUpdateContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DataLakeAnalytics.DataLakeAnalyticsFirewallRuleResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, firewallRuleName As String, content As DataLakeAnalyticsFirewallRuleCreateOrUpdateContent, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of DataLakeAnalyticsFirewallRuleResource)

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
DataLakeAnalyticsFirewallRuleCreateOrUpdateContent

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