FirewallRules interface

Interface representing a FirewallRules.

Methods

beginCreateOrUpdate(string, string, string, FirewallRule, FirewallRulesCreateOrUpdateOptionalParams)

Creates a new firewall rule or updates an existing firewall rule.

beginCreateOrUpdateAndWait(string, string, string, FirewallRule, FirewallRulesCreateOrUpdateOptionalParams)

Creates a new firewall rule or updates an existing firewall rule.

beginDelete(string, string, string, FirewallRulesDeleteOptionalParams)

Deletes a firewall rule.

beginDeleteAndWait(string, string, string, FirewallRulesDeleteOptionalParams)

Deletes a firewall rule.

get(string, string, string, FirewallRulesGetOptionalParams)

Gets information about a server firewall rule.

listByServer(string, string, FirewallRulesListByServerOptionalParams)

List all the firewall rules in a given server.

Method Details

beginCreateOrUpdate(string, string, string, FirewallRule, FirewallRulesCreateOrUpdateOptionalParams)

Creates a new firewall rule or updates an existing firewall rule.

function beginCreateOrUpdate(resourceGroupName: string, serverName: string, firewallRuleName: string, parameters: FirewallRule, options?: FirewallRulesCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<FirewallRule>, FirewallRule>>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

serverName

string

The name of the server.

firewallRuleName

string

The name of the server firewall rule.

parameters
FirewallRule

The required parameters for creating or updating a firewall rule.

options
FirewallRulesCreateOrUpdateOptionalParams

The options parameters.

Returns

Promise<PollerLike<@azure/core-lro.PollOperationState<FirewallRule>, FirewallRule>>

beginCreateOrUpdateAndWait(string, string, string, FirewallRule, FirewallRulesCreateOrUpdateOptionalParams)

Creates a new firewall rule or updates an existing firewall rule.

function beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, firewallRuleName: string, parameters: FirewallRule, options?: FirewallRulesCreateOrUpdateOptionalParams): Promise<FirewallRule>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

serverName

string

The name of the server.

firewallRuleName

string

The name of the server firewall rule.

parameters
FirewallRule

The required parameters for creating or updating a firewall rule.

options
FirewallRulesCreateOrUpdateOptionalParams

The options parameters.

Returns

Promise<FirewallRule>

beginDelete(string, string, string, FirewallRulesDeleteOptionalParams)

Deletes a firewall rule.

function beginDelete(resourceGroupName: string, serverName: string, firewallRuleName: string, options?: FirewallRulesDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

serverName

string

The name of the server.

firewallRuleName

string

The name of the server firewall rule.

options
FirewallRulesDeleteOptionalParams

The options parameters.

Returns

Promise<PollerLike<@azure/core-lro.PollOperationState<void>, void>>

beginDeleteAndWait(string, string, string, FirewallRulesDeleteOptionalParams)

Deletes a firewall rule.

function beginDeleteAndWait(resourceGroupName: string, serverName: string, firewallRuleName: string, options?: FirewallRulesDeleteOptionalParams): Promise<void>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

serverName

string

The name of the server.

firewallRuleName

string

The name of the server firewall rule.

options
FirewallRulesDeleteOptionalParams

The options parameters.

Returns

Promise<void>

get(string, string, string, FirewallRulesGetOptionalParams)

Gets information about a server firewall rule.

function get(resourceGroupName: string, serverName: string, firewallRuleName: string, options?: FirewallRulesGetOptionalParams): Promise<FirewallRule>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

serverName

string

The name of the server.

firewallRuleName

string

The name of the server firewall rule.

options
FirewallRulesGetOptionalParams

The options parameters.

Returns

Promise<FirewallRule>

listByServer(string, string, FirewallRulesListByServerOptionalParams)

List all the firewall rules in a given server.

function listByServer(resourceGroupName: string, serverName: string, options?: FirewallRulesListByServerOptionalParams): PagedAsyncIterableIterator<FirewallRule, FirewallRule[], PageSettings>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

serverName

string

The name of the server.

options
FirewallRulesListByServerOptionalParams

The options parameters.

Returns