共用方式為


AdminRules interface

Interface representing a AdminRules.

Methods

beginDelete(string, string, string, string, string, AdminRulesDeleteOptionalParams)

Deletes an admin rule.

beginDeleteAndWait(string, string, string, string, string, AdminRulesDeleteOptionalParams)

Deletes an admin rule.

createOrUpdate(string, string, string, string, string, BaseAdminRuleUnion, AdminRulesCreateOrUpdateOptionalParams)

Creates or updates an admin rule.

get(string, string, string, string, string, AdminRulesGetOptionalParams)

Gets a network manager security configuration admin rule.

list(string, string, string, string, AdminRulesListOptionalParams)

List all network manager security configuration admin rules.

Method Details

beginDelete(string, string, string, string, string, AdminRulesDeleteOptionalParams)

Deletes an admin rule.

function beginDelete(resourceGroupName: string, networkManagerName: string, configurationName: string, ruleCollectionName: string, ruleName: string, options?: AdminRulesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>

Parameters

resourceGroupName

string

The name of the resource group.

networkManagerName

string

The name of the network manager.

configurationName

string

The name of the network manager Security Configuration.

ruleCollectionName

string

The name of the network manager security Configuration rule collection.

ruleName

string

The name of the rule.

options
AdminRulesDeleteOptionalParams

The options parameters.

Returns

Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>

beginDeleteAndWait(string, string, string, string, string, AdminRulesDeleteOptionalParams)

Deletes an admin rule.

function beginDeleteAndWait(resourceGroupName: string, networkManagerName: string, configurationName: string, ruleCollectionName: string, ruleName: string, options?: AdminRulesDeleteOptionalParams): Promise<void>

Parameters

resourceGroupName

string

The name of the resource group.

networkManagerName

string

The name of the network manager.

configurationName

string

The name of the network manager Security Configuration.

ruleCollectionName

string

The name of the network manager security Configuration rule collection.

ruleName

string

The name of the rule.

options
AdminRulesDeleteOptionalParams

The options parameters.

Returns

Promise<void>

createOrUpdate(string, string, string, string, string, BaseAdminRuleUnion, AdminRulesCreateOrUpdateOptionalParams)

Creates or updates an admin rule.

function createOrUpdate(resourceGroupName: string, networkManagerName: string, configurationName: string, ruleCollectionName: string, ruleName: string, adminRule: BaseAdminRuleUnion, options?: AdminRulesCreateOrUpdateOptionalParams): Promise<BaseAdminRuleUnion>

Parameters

resourceGroupName

string

The name of the resource group.

networkManagerName

string

The name of the network manager.

configurationName

string

The name of the network manager Security Configuration.

ruleCollectionName

string

The name of the network manager security Configuration rule collection.

ruleName

string

The name of the rule.

adminRule
BaseAdminRuleUnion

The admin rule to create or update

options
AdminRulesCreateOrUpdateOptionalParams

The options parameters.

Returns

get(string, string, string, string, string, AdminRulesGetOptionalParams)

Gets a network manager security configuration admin rule.

function get(resourceGroupName: string, networkManagerName: string, configurationName: string, ruleCollectionName: string, ruleName: string, options?: AdminRulesGetOptionalParams): Promise<BaseAdminRuleUnion>

Parameters

resourceGroupName

string

The name of the resource group.

networkManagerName

string

The name of the network manager.

configurationName

string

The name of the network manager Security Configuration.

ruleCollectionName

string

The name of the network manager security Configuration rule collection.

ruleName

string

The name of the rule.

options
AdminRulesGetOptionalParams

The options parameters.

Returns

list(string, string, string, string, AdminRulesListOptionalParams)

List all network manager security configuration admin rules.

function list(resourceGroupName: string, networkManagerName: string, configurationName: string, ruleCollectionName: string, options?: AdminRulesListOptionalParams): PagedAsyncIterableIterator<BaseAdminRuleUnion, BaseAdminRuleUnion[], PageSettings>

Parameters

resourceGroupName

string

The name of the resource group.

networkManagerName

string

The name of the network manager.

configurationName

string

The name of the network manager Security Configuration.

ruleCollectionName

string

The name of the network manager security Configuration rule collection.

options
AdminRulesListOptionalParams

The options parameters.

Returns