<?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 mgmt_cli show dns-domains &amp;amp; show-membership not working in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-show-dns-domains-amp-show-membership-not-working/m-p/259818#M9263</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to read out group memberships for DNS Domain objects using mgmt_cli and API version 1.9.1, but I'm not getting out any 'groups' even for objects that are confirmed used in groups via SmartConsole. This is from a domain in an MDS-system, but "show hosts details-level full show-membership true" works, so I'm assuming this isn't an MDS limitation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm running the command below, referenced from API documentation:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;mgmt_cli show dns-domains details-level full show-membership true --session-id $CPAPI_SID -f json&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it only me or is it a bug?&lt;/P&gt;&lt;P&gt;I don't have an v2+ API to test this on yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm dreading going through all groups and finding dns-domain objects from there &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 14 Oct 2025 08:57:46 GMT</pubDate>
    <dc:creator>durd_</dc:creator>
    <dc:date>2025-10-14T08:57:46Z</dc:date>
    <item>
      <title>mgmt_cli show dns-domains &amp; show-membership not working</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-show-dns-domains-amp-show-membership-not-working/m-p/259818#M9263</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to read out group memberships for DNS Domain objects using mgmt_cli and API version 1.9.1, but I'm not getting out any 'groups' even for objects that are confirmed used in groups via SmartConsole. This is from a domain in an MDS-system, but "show hosts details-level full show-membership true" works, so I'm assuming this isn't an MDS limitation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm running the command below, referenced from API documentation:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;mgmt_cli show dns-domains details-level full show-membership true --session-id $CPAPI_SID -f json&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it only me or is it a bug?&lt;/P&gt;&lt;P&gt;I don't have an v2+ API to test this on yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm dreading going through all groups and finding dns-domain objects from there &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Oct 2025 08:57:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-show-dns-domains-amp-show-membership-not-working/m-p/259818#M9263</guid>
      <dc:creator>durd_</dc:creator>
      <dc:date>2025-10-14T08:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli show dns-domains &amp; show-membership not working</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-show-dns-domains-amp-show-membership-not-working/m-p/259819#M9264</link>
      <description>&lt;P&gt;Try without advanced flags and tell us if it makes any difference:&amp;nbsp;&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-markup"&gt;&lt;CODE&gt;mgmt_cli show dns-domains&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 Oct 2025 09:59:47 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-show-dns-domains-amp-show-membership-not-working/m-p/259819#M9264</guid>
      <dc:creator>_Val_</dc:creator>
      <dc:date>2025-10-14T09:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli show dns-domains &amp; show-membership not working</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-show-dns-domains-amp-show-membership-not-working/m-p/259826#M9265</link>
      <description>&lt;P&gt;I did command Val suggested and that worked.&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Tue, 14 Oct 2025 12:05:43 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-show-dns-domains-amp-show-membership-not-working/m-p/259826#M9265</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2025-10-14T12:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli show dns-domains &amp; show-membership not working</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-show-dns-domains-amp-show-membership-not-working/m-p/259834#M9266</link>
      <description>&lt;P&gt;I appreciate the help!&lt;/P&gt;&lt;P&gt;I get the first 50 of the DNS Domain objects with your command, but no group memberships of the objects. Below are some tests and comparison to "show hosts".&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;export CPAPI_SID=$(mgmt_cli -r true login domain &amp;lt;domain&amp;gt; -f json | jq -r '.sid')

# no group memberships of DNS Domain objects
mgmt_cli show dns-domains --session-id $CPAPI_SID
Ex:
- uid: "67ecbdd2-xyz-481b-9711-7a1ad69d8fdb"
  name: ".confirmed-member-of-group.example.com"
  type: "dns-domain"
  domain:
    uid: "1e294ce0-xyz-11e3-aa6e-0800200c9a66"
    name: "Global"
    domain-type: "global domain"
  icon: "Objects/domain"
  color: "violet red"

# no group memberships of DNS Domain objects
mgmt_cli show dns-domains show-membership true --session-id $CPAPI_SID

# no group memberships of DNS Domain objects
mgmt_cli show dns-domains details-level full show-membership true --session-id $CPAPI_SID

# no group memberships of Host objects
mgmt_cli show hosts show-membership true --session-id $CPAPI_SID

# group memberships of Host objects
mgmt_cli show hosts details-level full show-membership true --session-id $CPAPI_SID&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm very sure I need "details-level full" to get group membership output.&lt;/P&gt;&lt;P&gt;I saw an invite to a R82 lab, I have try it later on though, I'm on 15% battery &amp;gt;_&amp;lt;.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Oct 2025 13:28:52 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-show-dns-domains-amp-show-membership-not-working/m-p/259834#M9266</guid>
      <dc:creator>durd_</dc:creator>
      <dc:date>2025-10-14T13:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli show dns-domains &amp; show-membership not working</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-show-dns-domains-amp-show-membership-not-working/m-p/259835#M9267</link>
      <description>&lt;P&gt;I am POSITIVE that if anyone would know answer to this, its&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/27871"&gt;@Bob_Zimmerman&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Tue, 14 Oct 2025 13:38:48 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-show-dns-domains-amp-show-membership-not-working/m-p/259835#M9267</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2025-10-14T13:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli show dns-domains &amp; show-membership not working</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-show-dns-domains-amp-show-membership-not-working/m-p/259843#M9268</link>
      <description>&lt;P&gt;It accepts the key, but doesn't change anything about the returned data. The objects simply don't get a 'groups' key. You're right, this looks like a bug. It's easy enough to work around by using &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/?#cli/where-used~v2.0.1%20" target="_self"&gt;where-used&lt;/A&gt;, though:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;mgmt_cli -f json -d &amp;lt;CMA&amp;gt; -r true where-used uid &amp;lt;Object UUID&amp;gt; | jq '."used-directly".objects[].name'&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 14 Oct 2025 15:23:18 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-show-dns-domains-amp-show-membership-not-working/m-p/259843#M9268</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2025-10-14T15:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli show dns-domains &amp; show-membership not working</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-show-dns-domains-amp-show-membership-not-working/m-p/260322#M9272</link>
      <description>&lt;P&gt;Thank you for tip with where-used and UUID, and confirming that I'm not losing my mind&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm sorry that I have not tried the R82 lab yet. Is it worth raising a ticket for the r81.20 API?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Oct 2025 12:55:28 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-show-dns-domains-amp-show-membership-not-working/m-p/260322#M9272</guid>
      <dc:creator>durd_</dc:creator>
      <dc:date>2025-10-20T12:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli show dns-domains &amp; show-membership not working</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-show-dns-domains-amp-show-membership-not-working/m-p/260327#M9273</link>
      <description>&lt;P&gt;Sure. R81.20 is still supported. It behaves the same on R82 jumbo 41, though. That's where I tested.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Oct 2025 13:38:45 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-show-dns-domains-amp-show-membership-not-working/m-p/260327#M9273</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2025-10-20T13:38:45Z</dc:date>
    </item>
  </channel>
</rss>

