SecurityRules interface

Interface representing a SecurityRules.

Methods

beginCreateOrUpdate(string, string, string, SecurityRule, SecurityRulesCreateOrUpdateOptionalParams)

Creates or updates a security rule in the specified network security group.

beginCreateOrUpdateAndWait(string, string, string, SecurityRule, SecurityRulesCreateOrUpdateOptionalParams)

Creates or updates a security rule in the specified network security group.

beginDelete(string, string, string, SecurityRulesDeleteOptionalParams)

Deletes the specified network security rule.

beginDeleteAndWait(string, string, string, SecurityRulesDeleteOptionalParams)

Deletes the specified network security rule.

get(string, string, string, SecurityRulesGetOptionalParams)

Get the specified network security rule.

list(string, string, SecurityRulesListOptionalParams)

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<PollerLike<PollOperationState<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.

options
SecurityRulesCreateOrUpdateOptionalParams

The options parameters.

Returns

Promise<PollerLike<@azure/core-lro.PollOperationState<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.

options
SecurityRulesCreateOrUpdateOptionalParams

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<PollerLike<PollOperationState<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.

options
SecurityRulesDeleteOptionalParams

The options parameters.

Returns

Promise<PollerLike<@azure/core-lro.PollOperationState<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.

options
SecurityRulesDeleteOptionalParams

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.

Returns