FirewallRules interface
Interface representing a FirewallRules.
Methods
begin |
Creates a new firewall rule or updates an existing firewall rule. |
begin |
Creates a new firewall rule or updates an existing firewall rule. |
begin |
Deletes a PostgreSQL server firewall rule. |
begin |
Deletes a PostgreSQL server firewall rule. |
get(string, string, string, Firewall |
List all the firewall rules in a given server. |
list |
List all the firewall rules in a given PostgreSQL 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<SimplePollerLike<OperationState<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.
The options parameters.
Returns
Promise<@azure/core-lro.SimplePollerLike<OperationState<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.
The options parameters.
Returns
Promise<FirewallRule>
beginDelete(string, string, string, FirewallRulesDeleteOptionalParams)
Deletes a PostgreSQL server firewall rule.
function beginDelete(resourceGroupName: string, serverName: string, firewallRuleName: string, options?: FirewallRulesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<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.
The options parameters.
Returns
Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>
beginDeleteAndWait(string, string, string, FirewallRulesDeleteOptionalParams)
Deletes a PostgreSQL server 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.
The options parameters.
Returns
Promise<void>
get(string, string, string, FirewallRulesGetOptionalParams)
List all the firewall rules in a given server.
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 PostgreSQL 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.
The options parameters.