SecurityRules interface
Interface representing a SecurityRules.
Methods
begin |
Creates or updates a security rule in the specified network security group. |
begin |
Creates or updates a security rule in the specified network security group. |
begin |
Deletes the specified network security rule. |
begin |
Deletes the specified network security rule. |
get(string, string, string, Security |
Get the specified network security rule. |
list(string, string, Security |
Gets all security rules in a network security group. |
Method Details
beginCreateOrUpdate(string, string, string, SecurityRule, SecurityRulesCreateOrUpdateOptionalParams)
Creates or updates a security rule in the specified network security group.
function beginCreateOrUpdate(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, securityRuleParameters: SecurityRule, options?: SecurityRulesCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<SecurityRule>, SecurityRule>>
Parameters
- resourceGroupName
-
string
The name of the resource group.
- networkSecurityGroupName
-
string
The name of the network security group.
- securityRuleName
-
string
The name of the security rule.
- securityRuleParameters
- SecurityRule
Parameters supplied to the create or update network security rule operation.
The options parameters.
Returns
Promise<@azure/core-lro.SimplePollerLike<OperationState<SecurityRule>, SecurityRule>>
beginCreateOrUpdateAndWait(string, string, string, SecurityRule, SecurityRulesCreateOrUpdateOptionalParams)
Creates or updates a security rule in the specified network security group.
function beginCreateOrUpdateAndWait(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, securityRuleParameters: SecurityRule, options?: SecurityRulesCreateOrUpdateOptionalParams): Promise<SecurityRule>
Parameters
- resourceGroupName
-
string
The name of the resource group.
- networkSecurityGroupName
-
string
The name of the network security group.
- securityRuleName
-
string
The name of the security rule.
- securityRuleParameters
- SecurityRule
Parameters supplied to the create or update network security rule operation.
The options parameters.
Returns
Promise<SecurityRule>
beginDelete(string, string, string, SecurityRulesDeleteOptionalParams)
Deletes the specified network security rule.
function beginDelete(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, options?: SecurityRulesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>
Parameters
- resourceGroupName
-
string
The name of the resource group.
- networkSecurityGroupName
-
string
The name of the network security group.
- securityRuleName
-
string
The name of the security rule.
The options parameters.
Returns
Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>
beginDeleteAndWait(string, string, string, SecurityRulesDeleteOptionalParams)
Deletes the specified network security rule.
function beginDeleteAndWait(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, options?: SecurityRulesDeleteOptionalParams): Promise<void>
Parameters
- resourceGroupName
-
string
The name of the resource group.
- networkSecurityGroupName
-
string
The name of the network security group.
- securityRuleName
-
string
The name of the security rule.
The options parameters.
Returns
Promise<void>
get(string, string, string, SecurityRulesGetOptionalParams)
Get the specified network security rule.
function get(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, options?: SecurityRulesGetOptionalParams): Promise<SecurityRule>
Parameters
- resourceGroupName
-
string
The name of the resource group.
- networkSecurityGroupName
-
string
The name of the network security group.
- securityRuleName
-
string
The name of the security rule.
- options
- SecurityRulesGetOptionalParams
The options parameters.
Returns
Promise<SecurityRule>
list(string, string, SecurityRulesListOptionalParams)
Gets all security rules in a network security group.
function list(resourceGroupName: string, networkSecurityGroupName: string, options?: SecurityRulesListOptionalParams): PagedAsyncIterableIterator<SecurityRule, SecurityRule[], PageSettings>
Parameters
- resourceGroupName
-
string
The name of the resource group.
- networkSecurityGroupName
-
string
The name of the network security group.
- options
- SecurityRulesListOptionalParams
The options parameters.