AutomationRules interface
表示 AutomationRules 的介面。
方法
方法詳細資料
createOrUpdate(string, string, string, AutomationRulesCreateOrUpdateOptionalParams)
建立或更新自動化規則。
function createOrUpdate(resourceGroupName: string, workspaceName: string, automationRuleId: string, options?: AutomationRulesCreateOrUpdateOptionalParams): Promise<AutomationRule>
參數
- resourceGroupName
-
string
資源群組的名稱。 名稱不區分大小寫。
- workspaceName
-
string
工作區的名稱。
- automationRuleId
-
string
自動化規則標識碼
選項參數。
傳回
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
自動化規則標識碼
選項參數。
傳回
Promise<AutomationRulesDeleteResponse>
get(string, string, string, AutomationRulesGetOptionalParams)
取得自動化規則。
function get(resourceGroupName: string, workspaceName: string, automationRuleId: string, options?: AutomationRulesGetOptionalParams): Promise<AutomationRule>
參數
- resourceGroupName
-
string
資源群組的名稱。 名稱不區分大小寫。
- workspaceName
-
string
工作區的名稱。
- automationRuleId
-
string
自動化規則標識碼
- options
- AutomationRulesGetOptionalParams
選項參數。
傳回
Promise<AutomationRule>
list(string, string, AutomationRulesListOptionalParams)
取得所有自動化規則。
function list(resourceGroupName: string, workspaceName: string, options?: AutomationRulesListOptionalParams): PagedAsyncIterableIterator<AutomationRule, AutomationRule[], PageSettings>
參數
- resourceGroupName
-
string
資源群組的名稱。 名稱不區分大小寫。
- workspaceName
-
string
工作區的名稱。
選項參數。