Skip to main content
msperl
New Member
September 28, 2018
Question

Fortimail API

  • September 28, 2018
  • 5 replies
  • 6669 views

Hello,

 

I'm planning to implement a portal for TLS enforcement. Therefore I need to get a List of all members of a specific email group (later I'll implement a kind of self-service portal for certain users to maintain this list).

What I currently have:

curl -k -b cookie.txt -H "Content-Type: application/json" -X GET -d '{"reqAction":0,"sortingDirection":2}' https://<my_fortimail&...omain>_TLS_enforce/

 

Unfortunately I'm only getting the objectID, the name and description of this email group but not the members which I'd need.

The API documentation doesn't help me either.

 

Thanks in advance!

    5 replies

    MartienssenL
    New Member
    November 27, 2018

    Hi

     

    same problem here with email-address groups. Did you get it ?

     

    greetings

    lars

    msperl
    msperlAuthor
    New Member
    January 25, 2019

    Problem still not solved...

    Any suggestions?

    If not possible, I'll go the ugly way with ssh and CLI commands.

    MartienssenL
    New Member
    January 25, 2019

    Hi

     

    I found this for EmailAdressGroups

     

    its for internal domain "a.com" and group "grp"

     

    **CREATE**    curl -s -k -b cookie.txt -H 'Content-Type: application/json' -X POST -d ''  [link]https://$[/link]{FMLIP}/api/v1/Domain/a.com/ProfEmail_address_group/grp   **MODIFY Comment**    curl -s -k -b cookie.txt -H 'Content-Type: application/json' -X POST -d '{"reqAction" : 5, "comment" : "mycomment"}'  [link]https://$[/link]{FMLIP}/api/v1/Domain/a.com/ProfEmail_address_group/grp   **LIST Content**    curl -s -k -b cookie.txt -H "Content-Type: application/json" -X GET  [link]https://$[/link]{FMLIP}/api/v1/Domain/a.com/ProfEmail_address_group        curl -s -k -b cookie.txt -H 'Content-Type: application/json' -X POST -d '{"reqAction" : "1", "parent_mkey" : "grp", "mdomain" : "a.com"}'  [link]https://$[/link]{FMLIP}/api/v1/ProfEmail_address_groupEmailAddressGroupMember        curl -s -k -b cookie.txt -H 'Content-Type: application/json' -X POST -d '{"reqAction" : "1", "parent_mkey" : "grp" }'  [link]https://$[/link]{FMLIP}/api/v1/Domain/a.com/ProfEmail_address_groupEmailAddressGroupMemberCollection   **MODIFY Content** ADD    curl -s -k -b cookie.txt -H "Content-Type: application/json" -X POST [link]https://$[/link]{FMLIP}/api/v1/Domain/a.com/ProfEmail_address_group/grp/ProfEmail_address_groupEmailAddressGroupMember/a@a.com DELETE    curl -s -k -b cookie.txt -H "Content-Type: application/json" -X DELETE [link]https://$[/link]{FMLIP}/api/v1/Domain/a.com/ProfEmail_address_group/grp/ProfEmail_address_groupEmailAddressGroupMember/a@a.com   **DELETE curl -s -k -b cookie.txt -H 'Content-Type: application/json' -X DELETE -d ''  [link]https://$[/link]{FMLIP}/api/v1/Domain/a.com/ProfEmail_address_group/grp

     

    greetings

    lars

    Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
    Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!