PARALLAX

fortios_switch_controller_custom_command

Manage FortiOS configuration through native controller HTTPAPI; requires httpapi inventory and fortinet.fortios.fortios network OS

Collection: fortinet.fortios

Full Name: fortinet.fortios.fortios_switch_controller_custom_command

Controller module — runs on the local controller, not on remote hosts.

Synopsis

Manage FortiOS configuration through native controller HTTPAPI; requires httpapi inventory and fortinet.fortios.fortios network OS

Parameters

NameTypeRequiredDefaultDescription
access_tokenstr
enable_logboolfalse
member_pathstr
member_statestr
statestryes
switch_controller_custom_commanddict
vdomstrroot

Example

yaml
# Define these inventory variables: fortios_access_token.
- fortinet.fortios.fortios_switch_controller_custom_command:
    access_token: '{{ fortios_access_token }}'
    state: present
    switch_controller_custom_command:
        command: get system status
        command_name: show-system-status
    vdom: root
  name: Configure the FortiGate switch controller to send custom commands to managed FortiSwitch devices.
Search
    ↑ ↓ move↵ openesc close