Fortinet white logo
Fortinet white logo

CLI Reference

config system automation-action

config system automation-action

Action for automation stitches.

config system automation-action

Description: Action for automation stitches.

edit <name>

set action-type [email|ios-notification|...]

set tls-certificate {string}

set email-to <name1>, <name2>, ...

set email-from {var-string}

set email-subject {var-string}

set email-body {string}

set minimum-interval {integer}

set delay {integer}

set required [enable|disable]

set aws-api-id {string}

set aws-region {string}

set aws-domain {string}

set aws-api-stage {string}

set aws-api-path {string}

set aws-api-key {password}

set azure-app {string}

set azure-function {string}

set azure-domain {string}

set azure-function-authorization [anonymous|function|...]

set azure-api-key {password}

set gcp-function-region {string}

set gcp-project {string}

set gcp-function-domain {string}

set gcp-function {string}

set alicloud-account-id {string}

set alicloud-region {string}

set alicloud-function-domain {string}

set alicloud-version {string}

set alicloud-service {string}

set alicloud-function {string}

set alicloud-function-authorization [anonymous|function]

set alicloud-access-key-id {string}

set alicloud-access-key-secret {password}

set protocol [http|https]

set method [post|put|...]

set uri {var-string}

set http-body {var-string}

set port {integer}

set headers <header1>, <header2>, ...

set script {var-string}

set accprofile {string}

set security-tag {string}

set sdn-connector <name1>, <name2>, ...

next

end

config system automation-action

Parameter

Description

Type

Size

action-type

Action type.

option

-

Option

Description

email

Send notification email.

ios-notification

Send push notification to FortiExplorer iOS.

alert

Generate FortiOS dashboard alert.

disable-ssid

Disable interface.

quarantine

Quarantine host.

quarantine-forticlient

Quarantine FortiClient by EMS.

quarantine-nsx

Quarantine NSX instance.

ban-ip

Ban IP address.

aws-lambda

Send log data to integrated AWS service.

azure-function

Send log data to an Azure function.

google-cloud-function

Send log data to a Google Cloud function.

alicloud-function

Send log data to an AliCloud function.

webhook

Send an HTTP request.

cli-script

Run CLI script.

tls-certificate

Custom TLS certificate for API request.

string

Not Specified

email-to <name>

Email addresses.

Email address.

string

Maximum length: 255

email-from

Email sender name.

var-string

Not Specified

email-subject

Email subject.

var-string

Not Specified

email-body

Email body.

string

Not Specified

minimum-interval

Limit execution to no more than once in this interval (in seconds).

integer

Minimum value: 0 Maximum value: 2592000

delay

Delay before execution (in seconds).

integer

Minimum value: 0 Maximum value: 3600

required

Required in action chain.

option

-

Option

Description

enable

Required in action chain.

disable

Not required in action chain.

aws-api-id

AWS API Gateway ID.

string

Not Specified

aws-region

AWS region.

string

Not Specified

aws-domain

AWS domain.

string

Not Specified

aws-api-stage

AWS API Gateway deployment stage name.

string

Not Specified

aws-api-path

AWS API Gateway path.

string

Not Specified

aws-api-key

AWS API Gateway API key.

password

Not Specified

azure-app

Azure function application name.

string

Not Specified

azure-function

Azure function name.

string

Not Specified

azure-domain

Azure function domain.

string

Not Specified

azure-function-authorization

Azure function authorization level.

option

-

Option

Description

anonymous

Anonymous authorization level (No authorization required).

function

Function authorization level (Function or Host Key required).

admin

Admin authorization level (Master Host Key required).

azure-api-key

Azure function API key.

password

Not Specified

gcp-function-region

Google Cloud function region.

string

Not Specified

gcp-project

Google Cloud Platform project name.

string

Not Specified

gcp-function-domain

Google Cloud function domain.

string

Not Specified

gcp-function

Google Cloud function name.

string

Not Specified

alicloud-account-id

AliCloud account ID.

string

Not Specified

alicloud-region

AliCloud region.

string

Not Specified

alicloud-function-domain

AliCloud function domain.

string

Not Specified

alicloud-version

AliCloud version.

string

Not Specified

alicloud-service

AliCloud service name.

string

Not Specified

alicloud-function

AliCloud function name.

string

Not Specified

alicloud-function-authorization

AliCloud function authorization type.

option

-

Option

Description

anonymous

Anonymous authorization (No authorization required).

function

Function authorization (Authorization required).

alicloud-access-key-id

AliCloud AccessKey ID.

string

Not Specified

alicloud-access-key-secret

AliCloud AccessKey secret.

password

Not Specified

protocol

Request protocol.

option

-

Option

Description

http

HTTP.

https

HTTPS.

method

Request method (POST, PUT, GET, PATCH or DELETE).

option

-

Option

Description

post

POST.

put

PUT.

get

GET.

patch

PATCH.

delete

DELETE.

uri

Request API URI.

var-string

Not Specified

http-body

Request body (if necessary). Should be serialized json string.

var-string

Not Specified

port

Protocol port.

integer

Minimum value: 1 Maximum value: 65535

headers <header>

Request headers.

Request header.

string

Maximum length: 255

script

CLI script.

var-string

Not Specified

accprofile

Access profile for CLI script action to access FortiGate features.

string

Not Specified

security-tag

NSX security tag.

string

Not Specified

sdn-connector <name>

NSX SDN connector names.

SDN connector name.

string

Maximum length: 79

config system automation-action

config system automation-action

Action for automation stitches.

config system automation-action

Description: Action for automation stitches.

edit <name>

set action-type [email|ios-notification|...]

set tls-certificate {string}

set email-to <name1>, <name2>, ...

set email-from {var-string}

set email-subject {var-string}

set email-body {string}

set minimum-interval {integer}

set delay {integer}

set required [enable|disable]

set aws-api-id {string}

set aws-region {string}

set aws-domain {string}

set aws-api-stage {string}

set aws-api-path {string}

set aws-api-key {password}

set azure-app {string}

set azure-function {string}

set azure-domain {string}

set azure-function-authorization [anonymous|function|...]

set azure-api-key {password}

set gcp-function-region {string}

set gcp-project {string}

set gcp-function-domain {string}

set gcp-function {string}

set alicloud-account-id {string}

set alicloud-region {string}

set alicloud-function-domain {string}

set alicloud-version {string}

set alicloud-service {string}

set alicloud-function {string}

set alicloud-function-authorization [anonymous|function]

set alicloud-access-key-id {string}

set alicloud-access-key-secret {password}

set protocol [http|https]

set method [post|put|...]

set uri {var-string}

set http-body {var-string}

set port {integer}

set headers <header1>, <header2>, ...

set script {var-string}

set accprofile {string}

set security-tag {string}

set sdn-connector <name1>, <name2>, ...

next

end

config system automation-action

Parameter

Description

Type

Size

action-type

Action type.

option

-

Option

Description

email

Send notification email.

ios-notification

Send push notification to FortiExplorer iOS.

alert

Generate FortiOS dashboard alert.

disable-ssid

Disable interface.

quarantine

Quarantine host.

quarantine-forticlient

Quarantine FortiClient by EMS.

quarantine-nsx

Quarantine NSX instance.

ban-ip

Ban IP address.

aws-lambda

Send log data to integrated AWS service.

azure-function

Send log data to an Azure function.

google-cloud-function

Send log data to a Google Cloud function.

alicloud-function

Send log data to an AliCloud function.

webhook

Send an HTTP request.

cli-script

Run CLI script.

tls-certificate

Custom TLS certificate for API request.

string

Not Specified

email-to <name>

Email addresses.

Email address.

string

Maximum length: 255

email-from

Email sender name.

var-string

Not Specified

email-subject

Email subject.

var-string

Not Specified

email-body

Email body.

string

Not Specified

minimum-interval

Limit execution to no more than once in this interval (in seconds).

integer

Minimum value: 0 Maximum value: 2592000

delay

Delay before execution (in seconds).

integer

Minimum value: 0 Maximum value: 3600

required

Required in action chain.

option

-

Option

Description

enable

Required in action chain.

disable

Not required in action chain.

aws-api-id

AWS API Gateway ID.

string

Not Specified

aws-region

AWS region.

string

Not Specified

aws-domain

AWS domain.

string

Not Specified

aws-api-stage

AWS API Gateway deployment stage name.

string

Not Specified

aws-api-path

AWS API Gateway path.

string

Not Specified

aws-api-key

AWS API Gateway API key.

password

Not Specified

azure-app

Azure function application name.

string

Not Specified

azure-function

Azure function name.

string

Not Specified

azure-domain

Azure function domain.

string

Not Specified

azure-function-authorization

Azure function authorization level.

option

-

Option

Description

anonymous

Anonymous authorization level (No authorization required).

function

Function authorization level (Function or Host Key required).

admin

Admin authorization level (Master Host Key required).

azure-api-key

Azure function API key.

password

Not Specified

gcp-function-region

Google Cloud function region.

string

Not Specified

gcp-project

Google Cloud Platform project name.

string

Not Specified

gcp-function-domain

Google Cloud function domain.

string

Not Specified

gcp-function

Google Cloud function name.

string

Not Specified

alicloud-account-id

AliCloud account ID.

string

Not Specified

alicloud-region

AliCloud region.

string

Not Specified

alicloud-function-domain

AliCloud function domain.

string

Not Specified

alicloud-version

AliCloud version.

string

Not Specified

alicloud-service

AliCloud service name.

string

Not Specified

alicloud-function

AliCloud function name.

string

Not Specified

alicloud-function-authorization

AliCloud function authorization type.

option

-

Option

Description

anonymous

Anonymous authorization (No authorization required).

function

Function authorization (Authorization required).

alicloud-access-key-id

AliCloud AccessKey ID.

string

Not Specified

alicloud-access-key-secret

AliCloud AccessKey secret.

password

Not Specified

protocol

Request protocol.

option

-

Option

Description

http

HTTP.

https

HTTPS.

method

Request method (POST, PUT, GET, PATCH or DELETE).

option

-

Option

Description

post

POST.

put

PUT.

get

GET.

patch

PATCH.

delete

DELETE.

uri

Request API URI.

var-string

Not Specified

http-body

Request body (if necessary). Should be serialized json string.

var-string

Not Specified

port

Protocol port.

integer

Minimum value: 1 Maximum value: 65535

headers <header>

Request headers.

Request header.

string

Maximum length: 255

script

CLI script.

var-string

Not Specified

accprofile

Access profile for CLI script action to access FortiGate features.

string

Not Specified

security-tag

NSX security tag.

string

Not Specified

sdn-connector <name>

NSX SDN connector names.

SDN connector name.

string

Maximum length: 79