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

AutomationRules interface

表示 AutomationRules 的接口。

方法

createOrUpdate(string, string, string, AutomationRulesCreateOrUpdateOptionalParams)

创建或更新自动化规则。

delete(string, string, string, AutomationRulesDeleteOptionalParams)

删除自动化规则。

get(string, string, string, AutomationRulesGetOptionalParams)

获取自动化规则。

list(string, string, AutomationRulesListOptionalParams)

获取所有自动化规则。

方法详细信息

createOrUpdate(string, string, string, AutomationRulesCreateOrUpdateOptionalParams)

创建或更新自动化规则。

function createOrUpdate(resourceGroupName: string, workspaceName: string, automationRuleId: string, options?: AutomationRulesCreateOrUpdateOptionalParams): Promise<AutomationRule>

参数

resourceGroupName

string

资源组的名称。 此名称不区分大小写。

workspaceName

string

工作区的名称。

automationRuleId

string

自动化规则 ID

返回

Promise<AutomationRule>

delete(string, string, string, AutomationRulesDeleteOptionalParams)

删除自动化规则。

function delete(resourceGroupName: string, workspaceName: string, automationRuleId: string, options?: AutomationRulesDeleteOptionalParams): Promise<AutomationRulesDeleteResponse>

参数

resourceGroupName

string

资源组的名称。 此名称不区分大小写。

workspaceName

string

工作区的名称。

automationRuleId

string

自动化规则 ID

options
AutomationRulesDeleteOptionalParams

选项参数。

返回

get(string, string, string, AutomationRulesGetOptionalParams)

获取自动化规则。

function get(resourceGroupName: string, workspaceName: string, automationRuleId: string, options?: AutomationRulesGetOptionalParams): Promise<AutomationRule>

参数

resourceGroupName

string

资源组的名称。 此名称不区分大小写。

workspaceName

string

工作区的名称。

automationRuleId

string

自动化规则 ID

options
AutomationRulesGetOptionalParams

选项参数。

返回

Promise<AutomationRule>

list(string, string, AutomationRulesListOptionalParams)

获取所有自动化规则。

function list(resourceGroupName: string, workspaceName: string, options?: AutomationRulesListOptionalParams): PagedAsyncIterableIterator<AutomationRule, AutomationRule[], PageSettings>

参数

resourceGroupName

string

资源组的名称。 此名称不区分大小写。

workspaceName

string

工作区的名称。

options
AutomationRulesListOptionalParams

选项参数。

返回