Zum Hauptinhalt springen

Action-Bedingungen

Beschränken Sie, wann eine Aktion ausgeführt wird, mithilfe von Bedingungen basierend auf Betriebssystem, Gerätetyp, benutzerdefinierten Feldern, Variablen und vorherigen Aktionsergebnissen.

Heute aktualisiert

Einführung

Mit Bedingungen können Sie steuern, ob eine einzelne Aktion während einer Automatisierungsausführung tatsächlich ausgeführt wird. Verwenden Sie sie, um eine Aktion auf bestimmten Gerätetypen zu überspringen, spezifische Betriebssystemversionen anzusprechen, einen benutzerdefinierten Feldwert zu überprüfen oder eine Verzweigung basierend auf dem zu erstellen, was eine vorherige Aktion getan hat.


Wie Action-Bedingungen funktionieren

Bedingungen werden pro Aktion konfiguriert, nicht pro Automatisierung. Jede Aktion in Ihrer Pipeline kann einen eigenen unabhängigen Bedingungssatz haben.

Wenn eine Automatisierungsausführung eine Aktion erreicht, wertet Level die Bedingungen dieser Aktion gegen das aktuelle Gerät aus. Wenn jede Bedingung erfüllt ist, wird die Aktion ausgeführt. Wenn eine Bedingung nicht erfüllt ist, wird die Aktion für dieses Gerät übersprungen.

Mehrere Bedingungen verwenden UND-Logik - jede Bedingung muss erfüllt sein, damit die Aktion ausgeführt wird. Es gibt keine ODER-Option innerhalb einer einzelnen Aktion. Wenn Sie ein Verhalten im ODER-Stil benötigen, duplizieren Sie die Aktion und wenden Sie unterschiedliche Bedingungen auf jede Kopie an.

HINWEIS: Action conditions are evaluated at runtime, against the specific device being processed. They're not evaluated at trigger time — a device can pass trigger conditions and still have individual actions skipped based on action conditions.


Bedingungen konfigurieren

Bedingungen werden im Aktionskonfigurationsbereich beim Hinzufügen oder Bearbeiten einer Aktion festgelegt.

HINWEIS: Actions are only editable in edit mode. From the pipeline view, click Bearbeiten in der oberen rechten Ecke, um in den Bearbeitungsmodus zu wechseln. Wenn Sie auf eine Aktion außerhalb des Bearbeitungsmodus klicken, wird ein schreibgeschützter Bereich mit Ausführungsverlauf geöffnet.

  1. Öffnen Sie den Aktionskonfigurationsbereich, indem Sie auf eine vorhandene Aktion klicken oder eine neue hinzufügen.

  2. Expand the Bedingungen Bereich.

  3. Click the Bedingung Dropdown-Menü und wählen Sie einen Bedingungstyp.

  4. Legen Sie die Zuordnung (falls zutreffend), den Operator und den Wert fest.

  5. To add another condition, click + Neue Bedingung hinzufügen.

  6. To remove a condition, click Entfernen daneben.

  7. Click Speichern anwenden.

Configuring Conditions


Bedingungsreferenz

HINWEIS: OS values are populated dynamically from the OS versions present in your device inventory. If your environment only has Windows devices, only Windows versions will appear. Empty dropdowns mean Level hasn't detected any devices with that attribute yet.


Plattform

Filtern Sie nach der Betriebssystemfamilie des Geräts.

Operator

Beschreibung

Gleich wie

Das Betriebssystem des Geräts entspricht einer der ausgewählten Plattformen

Nicht gleich wie

Das Betriebssystem des Geräts entspricht keiner der ausgewählten Plattformen

Values: Windows, macOS, Linux. Multiple values can be selected.


Tag

Filter by tags applied to the device.

Operator

Beschreibung

Gleich wie

Device has all of the selected tags

Nicht gleich wie

Device does not have any of the selected tags

Select one or more tags from your organization's tag list.


Group

Filter by the device group the device belongs to.

Operator

Beschreibung

Gleich wie

Device is a member of one of the selected groups

Nicht gleich wie

Device is not a member of any of the selected groups

Select one or more groups from your group hierarchy.


Status

Filter by whether the device is currently online or offline.

Operator

Beschreibung

Gleich wie

Device status matches the selected value

Nicht gleich wie

Device status does not match the selected value

Values: Online, Offline.


Last seen (in days)

Filter by how many days have passed since the device last checked in with Level.

Operator

Beschreibung

Größer als

Device was last seen more than N days ago

Größer als oder gleich

Device was last seen N or more days ago

Kleiner als

Device was last seen fewer than N days ago

Kleiner als oder gleich

Device was last seen N days ago or fewer

Enter a whole number of days as a free-text value.


Architecture

Filter by the device's CPU architecture.

Operator

Beschreibung

Gleich wie

Device architecture matches the selected value

Nicht gleich wie

Device architecture does not match the selected value

Values: amd64, arm64.


Hostname

Filter by the device's hostname.

Operator

Beschreibung

Gleich wie

Hostname exactly matches the entered value

Nicht gleich wie

Hostname does not match the entered value

Enthält

Hostname includes the entered string

Enthält nicht

Hostname does not include the entered string

Enter the hostname value manually. Matching is case-insensitive.

TIPP: Use Enthält to target naming conventions — for example, filtering to devices whose hostname includes SRV or a client prefix.


Variable

Filter based on a variable defined in this automation. The association dropdown lists every variable created for the current automation — variables from other automations don't appear here.

Operator

Beschreibung

Enthält

Variable value includes the entered string

Enthält nicht

Variable value does not include the entered string

Gleich wie

Variable value exactly matches the entered string

Nicht gleich wie

Variable value does not match the entered string

Enter the value to compare against as free text.


Custom field

Filter based on a custom field value on the device.

Select the custom field from the association dropdown. The list shows all custom fields configured in your organization.

Operator

Beschreibung

Enthält

Field value includes the entered string

Enthält nicht

Field value does not include the entered string

Gleich wie

Field value exactly matches the entered string

Nicht gleich wie

Field value does not match the entered string

Enter the value to compare against as free text.

TIPP: Custom field conditions are useful for branching automation logic by client or site — for example, running an action only on devices where a specific field is populated, or skipping an action where a field indicates a known incompatibility.


Type

Filter by device type.

Operator

Beschreibung

Gleich wie

Device type matches the selected value

Nicht gleich wie

Device type does not match the selected value

Values: Workstation, Server.


Betriebssystem

Filter by the device's specific OS version.

Operator

Beschreibung

Gleich wie

OS version matches the selected value

Nicht gleich wie

OS version does not match the selected value

Values are populated from the OS versions present in your device inventory — examples include Windows 11, Windows Server 2022, macOS Sonoma, Debian. Your list reflects what's actually enrolled.

HINWEIS: OS values are specific version names, not OS families. To filter broadly by operating system type (Windows, macOS, Linux), use a Plattform condition in the trigger instead — or use multiple OS conditions with a separate action copy per platform.


Action status

Filter based on the outcome of a previous action in the same automation run, on the same device. The association dropdown lists all actions that appear before this one in the pipeline.

Operator

Beschreibung

Gleich wie

Prior action result matches the selected status

Nicht gleich wie

Prior action result does not match the selected status

Value

Beschreibung

Success

The prior action completed without errors

Fehlgeschlagen

The prior action encountered an error

Skipped

The prior action was skipped (its own conditions weren't met)

TIPP: Action status conditions are the primary tool for building conditional logic in automation pipelines. For example: run a script, then use an Action status = Failed condition on the next action to send a notification or create an alert only if something went wrong.


FAQ

  • Do action conditions evaluate every time the automation runs, or just once? Every time. Conditions are evaluated fresh on each run, against each device being processed. A device that was skipped last run will be evaluated again on the next one.

  • Can I use OR logic between conditions on the same action? No. Multiple conditions on the same action always use AND logic — every condition must be satisfied. To get OR-style behavior, duplicate the action and apply different conditions to each copy.

  • What happens to subsequent actions if this action is skipped? The automation continues to the next action. Skipping an action doesn't halt the run — only a failed action (depending on your error handling settings) would do that.

  • Can I branch my automation based on whether a script succeeded or failed? Yes. Add an Action status condition to the actions that should run conditionally, and set the value to Success oder Fehlgeschlagen based on the prior Shell action's result.

  • Who can configure action conditions? Technicians with permission to edit automations in the relevant group. See Arbeitsbereich → Berechtigungen for access control configuration.

Hat dies deine Frage beantwortet?