azure-native.securityinsights.getAutomationRule
Explore with Pulumi AI
Gets the automation rule. Azure REST API version: 2023-02-01.
Other available API versions: 2019-01-01-preview, 2023-06-01-preview, 2023-07-01-preview, 2023-08-01-preview, 2023-09-01-preview, 2023-10-01-preview, 2023-11-01, 2023-12-01-preview, 2024-01-01-preview, 2024-03-01, 2024-04-01-preview, 2024-09-01, 2024-10-01-preview, 2025-01-01-preview.
Using getAutomationRule
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getAutomationRule(args: GetAutomationRuleArgs, opts?: InvokeOptions): Promise<GetAutomationRuleResult>
function getAutomationRuleOutput(args: GetAutomationRuleOutputArgs, opts?: InvokeOptions): Output<GetAutomationRuleResult>def get_automation_rule(automation_rule_id: Optional[str] = None,
                        resource_group_name: Optional[str] = None,
                        workspace_name: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetAutomationRuleResult
def get_automation_rule_output(automation_rule_id: Optional[pulumi.Input[str]] = None,
                        resource_group_name: Optional[pulumi.Input[str]] = None,
                        workspace_name: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetAutomationRuleResult]func LookupAutomationRule(ctx *Context, args *LookupAutomationRuleArgs, opts ...InvokeOption) (*LookupAutomationRuleResult, error)
func LookupAutomationRuleOutput(ctx *Context, args *LookupAutomationRuleOutputArgs, opts ...InvokeOption) LookupAutomationRuleResultOutput> Note: This function is named LookupAutomationRule in the Go SDK.
public static class GetAutomationRule 
{
    public static Task<GetAutomationRuleResult> InvokeAsync(GetAutomationRuleArgs args, InvokeOptions? opts = null)
    public static Output<GetAutomationRuleResult> Invoke(GetAutomationRuleInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAutomationRuleResult> getAutomationRule(GetAutomationRuleArgs args, InvokeOptions options)
public static Output<GetAutomationRuleResult> getAutomationRule(GetAutomationRuleArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:securityinsights:getAutomationRule
  arguments:
    # arguments dictionaryThe following arguments are supported:
- AutomationRule stringId 
- Automation rule ID
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- WorkspaceName string
- The name of the workspace.
- AutomationRule stringId 
- Automation rule ID
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- WorkspaceName string
- The name of the workspace.
- automationRule StringId 
- Automation rule ID
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- workspaceName String
- The name of the workspace.
- automationRule stringId 
- Automation rule ID
- resourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- workspaceName string
- The name of the workspace.
- automation_rule_ strid 
- Automation rule ID
- resource_group_ strname 
- The name of the resource group. The name is case insensitive.
- workspace_name str
- The name of the workspace.
- automationRule StringId 
- Automation rule ID
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- workspaceName String
- The name of the workspace.
getAutomationRule Result
The following output properties are available:
- Actions
List<Union<Pulumi.Azure Native. Security Insights. Outputs. Automation Rule Modify Properties Action Response, Pulumi. Azure Native. Security Insights. Outputs. Automation Rule Run Playbook Action Response>> 
- The actions to execute when the automation rule is triggered.
- CreatedBy Pulumi.Azure Native. Security Insights. Outputs. Client Info Response 
- Information on the client (user or application) that made some action
- CreatedTime stringUtc 
- The time the automation rule was created.
- DisplayName string
- The display name of the automation rule.
- Id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- LastModified Pulumi.By Azure Native. Security Insights. Outputs. Client Info Response 
- Information on the client (user or application) that made some action
- LastModified stringTime Utc 
- The last time the automation rule was updated.
- Name string
- The name of the resource
- Order int
- The order of execution of the automation rule.
- SystemData Pulumi.Azure Native. Security Insights. Outputs. System Data Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- TriggeringLogic Pulumi.Azure Native. Security Insights. Outputs. Automation Rule Triggering Logic Response 
- Describes automation rule triggering logic.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Etag string
- Etag of the azure resource
- Actions []interface{}
- The actions to execute when the automation rule is triggered.
- CreatedBy ClientInfo Response 
- Information on the client (user or application) that made some action
- CreatedTime stringUtc 
- The time the automation rule was created.
- DisplayName string
- The display name of the automation rule.
- Id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- LastModified ClientBy Info Response 
- Information on the client (user or application) that made some action
- LastModified stringTime Utc 
- The last time the automation rule was updated.
- Name string
- The name of the resource
- Order int
- The order of execution of the automation rule.
- SystemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- TriggeringLogic AutomationRule Triggering Logic Response 
- Describes automation rule triggering logic.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Etag string
- Etag of the azure resource
- actions
List<Either<AutomationRule Modify Properties Action Response,Automation Rule Run Playbook Action Response>> 
- The actions to execute when the automation rule is triggered.
- createdBy ClientInfo Response 
- Information on the client (user or application) that made some action
- createdTime StringUtc 
- The time the automation rule was created.
- displayName String
- The display name of the automation rule.
- id String
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- lastModified ClientBy Info Response 
- Information on the client (user or application) that made some action
- lastModified StringTime Utc 
- The last time the automation rule was updated.
- name String
- The name of the resource
- order Integer
- The order of execution of the automation rule.
- systemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- triggeringLogic AutomationRule Triggering Logic Response 
- Describes automation rule triggering logic.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- etag String
- Etag of the azure resource
- actions
(AutomationRule Modify Properties Action Response | Automation Rule Run Playbook Action Response)[] 
- The actions to execute when the automation rule is triggered.
- createdBy ClientInfo Response 
- Information on the client (user or application) that made some action
- createdTime stringUtc 
- The time the automation rule was created.
- displayName string
- The display name of the automation rule.
- id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- lastModified ClientBy Info Response 
- Information on the client (user or application) that made some action
- lastModified stringTime Utc 
- The last time the automation rule was updated.
- name string
- The name of the resource
- order number
- The order of execution of the automation rule.
- systemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- triggeringLogic AutomationRule Triggering Logic Response 
- Describes automation rule triggering logic.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- etag string
- Etag of the azure resource
- actions Sequence[Any]
- The actions to execute when the automation rule is triggered.
- created_by ClientInfo Response 
- Information on the client (user or application) that made some action
- created_time_ strutc 
- The time the automation rule was created.
- display_name str
- The display name of the automation rule.
- id str
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- last_modified_ Clientby Info Response 
- Information on the client (user or application) that made some action
- last_modified_ strtime_ utc 
- The last time the automation rule was updated.
- name str
- The name of the resource
- order int
- The order of execution of the automation rule.
- system_data SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- triggering_logic AutomationRule Triggering Logic Response 
- Describes automation rule triggering logic.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- etag str
- Etag of the azure resource
- actions List<Property Map | Property Map>
- The actions to execute when the automation rule is triggered.
- createdBy Property Map
- Information on the client (user or application) that made some action
- createdTime StringUtc 
- The time the automation rule was created.
- displayName String
- The display name of the automation rule.
- id String
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- lastModified Property MapBy 
- Information on the client (user or application) that made some action
- lastModified StringTime Utc 
- The last time the automation rule was updated.
- name String
- The name of the resource
- order Number
- The order of execution of the automation rule.
- systemData Property Map
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- triggeringLogic Property Map
- Describes automation rule triggering logic.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- etag String
- Etag of the azure resource
Supporting Types
AutomationRuleModifyPropertiesActionResponse     
AutomationRulePropertyArrayChangedValuesConditionResponse       
- ArrayType string
- ChangeType string
- ArrayType string
- ChangeType string
- arrayType String
- changeType String
- arrayType string
- changeType string
- array_type str
- change_type str
- arrayType String
- changeType String
AutomationRulePropertyValuesChangedConditionResponse      
- ChangeType string
- Operator string
- PropertyName string
- PropertyValues List<string>
- ChangeType string
- Operator string
- PropertyName string
- PropertyValues []string
- changeType String
- operator String
- propertyName String
- propertyValues List<String>
- changeType string
- operator string
- propertyName string
- propertyValues string[]
- change_type str
- operator str
- property_name str
- property_values Sequence[str]
- changeType String
- operator String
- propertyName String
- propertyValues List<String>
AutomationRulePropertyValuesConditionResponse     
- Operator string
- PropertyName string
- The property to evaluate in an automation rule property condition.
- PropertyValues List<string>
- Operator string
- PropertyName string
- The property to evaluate in an automation rule property condition.
- PropertyValues []string
- operator String
- propertyName String
- The property to evaluate in an automation rule property condition.
- propertyValues List<String>
- operator string
- propertyName string
- The property to evaluate in an automation rule property condition.
- propertyValues string[]
- operator str
- property_name str
- The property to evaluate in an automation rule property condition.
- property_values Sequence[str]
- operator String
- propertyName String
- The property to evaluate in an automation rule property condition.
- propertyValues List<String>
AutomationRuleRunPlaybookActionResponse     
AutomationRuleTriggeringLogicResponse    
- IsEnabled bool
- Determines whether the automation rule is enabled or disabled.
- TriggersOn string
- TriggersWhen string
- Conditions List<object>
- The conditions to evaluate to determine if the automation rule should be triggered on a given object.
- ExpirationTime stringUtc 
- Determines when the automation rule should automatically expire and be disabled.
- IsEnabled bool
- Determines whether the automation rule is enabled or disabled.
- TriggersOn string
- TriggersWhen string
- Conditions []interface{}
- The conditions to evaluate to determine if the automation rule should be triggered on a given object.
- ExpirationTime stringUtc 
- Determines when the automation rule should automatically expire and be disabled.
- isEnabled Boolean
- Determines whether the automation rule is enabled or disabled.
- triggersOn String
- triggersWhen String
- conditions List<Object>
- The conditions to evaluate to determine if the automation rule should be triggered on a given object.
- expirationTime StringUtc 
- Determines when the automation rule should automatically expire and be disabled.
- isEnabled boolean
- Determines whether the automation rule is enabled or disabled.
- triggersOn string
- triggersWhen string
- conditions
(PropertyArray Changed Condition Properties Response | Property Changed Condition Properties Response | Property Condition Properties Response)[] 
- The conditions to evaluate to determine if the automation rule should be triggered on a given object.
- expirationTime stringUtc 
- Determines when the automation rule should automatically expire and be disabled.
- is_enabled bool
- Determines whether the automation rule is enabled or disabled.
- triggers_on str
- triggers_when str
- conditions
Sequence[Union[PropertyArray Changed Condition Properties Response, Property Changed Condition Properties Response, Property Condition Properties Response]] 
- The conditions to evaluate to determine if the automation rule should be triggered on a given object.
- expiration_time_ strutc 
- Determines when the automation rule should automatically expire and be disabled.
- isEnabled Boolean
- Determines whether the automation rule is enabled or disabled.
- triggersOn String
- triggersWhen String
- conditions List<Property Map | Property Map | Property Map>
- The conditions to evaluate to determine if the automation rule should be triggered on a given object.
- expirationTime StringUtc 
- Determines when the automation rule should automatically expire and be disabled.
ClientInfoResponse  
- Email string
- The email of the client.
- Name string
- The name of the client.
- ObjectId string
- The object id of the client.
- UserPrincipal stringName 
- The user principal name of the client.
- Email string
- The email of the client.
- Name string
- The name of the client.
- ObjectId string
- The object id of the client.
- UserPrincipal stringName 
- The user principal name of the client.
- email String
- The email of the client.
- name String
- The name of the client.
- objectId String
- The object id of the client.
- userPrincipal StringName 
- The user principal name of the client.
- email string
- The email of the client.
- name string
- The name of the client.
- objectId string
- The object id of the client.
- userPrincipal stringName 
- The user principal name of the client.
- email str
- The email of the client.
- name str
- The name of the client.
- object_id str
- The object id of the client.
- user_principal_ strname 
- The user principal name of the client.
- email String
- The email of the client.
- name String
- The name of the client.
- objectId String
- The object id of the client.
- userPrincipal StringName 
- The user principal name of the client.
IncidentLabelResponse  
- label_name str
- The name of the label
- label_type str
- The type of the label
IncidentOwnerInfoResponse   
- AssignedTo string
- The name of the user the incident is assigned to.
- Email string
- The email of the user the incident is assigned to.
- ObjectId string
- The object id of the user the incident is assigned to.
- OwnerType string
- The type of the owner the incident is assigned to.
- UserPrincipal stringName 
- The user principal name of the user the incident is assigned to.
- AssignedTo string
- The name of the user the incident is assigned to.
- Email string
- The email of the user the incident is assigned to.
- ObjectId string
- The object id of the user the incident is assigned to.
- OwnerType string
- The type of the owner the incident is assigned to.
- UserPrincipal stringName 
- The user principal name of the user the incident is assigned to.
- assignedTo String
- The name of the user the incident is assigned to.
- email String
- The email of the user the incident is assigned to.
- objectId String
- The object id of the user the incident is assigned to.
- ownerType String
- The type of the owner the incident is assigned to.
- userPrincipal StringName 
- The user principal name of the user the incident is assigned to.
- assignedTo string
- The name of the user the incident is assigned to.
- email string
- The email of the user the incident is assigned to.
- objectId string
- The object id of the user the incident is assigned to.
- ownerType string
- The type of the owner the incident is assigned to.
- userPrincipal stringName 
- The user principal name of the user the incident is assigned to.
- assigned_to str
- The name of the user the incident is assigned to.
- email str
- The email of the user the incident is assigned to.
- object_id str
- The object id of the user the incident is assigned to.
- owner_type str
- The type of the owner the incident is assigned to.
- user_principal_ strname 
- The user principal name of the user the incident is assigned to.
- assignedTo String
- The name of the user the incident is assigned to.
- email String
- The email of the user the incident is assigned to.
- objectId String
- The object id of the user the incident is assigned to.
- ownerType String
- The type of the owner the incident is assigned to.
- userPrincipal StringName 
- The user principal name of the user the incident is assigned to.
IncidentPropertiesActionResponse   
- Classification string
- The reason the incident was closed
- ClassificationComment string
- Describes the reason the incident was closed.
- ClassificationReason string
- The classification reason the incident was closed with
- Labels
List<Pulumi.Azure Native. Security Insights. Inputs. Incident Label Response> 
- List of labels to add to the incident.
- Owner
Pulumi.Azure Native. Security Insights. Inputs. Incident Owner Info Response 
- Information on the user an incident is assigned to
- Severity string
- The severity of the incident
- Status string
- The status of the incident
- Classification string
- The reason the incident was closed
- ClassificationComment string
- Describes the reason the incident was closed.
- ClassificationReason string
- The classification reason the incident was closed with
- Labels
[]IncidentLabel Response 
- List of labels to add to the incident.
- Owner
IncidentOwner Info Response 
- Information on the user an incident is assigned to
- Severity string
- The severity of the incident
- Status string
- The status of the incident
- classification String
- The reason the incident was closed
- classificationComment String
- Describes the reason the incident was closed.
- classificationReason String
- The classification reason the incident was closed with
- labels
List<IncidentLabel Response> 
- List of labels to add to the incident.
- owner
IncidentOwner Info Response 
- Information on the user an incident is assigned to
- severity String
- The severity of the incident
- status String
- The status of the incident
- classification string
- The reason the incident was closed
- classificationComment string
- Describes the reason the incident was closed.
- classificationReason string
- The classification reason the incident was closed with
- labels
IncidentLabel Response[] 
- List of labels to add to the incident.
- owner
IncidentOwner Info Response 
- Information on the user an incident is assigned to
- severity string
- The severity of the incident
- status string
- The status of the incident
- classification str
- The reason the incident was closed
- classification_comment str
- Describes the reason the incident was closed.
- classification_reason str
- The classification reason the incident was closed with
- labels
Sequence[IncidentLabel Response] 
- List of labels to add to the incident.
- owner
IncidentOwner Info Response 
- Information on the user an incident is assigned to
- severity str
- The severity of the incident
- status str
- The status of the incident
- classification String
- The reason the incident was closed
- classificationComment String
- Describes the reason the incident was closed.
- classificationReason String
- The classification reason the incident was closed with
- labels List<Property Map>
- List of labels to add to the incident.
- owner Property Map
- Information on the user an incident is assigned to
- severity String
- The severity of the incident
- status String
- The status of the incident
PlaybookActionPropertiesResponse   
- LogicApp stringResource Id 
- The resource id of the playbook resource.
- TenantId string
- The tenant id of the playbook resource.
- LogicApp stringResource Id 
- The resource id of the playbook resource.
- TenantId string
- The tenant id of the playbook resource.
- logicApp StringResource Id 
- The resource id of the playbook resource.
- tenantId String
- The tenant id of the playbook resource.
- logicApp stringResource Id 
- The resource id of the playbook resource.
- tenantId string
- The tenant id of the playbook resource.
- logic_app_ strresource_ id 
- The resource id of the playbook resource.
- tenant_id str
- The tenant id of the playbook resource.
- logicApp StringResource Id 
- The resource id of the playbook resource.
- tenantId String
- The tenant id of the playbook resource.
PropertyArrayChangedConditionPropertiesResponse     
PropertyChangedConditionPropertiesResponse    
PropertyConditionPropertiesResponse   
SystemDataResponse  
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
- createdAt string
- The timestamp of resource creation (UTC).
- createdBy string
- The identity that created the resource.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- The type of identity that last modified the resource.
- created_at str
- The timestamp of resource creation (UTC).
- created_by str
- The identity that created the resource.
- created_by_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The timestamp of resource last modification (UTC)
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0