<?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: REST interface for data source job status in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/REST-interface-for-data-source-job-status/m-p/138301#M25140</link>
    <description>&lt;P&gt;Thanks everyone for the quick response to my question!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I admit, I did look at &lt;STRONG&gt;https://&amp;lt;%wfa_server%&amp;gt;/rest/data_sources/type/&amp;lt;%uuid%&amp;gt;/jobs&lt;/STRONG&gt;, but for whatever reason, I failed to see the status field in the XML output. Thanks to &lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/2305"&gt;@mbeattie&lt;/a&gt; for confirming that error messages are displayed too, which speeds troubleshooting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also took advice from &lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/11783"&gt;@marz&lt;/a&gt; and also populated the email notification field for a user, which is the quickest way to get alerts for now, until I make use of the status URL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again everyone!&lt;/P&gt;</description>
    <pubDate>Wed, 21 Feb 2018 12:31:09 GMT</pubDate>
    <dc:creator>jauling_chou</dc:creator>
    <dc:date>2018-02-21T12:31:09Z</dc:date>
    <item>
      <title>REST interface for data source job status</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/REST-interface-for-data-source-job-status/m-p/138256#M25127</link>
      <description>&lt;P&gt;We rely heavily on WFA and OCUM to manage our NetApp storage, from reporting to simple operational tasks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Our WFA 4.1 Windows instance has a data source job that routinely pulls storage data from OCUM. This is pretty normal I think?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We rely heavily on this data source job, and we need to be sure it runs properly. I was wondering if anyone knew of a way to use REST to pull the data source job status from WFA? I know I can go to this URL, and it gets me a list of data sources that I've defined:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://WFA_SERVER_NAME/rest/data_sources/" target="_blank"&gt;https://WFA_SERVER_NAME/rest/data_sources/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an example of the OCUM data source from that URL:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;dataSource name="OCUM71RC1_PROD" schema="cm_storage"&amp;gt;
   &amp;lt;type&amp;gt;OnCommand Unified Manager - 7.0,7.1 (MYSQL)&amp;lt;/type&amp;gt;
   &amp;lt;ip&amp;gt;OCUM_SERVER_NAME&amp;lt;/ip&amp;gt;
   &amp;lt;port&amp;gt;3306&amp;lt;/port&amp;gt;
   &amp;lt;interval&amp;gt;5&amp;lt;/interval&amp;gt;
   &amp;lt;atom:link rel="acquire" href="https://WFA_SERVER_NAME/rest/data_sources/OCUM71RC1_PROD/cm_storage/jobs"/&amp;gt;
   &amp;lt;atom:link rel="remove-data-source" href="https://WFA_SERVER_NAME/rest/data_sources/OCUM71RC1_PROD"/&amp;gt;
   &amp;lt;atom:link rel="edit-data-source" href="https://WFA_SERVER_NAME/rest/data_sources/OCUM71RC1_PROD"/&amp;gt;
   &amp;lt;atom:link rel="self" href="https://WFA_SERVER_NAME/rest/data_sources/OCUM71RC1_PROD/cm_storage"/&amp;gt;
   &amp;lt;atom:link rel="last_acquisition_jobs_by_type" href="https://WFA_SERVER_NAME/rest/data_sources/type/UID/jobs"/&amp;gt;
   &amp;lt;atom:link rel="data-source-type" href="https://WFA_SERVER_NAME/rest/data_source_types/UID"/&amp;gt;
   &amp;lt;atom:link rel="list" href="https://WFA_SERVER_NAME/rest/data_sources"/&amp;gt;
   &amp;lt;atom:link rel="acquire-data-source-by-name" href="https://WFA_SERVER_NAME/rest/data_sources/OCUM71RC1_PROD/jobs"/&amp;gt;
&amp;lt;/dataSource&amp;gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've obsfuscated some of the data above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I took my browser and went through each of these hrefs, but couldn't find anything relavent to the data source job status. Does anyone know if this is exposed elsewhere?&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 14:00:47 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/REST-interface-for-data-source-job-status/m-p/138256#M25127</guid>
      <dc:creator>jauling_chou</dc:creator>
      <dc:date>2025-06-04T14:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: REST interface for data source job status</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/REST-interface-for-data-source-job-status/m-p/138259#M25128</link>
      <description>&lt;P&gt;Unknown for the REST query, but you may configure a user (Administration &amp;gt; Users, right-click on the user and Edit or click to highlight and click the Pencil to edit) and set the Notify on: "Acquisition failure" checkbox.&amp;nbsp; WFA will send that user an email if&amp;nbsp;acquisition fails.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2018 20:32:07 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/REST-interface-for-data-source-job-status/m-p/138259#M25128</guid>
      <dc:creator>marz</dc:creator>
      <dc:date>2018-02-20T20:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: REST interface for data source job status</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/REST-interface-for-data-source-job-status/m-p/138272#M25131</link>
      <description>&lt;P&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/2573"&gt;@jauling_chou&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you browse to the https://&lt;EM&gt;servername&lt;/EM&gt;/rest/docs you get a pretty good dynamic layout of the REST information that is available in your current version. I believe you may be able to get what you are interested in through the:&lt;!-- Always force latest IE rendering engine (even in intranet) &amp; Chrome Frame
       Remove this if you use the .htaccess --&gt;&lt;!-- Mobile viewport optimized: j.mp/bplateviewport --&gt;&lt;!-- CSS: implied media="all" --&gt;&lt;!-- All JavaScript at the bottom, except for Modernizr which enables HTML5 elements &amp; feature detects --&gt;&lt;/P&gt;
&lt;DIV class="container"&gt;
&lt;DIV id="main" class="column first last span-20"&gt;
&lt;H1&gt;/data_sources/{name}/{schema}/jobs/{job_id}&lt;/H1&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this will return an aquisitionJob element which contains parameters for start time, duration and status among other things. You will of course need to programatically determine the job_id you are after but that information is all attainable.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
-Nick&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 20 Feb 2018 21:58:38 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/REST-interface-for-data-source-job-status/m-p/138272#M25131</guid>
      <dc:creator>NICKBARTON</dc:creator>
      <dc:date>2018-02-20T21:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: REST interface for data source job status</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/REST-interface-for-data-source-job-status/m-p/138274#M25132</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes you can query the job status of a data source using the REST API.&lt;/P&gt;
&lt;P&gt;Check the Swagger interfact for browsing the WFA REST API's using your browser:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;https://&amp;lt;%wfa_server%&amp;gt;/rest/docs/&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You first need to find the UUID of the datasource using:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;https://&amp;lt;%wfa_server%&amp;gt;/rest/data_sources&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;find the datasource by name then get the UUID and pass that into the following URI.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;https://&amp;lt;%wfa_server%&amp;gt;/rest/data_sources/type/&amp;lt;%uuid%&amp;gt;/jobs&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you click the "Try it out" button you can view the aquisition job and status for that datasource.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://community.netapp.com/t5/image/serverpage/image-id/8121i0020D371B8676272/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="wfa_datasource_rest.png" title="wfa_datasource_rest.png" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EG for my environment the URI is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://wfa.testlab.local/rest/data_sources/type/d3483508-8a4a-42c3-aa78-112b317f2edf/jobs" target="_blank"&gt;https://wfa.testlab.local/rest/data_sources/type/d3483508-8a4a-42c3-aa78-112b317f2edf/jobs&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The REST output is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&amp;gt;
&amp;lt;collection xmlns:atom="http://www.w3.org/2005/Atom"&amp;gt;
  &amp;lt;acquisitionJob jobId="29740"&amp;gt;
    &amp;lt;jobStatus&amp;gt;
      &amp;lt;plannedExecution&amp;gt;21/02/2018 9:05:07 AM&amp;lt;/plannedExecution&amp;gt;
      &amp;lt;startTime&amp;gt;21/02/2018 9:05:10 AM&amp;lt;/startTime&amp;gt;
      &amp;lt;duration&amp;gt;6&amp;lt;/duration&amp;gt;
      &amp;lt;scheduleType&amp;gt;Recurring&amp;lt;/scheduleType&amp;gt;
      &amp;lt;status&amp;gt;&lt;U&gt;&lt;STRONG&gt;COMPLETED&lt;/STRONG&gt;&lt;/U&gt;&amp;lt;/status&amp;gt;
    &amp;lt;/jobStatus&amp;gt;
    &amp;lt;dataSource name="OCUM" schema="cm_storage"&amp;gt;
      &amp;lt;type&amp;gt;OnCommand Unified Manager - 7.0,7.1 (MYSQL)&amp;lt;/type&amp;gt;
      &amp;lt;ip&amp;gt;testoc71.testlab.local&amp;lt;/ip&amp;gt;
      &amp;lt;port&amp;gt;3306&amp;lt;/port&amp;gt;
      &amp;lt;interval&amp;gt;30&amp;lt;/interval&amp;gt;
      &amp;lt;atom:link rel="acquire" href="https://wfa.testlab.local/rest/data_sources/OCUM/cm_storage/jobs"/&amp;gt;
      &amp;lt;atom:link rel="remove-data-source" href="https://wfa.testlab.local/rest/data_sources/OCUM"/&amp;gt;
      &amp;lt;atom:link rel="edit-data-source" href="https://wfa.testlab.local/rest/data_sources/OCUM"/&amp;gt;
      &amp;lt;atom:link rel="self" href="https://wfa.testlab.local/rest/data_sources/OCUM/cm_storage"/&amp;gt;
      &amp;lt;atom:link rel="last_acquisition_jobs_by_type" href="https://wfa.testlab.local/rest/data_sources/type/d3483508-8a4a-42c3-aa78-112b317f2edf/jobs"/&amp;gt;
      &amp;lt;atom:link rel="data-source-type" href="https://wfa.testlab.local/rest/data_source_types/d3483508-8a4a-42c3-aa78-112b317f2edf"/&amp;gt;
      &amp;lt;atom:link rel="list" href="https://wfa.testlab.local/rest/data_sources"/&amp;gt;
      &amp;lt;atom:link rel="acquire-data-source-by-name" href="https://wfa.testlab.local/rest/data_sources/OCUM/jobs"/&amp;gt;
    &amp;lt;/dataSource&amp;gt;
    &amp;lt;atom:link rel="acquisition-job-by-name" href="https://wfa.testlab.local/rest/data_sources/OCUM/jobs/29740"/&amp;gt;
    &amp;lt;atom:link rel="self" href="https://wfa.testlab.local/rest/data_sources/OCUM/cm_storage/jobs/29740"/&amp;gt;
  &amp;lt;/acquisitionJob&amp;gt;
&amp;lt;/collection&amp;gt;&lt;/PRE&gt;
&lt;P&gt;You could write a script or workflow (on a scheuduled basis) that alerts you if the datastore acquisition status is not 'completed'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/Matt&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2018 22:37:10 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/REST-interface-for-data-source-job-status/m-p/138274#M25132</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2018-02-20T22:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: REST interface for data source job status</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/REST-interface-for-data-source-job-status/m-p/138301#M25140</link>
      <description>&lt;P&gt;Thanks everyone for the quick response to my question!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I admit, I did look at &lt;STRONG&gt;https://&amp;lt;%wfa_server%&amp;gt;/rest/data_sources/type/&amp;lt;%uuid%&amp;gt;/jobs&lt;/STRONG&gt;, but for whatever reason, I failed to see the status field in the XML output. Thanks to &lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/2305"&gt;@mbeattie&lt;/a&gt; for confirming that error messages are displayed too, which speeds troubleshooting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also took advice from &lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/11783"&gt;@marz&lt;/a&gt; and also populated the email notification field for a user, which is the quickest way to get alerts for now, until I make use of the status URL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again everyone!&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 12:31:09 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/REST-interface-for-data-source-job-status/m-p/138301#M25140</guid>
      <dc:creator>jauling_chou</dc:creator>
      <dc:date>2018-02-21T12:31:09Z</dc:date>
    </item>
  </channel>
</rss>

