Fortinet white logo
Fortinet white logo

Administration Guide

AliCloud Function action

AliCloud Function action

AliCloud functions can be called when an automation stitch is triggered. This example uses a Security Rating Summary trigger in the automation stitch.

To configure an AliCloud function automation stitch in the GUI:
  1. Go to Security Fabric > Automation and click Create New.

  2. Enter the stitch name.

  3. Configure the trigger:

    1. Click Add Trigger.

    2. Click Create and select Security Rating Summary.

    3. Enter the following:

      Name

      auto-ali

      Report

      Security Posture

    4. Click OK.

    5. Select the trigger in the list and click Apply.

  4. Configure the AliCloud Function action:

    1. Click Add Action.

    2. Click Create and select AliCloud Function.

    3. Enter the following:

      Name

      Ali-Action-1

      URL

      Enter the request API URI

      Authorization

      Function

      AccessKey ID

      Enter the access key ID

      AccessKey Secret

      Enter the access key secret

    4. Click OK.

    5. Select the action in the list and click Apply.

  5. Click OK.

To configure an AliCloud function automation stitch in the CLI:
  1. Create an automation trigger:

    config system automation-trigger
        edit "auto-ali"
            set event-type security-rating-summary
        next
    end
  2. Create an automation action:

    config system automation-action
        edit "Ali-Action-1"
            set action-type alicloud-function
            set alicloud-function-authorization function
            set alicloud-access-key-id "XXXXXxXXXXxxxxxx"
            set alicloud-access-key-secret xxxxxx
            set uri "0000000000000000.us-east-1.fc.aliyuncs.com/2099-99-99/proxy/test-function/echoBodyAuth/"
        next
    end
  3. Create the automation stitch:

    config system automation-stitch
        edit "auto-ali"
            set trigger "auto-ali"
            config actions
                edit 1
                    set action "Ali-Action-1"
                    set required enable
                next
            end
        next
    end

When the automation stitch is triggered, the Security Fabric > Automation page shows the stitch trigger time. In AliCloud, the function log shows that the function was called, executed, and finished.

AliCloud Function action

AliCloud Function action

AliCloud functions can be called when an automation stitch is triggered. This example uses a Security Rating Summary trigger in the automation stitch.

To configure an AliCloud function automation stitch in the GUI:
  1. Go to Security Fabric > Automation and click Create New.

  2. Enter the stitch name.

  3. Configure the trigger:

    1. Click Add Trigger.

    2. Click Create and select Security Rating Summary.

    3. Enter the following:

      Name

      auto-ali

      Report

      Security Posture

    4. Click OK.

    5. Select the trigger in the list and click Apply.

  4. Configure the AliCloud Function action:

    1. Click Add Action.

    2. Click Create and select AliCloud Function.

    3. Enter the following:

      Name

      Ali-Action-1

      URL

      Enter the request API URI

      Authorization

      Function

      AccessKey ID

      Enter the access key ID

      AccessKey Secret

      Enter the access key secret

    4. Click OK.

    5. Select the action in the list and click Apply.

  5. Click OK.

To configure an AliCloud function automation stitch in the CLI:
  1. Create an automation trigger:

    config system automation-trigger
        edit "auto-ali"
            set event-type security-rating-summary
        next
    end
  2. Create an automation action:

    config system automation-action
        edit "Ali-Action-1"
            set action-type alicloud-function
            set alicloud-function-authorization function
            set alicloud-access-key-id "XXXXXxXXXXxxxxxx"
            set alicloud-access-key-secret xxxxxx
            set uri "0000000000000000.us-east-1.fc.aliyuncs.com/2099-99-99/proxy/test-function/echoBodyAuth/"
        next
    end
  3. Create the automation stitch:

    config system automation-stitch
        edit "auto-ali"
            set trigger "auto-ali"
            config actions
                edit 1
                    set action "Ali-Action-1"
                    set required enable
                next
            end
        next
    end

When the automation stitch is triggered, the Security Fabric > Automation page shows the stitch trigger time. In AliCloud, the function log shows that the function was called, executed, and finished.