<?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 Configure Snapmirror via NetApp Rest API in ONTAP Rest API Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Configure-Snapmirror-via-NetApp-Rest-API/m-p/432113#M284</link>
    <description>&lt;P&gt;Dear, all&lt;BR /&gt;I have configured Snapmirror via Ontap API.&lt;BR /&gt;After that, we try to execute the Break and quiesce commands through PATCH.&lt;BR /&gt;The job was performed normally and succeeded, but when checked in Cluster Shell,&lt;BR /&gt;The state does not change to the Broken-off state.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;TEST environment :&lt;/U&gt;&lt;BR /&gt;System : Lab on demand Ontap 9.7 Version&lt;BR /&gt;Client : Lab on deamnd Linux(rhel) 7.7 Version&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&amp;lt;Snapmirror break&amp;gt;&lt;/U&gt;&lt;BR /&gt;[root@rhel1 /]# curl -siku admin:Netapp1! -X PATCH "&lt;A href="https://192.168.0.113/api/snapmirror/relationships/2dcea3bf-8af0-11ec-a746-005056b7e780" target="_blank"&gt;https://192.168.0.113/api/snapmirror/relationships/2dcea3bf-8af0-11ec-a746-005056b7e780&lt;/A&gt;" '{"state":"broken_off"}' -H "accept: application/hal+json"&lt;BR /&gt;HTTP/1.1 202 Accepted&lt;BR /&gt;Date: Sun, 13 Feb 2022 13:06:45 GMT&lt;BR /&gt;Server: libzapid-httpd&lt;BR /&gt;X-Content-Type-Options: nosniff&lt;BR /&gt;Cache-Control: no-cache,no-store,must-revalidate&lt;BR /&gt;Content-Length: 189&lt;BR /&gt;Content-Type: application/hal+json&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"job": {&lt;BR /&gt;"uuid": "&lt;STRONG&gt;cbdec1f4-8ccd-11ec-a746-005056b7e780&lt;/STRONG&gt;",&amp;nbsp; &amp;nbsp;//job uuid create&lt;BR /&gt;"_links": {&lt;BR /&gt;"self": {&lt;BR /&gt;"href": "/api/cluster/jobs/cbdec1f4-8ccd-11ec-a746-005056b7e780"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;U&gt;&amp;lt;Snapmirror status&amp;gt;&lt;/U&gt;&lt;BR /&gt;cluster2::*&amp;gt; snapmirror show&lt;BR /&gt;Progress&lt;BR /&gt;Source Destination Mirror Relationship Total Last&lt;BR /&gt;Path Type Path State Status Progress Healthy Updated&lt;BR /&gt;----------- ---- ------------ ------- -------------- --------- ------- --------&lt;BR /&gt;svm1:vol1 XDP svm2:drvol1 &lt;STRONG&gt;Snapmirrored&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// State : Snapmirored&lt;BR /&gt;Idle - true -&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&amp;lt;Job Status&amp;gt;&lt;/U&gt;&lt;BR /&gt;[root@rhel1 /]# curl -siku admin:Netapp1! -X GET "&lt;A href="https://192.168.0.113/api/cluster/jobs/cbdec1f4-8ccd-11ec-a746-005056b7e780" target="_blank"&gt;https://192.168.0.113/api/cluster/jobs/cbdec1f4-8ccd-11ec-a746-005056b7e780&lt;/A&gt;" -H "accept: application/hal+json"&lt;BR /&gt;HTTP/1.1 200 OK&lt;BR /&gt;Date: Sun, 13 Feb 2022 13:09:39 GMT&lt;BR /&gt;Server: libzapid-httpd&lt;BR /&gt;X-Content-Type-Options: nosniff&lt;BR /&gt;Cache-Control: no-cache,no-store,must-revalidate&lt;BR /&gt;Content-Length: 402&lt;BR /&gt;Content-Type: application/hal+json&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"uuid": "cbdec1f4-8ccd-11ec-a746-005056b7e780",&lt;BR /&gt;"description": "PATCH /api/snapmirror/relationships/2dcea3bf-8af0-11ec-a746-005056b7e780",&lt;BR /&gt;"state": "&lt;STRONG&gt;success&lt;/STRONG&gt;",&lt;BR /&gt;"message": "&lt;STRONG&gt;success&lt;/STRONG&gt;",&lt;BR /&gt;"code": 0,&lt;BR /&gt;"start_time": "2022-02-13T13:06:45+00:00",&lt;BR /&gt;"end_time": "2022-02-13T13:06:45+00:00",&lt;BR /&gt;"_links": {&lt;BR /&gt;"self": {&lt;BR /&gt;"href": "/api/cluster/jobs/cbdec1f4-8ccd-11ec-a746-005056b7e780"&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As above, the JOB succeeds, but does not change to Broken-off state.&lt;BR /&gt;Are there any resources that can help?&lt;BR /&gt;Also, please tell me how to check &lt;U&gt;Transfer.uuid&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;BR /&gt;have a good day.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 10:04:42 GMT</pubDate>
    <dc:creator>hojun</dc:creator>
    <dc:date>2025-06-04T10:04:42Z</dc:date>
    <item>
      <title>Configure Snapmirror via NetApp Rest API</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Configure-Snapmirror-via-NetApp-Rest-API/m-p/432113#M284</link>
      <description>&lt;P&gt;Dear, all&lt;BR /&gt;I have configured Snapmirror via Ontap API.&lt;BR /&gt;After that, we try to execute the Break and quiesce commands through PATCH.&lt;BR /&gt;The job was performed normally and succeeded, but when checked in Cluster Shell,&lt;BR /&gt;The state does not change to the Broken-off state.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;TEST environment :&lt;/U&gt;&lt;BR /&gt;System : Lab on demand Ontap 9.7 Version&lt;BR /&gt;Client : Lab on deamnd Linux(rhel) 7.7 Version&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&amp;lt;Snapmirror break&amp;gt;&lt;/U&gt;&lt;BR /&gt;[root@rhel1 /]# curl -siku admin:Netapp1! -X PATCH "&lt;A href="https://192.168.0.113/api/snapmirror/relationships/2dcea3bf-8af0-11ec-a746-005056b7e780" target="_blank"&gt;https://192.168.0.113/api/snapmirror/relationships/2dcea3bf-8af0-11ec-a746-005056b7e780&lt;/A&gt;" '{"state":"broken_off"}' -H "accept: application/hal+json"&lt;BR /&gt;HTTP/1.1 202 Accepted&lt;BR /&gt;Date: Sun, 13 Feb 2022 13:06:45 GMT&lt;BR /&gt;Server: libzapid-httpd&lt;BR /&gt;X-Content-Type-Options: nosniff&lt;BR /&gt;Cache-Control: no-cache,no-store,must-revalidate&lt;BR /&gt;Content-Length: 189&lt;BR /&gt;Content-Type: application/hal+json&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"job": {&lt;BR /&gt;"uuid": "&lt;STRONG&gt;cbdec1f4-8ccd-11ec-a746-005056b7e780&lt;/STRONG&gt;",&amp;nbsp; &amp;nbsp;//job uuid create&lt;BR /&gt;"_links": {&lt;BR /&gt;"self": {&lt;BR /&gt;"href": "/api/cluster/jobs/cbdec1f4-8ccd-11ec-a746-005056b7e780"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;U&gt;&amp;lt;Snapmirror status&amp;gt;&lt;/U&gt;&lt;BR /&gt;cluster2::*&amp;gt; snapmirror show&lt;BR /&gt;Progress&lt;BR /&gt;Source Destination Mirror Relationship Total Last&lt;BR /&gt;Path Type Path State Status Progress Healthy Updated&lt;BR /&gt;----------- ---- ------------ ------- -------------- --------- ------- --------&lt;BR /&gt;svm1:vol1 XDP svm2:drvol1 &lt;STRONG&gt;Snapmirrored&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// State : Snapmirored&lt;BR /&gt;Idle - true -&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&amp;lt;Job Status&amp;gt;&lt;/U&gt;&lt;BR /&gt;[root@rhel1 /]# curl -siku admin:Netapp1! -X GET "&lt;A href="https://192.168.0.113/api/cluster/jobs/cbdec1f4-8ccd-11ec-a746-005056b7e780" target="_blank"&gt;https://192.168.0.113/api/cluster/jobs/cbdec1f4-8ccd-11ec-a746-005056b7e780&lt;/A&gt;" -H "accept: application/hal+json"&lt;BR /&gt;HTTP/1.1 200 OK&lt;BR /&gt;Date: Sun, 13 Feb 2022 13:09:39 GMT&lt;BR /&gt;Server: libzapid-httpd&lt;BR /&gt;X-Content-Type-Options: nosniff&lt;BR /&gt;Cache-Control: no-cache,no-store,must-revalidate&lt;BR /&gt;Content-Length: 402&lt;BR /&gt;Content-Type: application/hal+json&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"uuid": "cbdec1f4-8ccd-11ec-a746-005056b7e780",&lt;BR /&gt;"description": "PATCH /api/snapmirror/relationships/2dcea3bf-8af0-11ec-a746-005056b7e780",&lt;BR /&gt;"state": "&lt;STRONG&gt;success&lt;/STRONG&gt;",&lt;BR /&gt;"message": "&lt;STRONG&gt;success&lt;/STRONG&gt;",&lt;BR /&gt;"code": 0,&lt;BR /&gt;"start_time": "2022-02-13T13:06:45+00:00",&lt;BR /&gt;"end_time": "2022-02-13T13:06:45+00:00",&lt;BR /&gt;"_links": {&lt;BR /&gt;"self": {&lt;BR /&gt;"href": "/api/cluster/jobs/cbdec1f4-8ccd-11ec-a746-005056b7e780"&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As above, the JOB succeeds, but does not change to Broken-off state.&lt;BR /&gt;Are there any resources that can help?&lt;BR /&gt;Also, please tell me how to check &lt;U&gt;Transfer.uuid&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;BR /&gt;have a good day.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 10:04:42 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Configure-Snapmirror-via-NetApp-Rest-API/m-p/432113#M284</guid>
      <dc:creator>hojun</dc:creator>
      <dc:date>2025-06-04T10:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Configure Snapmirror via NetApp Rest API</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Configure-Snapmirror-via-NetApp-Rest-API/m-p/432114#M285</link>
      <description>&lt;P&gt;ONTAP 9.8 added a ?force=true option to the PATCH API when setting the state to broken_off. The documentation says this is to bypass any validation errors that might occur. However, I would have expected to see something in the job status if there were problems. Is your current test system the only one where the issue occurs? Are you able to upgrade it to a later version of ONTAP and if so, does the problem still occur? If this isn't an option for you, then you may want to contact support with a ticket and have them examine your logs or other system state to see why there is no error but the state isn't changing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Checking the transfer status would be done using the /api/snapmirror/relatinoships/{relationship.uuid}/transfers endpoint. This would show any ongoing transfers as well as those that have completed within the last 24 hours.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Feb 2022 15:15:19 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Configure-Snapmirror-via-NetApp-Rest-API/m-p/432114#M285</guid>
      <dc:creator>RobertBlackhart</dc:creator>
      <dc:date>2022-02-13T15:15:19Z</dc:date>
    </item>
  </channel>
</rss>

