你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

PreRules interface

表示 PreRules 的接口。

方法

beginCreateOrUpdate(string, string, PreRulesResource, PreRulesCreateOrUpdateOptionalParams)

创建 PreRulesResource

beginCreateOrUpdateAndWait(string, string, PreRulesResource, PreRulesCreateOrUpdateOptionalParams)

创建 PreRulesResource

beginDelete(string, string, PreRulesDeleteOptionalParams)

删除 PreRulesResource

beginDeleteAndWait(string, string, PreRulesDeleteOptionalParams)

删除 PreRulesResource

get(string, string, PreRulesGetOptionalParams)

获取 PreRulesResource

getCounters(string, string, PreRulesGetCountersOptionalParams)

获取计数器

list(string, PreRulesListOptionalParams)

按租户列出 PreRulesResource 资源

refreshCounters(string, string, PreRulesRefreshCountersOptionalParams)

刷新计数器

resetCounters(string, string, PreRulesResetCountersOptionalParams)

重置计数器

方法详细信息

beginCreateOrUpdate(string, string, PreRulesResource, PreRulesCreateOrUpdateOptionalParams)

创建 PreRulesResource

function beginCreateOrUpdate(globalRulestackName: string, priority: string, resource: PreRulesResource, options?: PreRulesCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<PreRulesResource>, PreRulesResource>>

参数

globalRulestackName

string

GlobalRulestack 资源名称

priority

string

预规则优先级

resource
PreRulesResource

资源创建参数。

options
PreRulesCreateOrUpdateOptionalParams

选项参数。

返回

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

beginCreateOrUpdateAndWait(string, string, PreRulesResource, PreRulesCreateOrUpdateOptionalParams)

创建 PreRulesResource

function beginCreateOrUpdateAndWait(globalRulestackName: string, priority: string, resource: PreRulesResource, options?: PreRulesCreateOrUpdateOptionalParams): Promise<PreRulesResource>

参数

globalRulestackName

string

GlobalRulestack 资源名称

priority

string

预规则优先级

resource
PreRulesResource

资源创建参数。

options
PreRulesCreateOrUpdateOptionalParams

选项参数。

返回

Promise<PreRulesResource>

beginDelete(string, string, PreRulesDeleteOptionalParams)

删除 PreRulesResource

function beginDelete(globalRulestackName: string, priority: string, options?: PreRulesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>

参数

globalRulestackName

string

GlobalRulestack 资源名称

priority

string

预规则优先级

options
PreRulesDeleteOptionalParams

选项参数。

返回

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

beginDeleteAndWait(string, string, PreRulesDeleteOptionalParams)

删除 PreRulesResource

function beginDeleteAndWait(globalRulestackName: string, priority: string, options?: PreRulesDeleteOptionalParams): Promise<void>

参数

globalRulestackName

string

GlobalRulestack 资源名称

priority

string

预规则优先级

options
PreRulesDeleteOptionalParams

选项参数。

返回

Promise<void>

get(string, string, PreRulesGetOptionalParams)

获取 PreRulesResource

function get(globalRulestackName: string, priority: string, options?: PreRulesGetOptionalParams): Promise<PreRulesResource>

参数

globalRulestackName

string

GlobalRulestack 资源名称

priority

string

预规则优先级

options
PreRulesGetOptionalParams

选项参数。

返回

Promise<PreRulesResource>

getCounters(string, string, PreRulesGetCountersOptionalParams)

获取计数器

function getCounters(globalRulestackName: string, priority: string, options?: PreRulesGetCountersOptionalParams): Promise<RuleCounter>

参数

globalRulestackName

string

GlobalRulestack 资源名称

priority

string

预规则优先级

options
PreRulesGetCountersOptionalParams

选项参数。

返回

Promise<RuleCounter>

list(string, PreRulesListOptionalParams)

按租户列出 PreRulesResource 资源

function list(globalRulestackName: string, options?: PreRulesListOptionalParams): PagedAsyncIterableIterator<PreRulesResource, PreRulesResource[], PageSettings>

参数

globalRulestackName

string

GlobalRulestack 资源名称

options
PreRulesListOptionalParams

选项参数。

返回

refreshCounters(string, string, PreRulesRefreshCountersOptionalParams)

刷新计数器

function refreshCounters(globalRulestackName: string, priority: string, options?: PreRulesRefreshCountersOptionalParams): Promise<void>

参数

globalRulestackName

string

GlobalRulestack 资源名称

priority

string

预规则优先级

options
PreRulesRefreshCountersOptionalParams

选项参数。

返回

Promise<void>

resetCounters(string, string, PreRulesResetCountersOptionalParams)

重置计数器

function resetCounters(globalRulestackName: string, priority: string, options?: PreRulesResetCountersOptionalParams): Promise<RuleCounterReset>

参数

globalRulestackName

string

GlobalRulestack 资源名称

priority

string

预规则优先级

options
PreRulesResetCountersOptionalParams

选项参数。

返回

Promise<RuleCounterReset>