<?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 Re: Snapmirror relationship API call retunrs 0 records in ONTAP Rest API Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Snapmirror-relationship-API-call-returns-0-records/m-p/157140#M64</link>
    <description>&lt;P&gt;Hello, we are running NetApp 9.7&lt;/P&gt;
&lt;PRE&gt;  "version": {
    "full": "NetApp Release 9.7P4: Sat May 23 00:43:42 UTC 2020",
    "generation": 9,
    "major": 7,
    "minor": 0
  },&lt;/PRE&gt;
&lt;P&gt;However&amp;nbsp;&lt;A href="https://10.193.8.229/api/snapmirror/relationships/" target="_blank"&gt;https://[cluster-management-ip]/api/snapmirror/relationships/&lt;/A&gt;&amp;nbsp; which is the destination cluster returns:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
  "records": [
  ],
  "num_records": 0,
  "_links": {
    "self": {
      "href": "/api/snapmirror/relationships/"
    }
  }
}&lt;/PRE&gt;
&lt;P&gt;Which version of ONTAP is this supported?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jun 2020 21:05:51 GMT</pubDate>
    <dc:creator>Atlassian</dc:creator>
    <dc:date>2020-06-22T21:05:51Z</dc:date>
    <item>
      <title>Snapmirror relationship API call returns 0 records</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Snapmirror-relationship-API-call-returns-0-records/m-p/156770#M46</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm using&amp;nbsp;ONTAP&amp;nbsp; 9.6p6&amp;nbsp; version and trying to GET the snapmirror relationships from the target array and/or source array too but from both I get&amp;nbsp; 0 records.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;H4&gt;Request URL&lt;/H4&gt;
&lt;DIV class="request-url"&gt;
&lt;PRE&gt;https://xxxxx/api/snapmirror/relationships?healthy=true&amp;amp;return_timeout=120&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;H4&gt;Server response&lt;/H4&gt;
&lt;TABLE class="responses-table"&gt;
&lt;THEAD&gt;
&lt;TR class="responses-header"&gt;
&lt;TD class="col col_header response-col_status"&gt;Code&lt;/TD&gt;
&lt;TD class="col col_header response-col_description"&gt;Details&lt;/TD&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR class="response"&gt;
&lt;TD class="col response-col_status"&gt;200&lt;/TD&gt;
&lt;TD class="col response-col_description"&gt;
&lt;DIV&gt;
&lt;H5&gt;Response body&lt;/H5&gt;
&lt;DIV class="highlight-code"&gt;
&lt;DIV class="download-contents"&gt;Download&lt;/DIV&gt;
&lt;PRE class=" microlight"&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;
  &lt;SPAN style="color: #555;"&gt;"records"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;
  &lt;SPAN style="color: #555;"&gt;"num_records"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN style="color: #555; font-weight: bold;"&gt;0&lt;/SPAN&gt;
&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Source Array&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;H4&gt;Request URL&lt;/H4&gt;
&lt;DIV class="request-url"&gt;
&lt;PRE&gt;https://xxxx/api/snapmirror/relationships?list_destinations_only=true&amp;amp;return_records=true&amp;amp;return_timeout=15&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;H5&gt;Response body&lt;/H5&gt;
&lt;DIV class="highlight-code"&gt;
&lt;PRE class=" microlight"&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;
  &lt;SPAN style="color: #555;"&gt;"records"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;
  &lt;SPAN style="color: #555;"&gt;"num_records"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN style="color: #555; font-weight: bold;"&gt;0&lt;/SPAN&gt;
&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;Am I missing any parameter?&amp;nbsp; Is anybody else running in the same issue?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 11:06:48 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Snapmirror-relationship-API-call-returns-0-records/m-p/156770#M46</guid>
      <dc:creator>kircho</dc:creator>
      <dc:date>2025-06-04T11:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Snapmirror relationship API call retunrs 0 records</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Snapmirror-relationship-API-call-returns-0-records/m-p/157034#M61</link>
      <description>&lt;P&gt;We discussed this in the slack channel (#api @&amp;nbsp;&lt;A href="https://netapppub.slack.com" target="_blank"&gt;https://netapppub.slack.com&lt;/A&gt;), but for anyone reading this thread not involved in Slack, here was the answer:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Robert:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;Something to check. Were these relationships created through the REST API or via some other method? If it was some other method, do they have a policy-type of async-mirror&amp;nbsp; or vault? If so, they are not supported in the REST API (and won't be returned) until you upgrade to 9.7 where they are supported.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;If this applies to you, you can either upgrade your cluster to 9.7 or you can use the CLI passthrough until you get to a supported version. Using the CLI passthrough is documented in the API docs under "&lt;/SPAN&gt;&lt;A class="c-link" href="https://library.netapp.com/ecmdocs/ECMLP2862544/html/index.html#/docs/docs/Using%20the%20private%20CLI%20passthrough%20with%20the%20ONTAP%20REST%20API" target="_blank" rel="noopener noreferrer" data-sk="tooltip_parent" aria-describedby="sk-tooltip-18284"&gt;Using the private CLI passthrough with the ONTAP REST API&lt;/A&gt;&lt;SPAN&gt;".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Kircho:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;I have policy-type set to "async-mirror". We just upgraded to 9.6p6.. I will give it a try with the CLI passthrough. Thanks helping out Robert!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 15:57:10 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Snapmirror-relationship-API-call-returns-0-records/m-p/157034#M61</guid>
      <dc:creator>RobertBlackhart</dc:creator>
      <dc:date>2020-06-16T15:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: Snapmirror relationship API call retunrs 0 records</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Snapmirror-relationship-API-call-returns-0-records/m-p/157140#M64</link>
      <description>&lt;P&gt;Hello, we are running NetApp 9.7&lt;/P&gt;
&lt;PRE&gt;  "version": {
    "full": "NetApp Release 9.7P4: Sat May 23 00:43:42 UTC 2020",
    "generation": 9,
    "major": 7,
    "minor": 0
  },&lt;/PRE&gt;
&lt;P&gt;However&amp;nbsp;&lt;A href="https://10.193.8.229/api/snapmirror/relationships/" target="_blank"&gt;https://[cluster-management-ip]/api/snapmirror/relationships/&lt;/A&gt;&amp;nbsp; which is the destination cluster returns:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
  "records": [
  ],
  "num_records": 0,
  "_links": {
    "self": {
      "href": "/api/snapmirror/relationships/"
    }
  }
}&lt;/PRE&gt;
&lt;P&gt;Which version of ONTAP is this supported?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2020 21:05:51 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Snapmirror-relationship-API-call-returns-0-records/m-p/157140#M64</guid>
      <dc:creator>Atlassian</dc:creator>
      <dc:date>2020-06-22T21:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Snapmirror relationship API call retunrs 0 records</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Snapmirror-relationship-API-call-returns-0-records/m-p/157230#M65</link>
      <description>&lt;P&gt;The version you show should be supported for the async-mirror type which was the problem before. We may need more info. What is the result of calling&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;GET https://&amp;lt;mgmt_ip&amp;gt;/api/private/cli/snapmirror/list-destinations?fields=type,policy_type&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That is, does the CLI report relationships existing and what is their type?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 11:28:30 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Snapmirror-relationship-API-call-returns-0-records/m-p/157230#M65</guid>
      <dc:creator>RobertBlackhart</dc:creator>
      <dc:date>2020-06-24T11:28:30Z</dc:date>
    </item>
  </channel>
</rss>

