<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How does the API work in a multi domain environment? in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-does-the-API-work-in-a-multi-domain-environment/m-p/1634#M1</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a multi-domain environment there is one API server.&lt;/P&gt;&lt;P&gt;Turning this server on/off is done on the MDS level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you login using mgmt_cli always provide the IP address of the MDS server and provide the domain name.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;mgmt_cli login user &amp;lt;my name&amp;gt; password &amp;lt;my password&amp;gt; domain &amp;lt;my domain name&amp;gt; -m &amp;lt;IP address or DNS name of the MDS&amp;gt;&lt;/LI&gt;&lt;LI&gt;mgmt_cli add-host name &amp;lt;host name&amp;gt; ip-address &amp;lt;ip-address of the new host&amp;gt; -u &amp;lt;username&amp;gt; -p &amp;lt;password&amp;gt; -d &amp;lt;domain name&amp;gt; -m &amp;lt;IP address or DNS name of the MDS&amp;gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When using the login API without providing the domain name, you will be logged in to the MDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly when making a web-service requests:&lt;/P&gt;&lt;P&gt;* The URL of the request should point to the MDS&lt;/P&gt;&lt;P&gt;* In the login API, provide the domain name as an argument.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POST&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://MDS_server_ip/web_api/login" rel="nofollow"&gt;https://MDS_server_ip/web_api/login&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Headers:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Content-Type: application/json&lt;/P&gt;&lt;P&gt;Payload:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;{&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; "user" : "myuser",&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; "password" : "mypassword",&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; "domain" : "my domain name"&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Dec 2015 09:06:02 GMT</pubDate>
    <dc:creator>Uri_Bialik</dc:creator>
    <dc:date>2015-12-23T09:06:02Z</dc:date>
    <item>
      <title>How does the API work in a multi domain environment?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-does-the-API-work-in-a-multi-domain-environment/m-p/1634#M1</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a multi-domain environment there is one API server.&lt;/P&gt;&lt;P&gt;Turning this server on/off is done on the MDS level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you login using mgmt_cli always provide the IP address of the MDS server and provide the domain name.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;mgmt_cli login user &amp;lt;my name&amp;gt; password &amp;lt;my password&amp;gt; domain &amp;lt;my domain name&amp;gt; -m &amp;lt;IP address or DNS name of the MDS&amp;gt;&lt;/LI&gt;&lt;LI&gt;mgmt_cli add-host name &amp;lt;host name&amp;gt; ip-address &amp;lt;ip-address of the new host&amp;gt; -u &amp;lt;username&amp;gt; -p &amp;lt;password&amp;gt; -d &amp;lt;domain name&amp;gt; -m &amp;lt;IP address or DNS name of the MDS&amp;gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When using the login API without providing the domain name, you will be logged in to the MDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly when making a web-service requests:&lt;/P&gt;&lt;P&gt;* The URL of the request should point to the MDS&lt;/P&gt;&lt;P&gt;* In the login API, provide the domain name as an argument.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POST&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://MDS_server_ip/web_api/login" rel="nofollow"&gt;https://MDS_server_ip/web_api/login&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Headers:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Content-Type: application/json&lt;/P&gt;&lt;P&gt;Payload:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;{&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; "user" : "myuser",&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; "password" : "mypassword",&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; "domain" : "my domain name"&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2015 09:06:02 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-does-the-API-work-in-a-multi-domain-environment/m-p/1634#M1</guid>
      <dc:creator>Uri_Bialik</dc:creator>
      <dc:date>2015-12-23T09:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: How does the API work in a multi domain environment?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-does-the-API-work-in-a-multi-domain-environment/m-p/1635#M2</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad I found this post. I was trying to figure out why I wasn't seeing objects I would create VIA the API wouldn't show up in the GUI. Specifying the domain fixed that. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where was I creating objects when I wasn't specifying the domain? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 14:31:27 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-does-the-API-work-in-a-multi-domain-environment/m-p/1635#M2</guid>
      <dc:creator>Joshua_Boerum</dc:creator>
      <dc:date>2016-07-01T14:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: How does the API work in a multi domain environment?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-does-the-API-work-in-a-multi-domain-environment/m-p/1636#M3</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for posting this. This is not explained even in the official documentation .&amp;nbsp;&lt;/P&gt;&lt;P&gt;Saved a lot of time .&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2019 15:41:05 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-does-the-API-work-in-a-multi-domain-environment/m-p/1636#M3</guid>
      <dc:creator>Ash_Sidhu</dc:creator>
      <dc:date>2019-02-22T15:41:05Z</dc:date>
    </item>
  </channel>
</rss>

