AutomationRules interface

Interface representing a AutomationRules.

Methods

createOrUpdate(string, string, string, AutomationRulesCreateOrUpdateOptionalParams)

Creates or updates the automation rule.

delete(string, string, string, AutomationRulesDeleteOptionalParams)

Delete the automation rule.

get(string, string, string, AutomationRulesGetOptionalParams)

Gets the automation rule.

list(string, string, AutomationRulesListOptionalParams)

Gets all automation rules.

Method Details

createOrUpdate(string, string, string, AutomationRulesCreateOrUpdateOptionalParams)

Creates or updates the automation rule.

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

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

workspaceName

string

The name of the workspace.

automationRuleId

string

Automation rule ID

options
AutomationRulesCreateOrUpdateOptionalParams

The options parameters.

Returns

Promise<AutomationRule>

delete(string, string, string, AutomationRulesDeleteOptionalParams)

Delete the automation rule.

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

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

workspaceName

string

The name of the workspace.

automationRuleId

string

Automation rule ID

options
AutomationRulesDeleteOptionalParams

The options parameters.

Returns

get(string, string, string, AutomationRulesGetOptionalParams)

Gets the automation rule.

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

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

workspaceName

string

The name of the workspace.

automationRuleId

string

Automation rule ID

options
AutomationRulesGetOptionalParams

The options parameters.

Returns

Promise<AutomationRule>

list(string, string, AutomationRulesListOptionalParams)

Gets all automation rules.

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

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

workspaceName

string

The name of the workspace.

options
AutomationRulesListOptionalParams

The options parameters.

Returns