F5 BIG-IP APM Session Trigger
Certified
Enterprise Edition
React to new BIG-IP APM sessions
F5 BIG-IP APM Session Trigger
React to new BIG-IP APM sessions
Polls active sessions via GET /mgmt/tm/apm/access-info at the given interval and fires one
execution per poll carrying every session not delivered yet. Session ids already delivered are kept
in the namespace KV store and pruned to the sessions still active, so a session never fires twice.
On the first poll, every session already active when the trigger is enabled is delivered together.
The output variables trigger.sessions (list of sessionId, username and clientIp) and
trigger.count are available in downstream tasks.
type: io.kestra.plugin.ee.f5.session.TriggerExamples
Log every new APM session
id: audit_new_sessions
namespace: company.team
triggers:
- id: on_new_session
type: io.kestra.plugin.ee.f5.session.Trigger
host: "{{ secret('F5_HOST') }}"
username: "{{ secret('F5_USERNAME') }}"
password: "{{ secret('F5_PASSWORD') }}"
interval: PT1M
tasks:
- id: log
type: io.kestra.plugin.core.log.Log
message: "{{ trigger.count }} new APM session(s): {{ trigger.sessions | json }}"
Installation
This Enterprise plugin requires an Enterprise image and access to the plugin registry. Install it with the following command:
kestractl plugins get io.kestra.plugin.ee:plugin-ee-f5 --compatible-for $KESTRA_VERSION For kestractl, use your Kestra version with --compatible-for, or specify an exact plugin version.
Properties
host *string
BIG-IP hostname or IP address
password *string
BIG-IP password
username *string
BIG-IP username
allowConcurrent boolean
falseSpecifies whether a trigger is allowed to start a new execution even if a previous run is still in progress.
insecure booleanstring
falseTrust all SSL certificates
Set to true to disable TLS certificate validation.
interval string
PT1MdurationPolling interval
How often to poll for new sessions. Accepts ISO 8601 duration notation, e.g. PT30S for 30 seconds or PT1M for 1 minute.
partition string
CommonAdministrative partition to target
Defaults to Common when not set.
sessionUsername string
Only fire for the sessions of this user
Logon name of the APM end user (exact match), not the BIG-IP admin username.
When not set, the trigger fires for every new session.
stopAfter array
CREATEDSUBMITTEDRUNNINGPAUSINGPAUSEDRESTARTEDKILLINGSUCCESSWARNINGFAILEDKILLEDCANCELLEDQUEUEDRETRYINGRETRIEDSKIPPEDBREAKPOINTRESUBMITTEDList of execution states after which a trigger should be stopped (a.k.a. disabled).
when string
trueA condition that determines whether the trigger should run.
A Pebble expression evaluated at trigger time. The trigger fires only when the expression evaluates to a truthy value (true, a non-empty string, a non-zero number). Use this to gate trigger execution on dynamic runtime values such as execution labels, flow variables, or environment conditions.
Outputs
count integer
0Number of new sessions delivered by this poll
sessions array
New APM sessions
Sessions not delivered by a previous poll, each with sessionId, username and clientIp.