Fortinet black logo

New Features

Action - Google Cloud Function

Copy Link
Copy Doc ID 761d83e3-4a7b-11e9-94bf-00505692583a:944303
Download PDF

Action - Google Cloud Function

This feature adds support for calling Google Cloud functions when an automation stitch is triggered.

To configure a Google Cloud function using the GUI:
  1. Go to Security Fabric > Automation.
  2. Configure an Automation Stitch and set the Action to Google Cloud Function.

    When the automation stitch is triggered, FortiGate shows the stitch trigger time.

To configure a Google Cloud function using the CLI:
config system automation-action
    edit "google-echo"
        set action-type google-cloud-function
        set gcp-function-region "us-central1"
        set gcp-project "dev-project-001-166400"
        set gcp-function-domain "cloudfunctions.net"
        set gcp-function "jlum-echo"
        set headers "echo-header:echo-value"
    next
end
config system automation-trigger
    edit "auto-google1"
        set event-type security-rating-summary
    next
end
config system automation-stitch
    edit "auto-google1"
        set trigger "auto-google1"
        set action "google-echo"
    next
end
To see the function log in Google Cloud using the GUI:
  1. Go to Google Cloud Platform > Logs.

    The function log shows that the configured function was called, executed, and finished.

Action - Google Cloud Function

This feature adds support for calling Google Cloud functions when an automation stitch is triggered.

To configure a Google Cloud function using the GUI:
  1. Go to Security Fabric > Automation.
  2. Configure an Automation Stitch and set the Action to Google Cloud Function.

    When the automation stitch is triggered, FortiGate shows the stitch trigger time.

To configure a Google Cloud function using the CLI:
config system automation-action
    edit "google-echo"
        set action-type google-cloud-function
        set gcp-function-region "us-central1"
        set gcp-project "dev-project-001-166400"
        set gcp-function-domain "cloudfunctions.net"
        set gcp-function "jlum-echo"
        set headers "echo-header:echo-value"
    next
end
config system automation-trigger
    edit "auto-google1"
        set event-type security-rating-summary
    next
end
config system automation-stitch
    edit "auto-google1"
        set trigger "auto-google1"
        set action "google-echo"
    next
end
To see the function log in Google Cloud using the GUI:
  1. Go to Google Cloud Platform > Logs.

    The function log shows that the configured function was called, executed, and finished.