Fortinet Document Library

Version:

Version:

Version:


Table of Contents

Administration Guide

Download PDF
Copy Link

Specific event

Retrieve a specific event.

https://<servername>:8443/api/event/{id}

Return value

Type

Description

id

Integer

Event record ID

creationTime

Integer

Time alarm was created

name

String

Description of alarm

message

String

Event Detail

tag

String

Event tag

element

id

Integer

Element ID

name

String

Element Name

type

Integer

Element Type

Example request

curl -k -u '<username>:<password>' -H "accept: application/xml" -X GET https://<servername>:8443/api/event/33757

Example XML format

<eventResult>

<status>success</status>

<errorMessage></errorMessage>

<event>

<creationTime>1484546536470</creationTime>

<element>

<id>2886</id>

<name>Aruba5000</name>

<type>1</type>

</element>

<id>2956873</id>

<message>SNMP error 2 occurred for device Aruba5000</message>

<name>SNMP Read Error</name>

<tag>SNMP_READ_ERROR</tag>

</event>

</eventResult>

Specific event

Retrieve a specific event.

https://<servername>:8443/api/event/{id}

Return value

Type

Description

id

Integer

Event record ID

creationTime

Integer

Time alarm was created

name

String

Description of alarm

message

String

Event Detail

tag

String

Event tag

element

id

Integer

Element ID

name

String

Element Name

type

Integer

Element Type

Example request

curl -k -u '<username>:<password>' -H "accept: application/xml" -X GET https://<servername>:8443/api/event/33757

Example XML format

<eventResult>

<status>success</status>

<errorMessage></errorMessage>

<event>

<creationTime>1484546536470</creationTime>

<element>

<id>2886</id>

<name>Aruba5000</name>

<type>1</type>

</element>

<id>2956873</id>

<message>SNMP error 2 occurred for device Aruba5000</message>

<name>SNMP Read Error</name>

<tag>SNMP_READ_ERROR</tag>

</event>

</eventResult>