PhpIPAM NewAddressTrigger

PhpIPAM NewAddressTrigger

Certified

Trigger on new IP addresses assigned in a phpIPAM subnet

Polls a phpIPAM subnet at a configurable interval and fires one execution per newly detected IP address that was not seen during the previous poll. Deduplication is achieved via the address id field stored in the namespace KV store. All new addresses discovered in the same poll cycle each produce their own execution.

yaml
type: io.kestra.plugin.phpipam.ipam.address.NewAddressTrigger

Trigger when a new address is assigned

yaml
id: phpipam_new_address_trigger
namespace: company.team
triggers:
  - id: watch_subnet
    type: io.kestra.plugin.phpipam.ipam.address.NewAddressTrigger
    baseUrl: "https://ipam.example.com"
    appId: myapp
    auth:
      appToken: "{{ secret('PHPIPAM_APP_TOKEN') }}"
    subnetId: "10"
    interval: PT5M
tasks:
  - id: log_new_address
    type: io.kestra.core.tasks.log.Log
    message: "New address assigned: {{ trigger.ip }} (id={{ trigger.addressId }})"
Properties

Application ID

The API application identifier configured in phpIPAM.

Authentication

App token or username+password authentication.

Definitions
appTokenstring

Static App token

A token generated in the phpIPAM administration panel under Administration → API. Sent to phpIPAM via the token request header. Mutually exclusive with username / password.

passwordstring

Password

Password for the phpIPAM user. Must be provided together with username.

usernamestring

Username

phpIPAM username used to obtain a per-session token via POST /api/{appId}/user/. Must be provided together with password. Mutually exclusive with appToken.

Base URL of the phpIPAM instance

Root URL of the phpIPAM instance, e.g. https://ipam.example.com.

Subnet ID

Numeric ID of the subnet to watch for new addresses.

Defaultfalse

Specifies whether a trigger is allowed to start a new execution even if a previous run is still in progress.

Defaultfalse

Disable TLS certificate validation

Trust all TLS certificates.

DefaultPT5M
Formatduration

Polling interval

How often to poll the subnet for new addresses.

SubTypestring
Possible Values
CREATEDSUBMITTEDRUNNINGPAUSEDRESTARTEDKILLINGSUCCESSWARNINGFAILEDKILLEDCANCELLEDQUEUEDRETRYINGRETRIEDSKIPPEDBREAKPOINTRESUBMITTED

List of execution states after which a trigger should be stopped (a.k.a. disabled).

Defaulttrue

A 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.

Address ID

Numeric ID of the newly detected address.

Hostname

Hostname associated with the address, if any.

IP address

The newly assigned IP address.

Subnet ID

ID of the subnet where the address was detected.