Share via


AutomationRule Class

Definition

Represents an automation rule.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.SecurityInsights.Models.Api20210901Preview.AutomationRuleTypeConverter))]
public class AutomationRule : Microsoft.Azure.PowerShell.Cmdlets.SecurityInsights.Models.Api20210901Preview.IAutomationRule, Microsoft.Azure.PowerShell.Cmdlets.SecurityInsights.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.SecurityInsights.Models.Api20210901Preview.AutomationRuleTypeConverter))>]
type AutomationRule = class
    interface IAutomationRule
    interface IJsonSerializable
    interface IResourceWithEtag
    interface IResource
    interface IValidates
Public Class AutomationRule
Implements IAutomationRule, IValidates
Inheritance
AutomationRule
Attributes
Implements

Constructors

AutomationRule()

Creates an new AutomationRule instance.

Properties

Action

The actions to execute when the automation rule is triggered

CreatedByEmail

The email of the client.

CreatedByName

The name of the client.

CreatedByObjectId

The object id of the client.

CreatedByUserPrincipalName

The user principal name of the client.

CreatedTimeUtc

The time the automation rule was created

DisplayName

The display name of the automation rule

Etag

Etag of the azure resource

Id

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

LastModifiedByEmail

The email of the client.

LastModifiedByName

The name of the client.

LastModifiedByObjectId

The object id of the client.

LastModifiedByUserPrincipalName

The user principal name of the client.

LastModifiedTimeUtc

The last time the automation rule was updated

Name

The name of the resource

Order

The order of execution of the automation rule

SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

SystemDataCreatedAt

The timestamp of resource creation (UTC).

SystemDataCreatedBy

The identity that created the resource.

SystemDataCreatedByType

The type of identity that created the resource.

SystemDataLastModifiedAt

The timestamp of resource last modification (UTC)

SystemDataLastModifiedBy

The identity that last modified the resource.

SystemDataLastModifiedByType

The type of identity that last modified the resource.

TriggeringLogicCondition

The conditions to evaluate to determine if the automation rule should be triggered on a given object

TriggeringLogicExpirationTimeUtc

Determines when the automation rule should automatically expire and be disabled.

TriggeringLogicIsEnabled

Determines whether the automation rule is enabled or disabled.

TriggeringLogicTriggersOn

The type of object the automation rule triggers on

TriggeringLogicTriggersWhen

The type of event the automation rule triggers on

Type

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of AutomationRule.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of AutomationRule.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.SecurityInsights.Models.Api20210901Preview.IAutomationRule.

FromJsonString(String)

Creates a new instance of AutomationRule, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of AutomationRule into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Validate(IEventListener)

Validates that this object meets the validation criteria.

Applies to