<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.cpwiki.net/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.cpwiki.net/index.php?action=history&amp;feed=atom&amp;title=fortinet_create_api_user_via_CLI</id>
		<title>fortinet create api user via CLI - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.cpwiki.net/index.php?action=history&amp;feed=atom&amp;title=fortinet_create_api_user_via_CLI"/>
		<link rel="alternate" type="text/html" href="http://www.cpwiki.net/index.php?title=fortinet_create_api_user_via_CLI&amp;action=history"/>
		<updated>2026-04-29T09:07:15Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.21.10</generator>

	<entry>
		<id>http://www.cpwiki.net/index.php?title=fortinet_create_api_user_via_CLI&amp;diff=935&amp;oldid=prev</id>
		<title>Nighthawk: Created page with &quot;   To create a REST API administrator in the CLI:    config system api-user     edit &quot;api-admin&quot;         set comments &lt;string&gt;         set api-key ************         set acc...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.cpwiki.net/index.php?title=fortinet_create_api_user_via_CLI&amp;diff=935&amp;oldid=prev"/>
				<updated>2025-04-28T17:20:15Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;   To create a REST API administrator in the CLI:    config system api-user     edit &amp;quot;api-admin&amp;quot;         set comments &amp;lt;string&amp;gt;         set api-key ************         set acc...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To create a REST API administrator in the CLI:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 config system api-user&lt;br /&gt;
    edit &amp;quot;api-admin&amp;quot;&lt;br /&gt;
        set comments &amp;lt;string&amp;gt;&lt;br /&gt;
        set api-key ************&lt;br /&gt;
        set accprofile &amp;quot;API profile&amp;quot;&lt;br /&gt;
        set vdom &amp;quot;root&amp;quot;&lt;br /&gt;
        set peer-auth enable&lt;br /&gt;
        set peer-group &amp;lt;group&amp;gt;&lt;br /&gt;
        config trusthost&lt;br /&gt;
            edit 1&lt;br /&gt;
                set ipv4-trusthost &amp;lt;class_ip&amp;amp;net_netmask&amp;gt;&lt;br /&gt;
            next&lt;br /&gt;
            ...&lt;br /&gt;
        end&lt;br /&gt;
    next&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
Generate the API token:&lt;br /&gt;
&lt;br /&gt;
 # execute api-user generate-key &amp;lt;API username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[category:fortinet]]&lt;/div&gt;</summary>
		<author><name>Nighthawk</name></author>	</entry>

	</feed>