你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
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 firewall rule. |
begin |
Deletes a firewall rule. |
get(string, string, string, Firewall |
Gets information about a server firewall rule. |
list |
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.
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.
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.
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.
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.
The options parameters.