Fortinet FortiManager objects Delete

Fortinet FortiManager objects Delete

Certified
Enterprise Edition

Delete a firewall object from an ADOM

Idempotent: deleting an object that does not exist reports deleted: false. FortiManager refuses to delete an object that a policy or group still references and the error is returned as is.

yaml
type: io.kestra.plugin.ee.fortinet.fortimanager.objects.Delete

Delete an address object

yaml
id: fortimanager_delete_address
namespace: company.network

tasks:
  - id: delete_address
    type: io.kestra.plugin.ee.fortinet.fortimanager.objects.Delete
    host: fmg.example.com
    apiKey: "{{ secret('FORTIMANAGER_API_KEY') }}"
    adom: root
    objectType: ADDRESS
    name: web-servers
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-fortinet --compatible-for $KESTRA_VERSION

For kestractl, use your Kestra version with --compatible-for, or specify an exact plugin version.

Properties

FortiManager host

Host name or IP address of the FortiManager management interface.

Name

Name of the object to delete.

Possible Values
ADDRESSADDRESS_GROUPSERVICESERVICE_GROUPVIPSCHEDULE_ONETIMESCHEDULE_RECURRING

Object type

ADDRESS, ADDRESS_GROUP, SERVICE, SERVICE_GROUP, VIP, SCHEDULE_ONETIME or SCHEDULE_RECURRING.

ADOM

Administrative domain to work in. Defaults to root.

API key

REST API key of a FortiManager API user (FortiManager 7.2.2 and later), sent in the Authorization header and never in the URL. Use {{ secret('FORTIMANAGER_API_KEY') }}. Set either apiKey or username and password.

Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.

Definitions
assetFailureBehaviorstring
Possible Values
IGNOREFAILWARN

Asset failure behavior

Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.

enableAutobooleanstring

Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.

inputsarray

The assets consumed as inputs.

id*string
Min length1
typestring
outputs

The assets produced as outputs.

id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*string
Min length1

Custom asset type

descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150

CA certificate

PEM encoded CA certificate(s) used to validate the FortiManager certificate. When empty, the JVM trust store is used.

Check mode

When true, reads the current state and reports what would change without writing anything. Defaults to false.

Connect timeout

Maximum time to open the connection. Must be greater than zero. Defaults to 10 seconds.

Skip TLS verification

Disables certificate and host name validation. Only for labs with self-signed certificates. Defaults to false.

Lock timeout

Maximum time to wait for the ADOM lock when waitForLock is true. Defaults to 1 minute.

Password

Administrator password. Use {{ secret('FORTIMANAGER_PASSWORD') }}. Never logged nor returned in outputs.

FortiManager port

HTTPS port. Defaults to 443.

Request timeout

Maximum time to wait for one answer. Must be greater than zero. Defaults to 60 seconds. Long jobs are polled by task ID instead.

Username

Administrator name, used with password when no apiKey is set. The plugin logs in once per task run and always logs out at the end. Accounts with multi-factor authentication cannot log in this way: use an apiKey.

Wait for lock

When another administrator holds the ADOM lock, retry until lockTimeout instead of failing at once. Defaults to false.

Possible Values
AUTOLOCK_ONLYNONE

Workspace handling

How the ADOM workspace lock is handled around the write. AUTO (default) detects the workspace mode: when it is on, the ADOM is locked, the change committed and the ADOM unlocked in a finally block. LOCK_ONLY locks and unlocks without committing, so the change stays pending for a later commit. NONE never locks. ADOMs in workflow mode (approval required) are refused with AUTO: submitting workflow sessions is not supported.

Deleted

True when the object existed and was deleted. In check mode: when it would be.