你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
PreRules interface
表示 PreRules 的接口。
方法
begin |
创建 PreRulesResource |
begin |
创建 PreRulesResource |
begin |
删除 PreRulesResource |
begin |
删除 PreRulesResource |
get(string, string, Pre |
获取 PreRulesResource |
get |
获取计数器 |
list(string, Pre |
按租户列出 PreRulesResource 资源 |
refresh |
刷新计数器 |
reset |
重置计数器 |
方法详细信息
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
资源创建参数。
选项参数。
返回
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
资源创建参数。
选项参数。
返回
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
预规则优先级
选项参数。
返回
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
预规则优先级
选项参数。
返回
Promise<void>
resetCounters(string, string, PreRulesResetCountersOptionalParams)
重置计数器
function resetCounters(globalRulestackName: string, priority: string, options?: PreRulesResetCountersOptionalParams): Promise<RuleCounterReset>
参数
- globalRulestackName
-
string
GlobalRulestack 资源名称
- priority
-
string
预规则优先级
选项参数。
返回
Promise<RuleCounterReset>