SqlServer.FirewallRules Interface

public interface FirewallRules

Entry point to firewall rules from the SQL Server.

Method Summary

Modifier and Type Method and Description
SqlFirewallRule.DefinitionStages.Blank define(String firewallRuleName)

Creates a new firewall rule in SQL Server.

void delete(String firewallRuleName)

Delete specified firewall rule in the server.

Completable deleteAsync(String firewallRuleName)

Delete specified firewall rule in the server.

SqlFirewallRule get(String firewallRuleName)

Gets a particular firewall rule.

List<SqlFirewallRule> list()

Returns all the firewall rules for the server.

Method Details

define

public SqlFirewallRule.DefinitionStages.Blank define(String firewallRuleName)

Creates a new firewall rule in SQL Server.

Parameters:

firewallRuleName - name of the firewall rule to be created

Returns:

Returns a stage to specify arguments of the firewall rule

delete

public void delete(String firewallRuleName)

Delete specified firewall rule in the server.

Parameters:

firewallRuleName - name of the firewall rule to delete

deleteAsync

public Completable deleteAsync(String firewallRuleName)

Delete specified firewall rule in the server.

Parameters:

firewallRuleName - name of the firewall rule to delete

Returns:

observable for the delete operation

get

public SqlFirewallRule get(String firewallRuleName)

Gets a particular firewall rule.

Parameters:

firewallRuleName - name of the firewall rule to get

Returns:

Returns the SqlFirewall rule with in the SQL Server

list

public List list()

Returns all the firewall rules for the server.

Returns:

list of firewall rules for the server.

Applies to