<?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 Unable to get snapshots in REST api in Array Performance and Data Protection</title>
    <link>https://community.hpe.com/t5/array-performance-and-data/unable-to-get-snapshots-in-rest-api/m-p/6981909#M83</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: darkgray;"&gt;I have copied the powershell from the nimble examples. Everything is working, except snapshots. See error in the output at the bottom.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: darkgray;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: darkgray;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: darkgray;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: darkgray;"&gt;[&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: teal;"&gt;System.Net.ServicePointManager&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: darkgray;"&gt;]::&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console';"&gt;ServerCertificateValidationCallback &lt;SPAN style="color: darkgray;"&gt;=&lt;/SPAN&gt; {&lt;SPAN style="color: orangered;"&gt;$true&lt;/SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: darkgreen;"&gt;###########################&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: darkgreen;"&gt;# Get Token&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: darkgreen;"&gt;###########################&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: orangered;"&gt;$array&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console';"&gt; &lt;SPAN style="color: darkgray;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: darkred;"&gt;"10.2.25.50"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: orangered;"&gt;$username&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console';"&gt; &lt;SPAN style="color: darkgray;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: darkred;"&gt;"admin"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: orangered;"&gt;$password&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console';"&gt; &lt;SPAN style="color: darkgray;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: darkred;"&gt;"admin"&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: orangered;"&gt;$data&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console';"&gt; &lt;SPAN style="color: darkgray;"&gt;=&lt;/SPAN&gt; @{&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console';"&gt; username &lt;SPAN style="color: darkgray;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: orangered;"&gt;$username&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; password &lt;SPAN style="color: darkgray;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: orangered;"&gt;$password&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console';"&gt;} &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: orangered;"&gt;$body&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console';"&gt; &lt;SPAN style="color: darkgray;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;convertto-json&lt;/SPAN&gt; (@{ data &lt;SPAN style="color: darkgray;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: orangered;"&gt;$data&lt;/SPAN&gt; }) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: orangered;"&gt;$uri&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console';"&gt; &lt;SPAN style="color: darkgray;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: darkred;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN style="color: darkgray;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: orangered;"&gt;$array&lt;/SPAN&gt; &lt;SPAN style="color: darkgray;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: darkred;"&gt;":5392/v1/tokens"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: orangered;"&gt;$token&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console';"&gt; &lt;SPAN style="color: darkgray;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;Invoke-RestMethod&lt;/SPAN&gt; &lt;SPAN style="color: navy;"&gt;-Uri&lt;/SPAN&gt; &lt;SPAN style="color: orangered;"&gt;$uri&lt;/SPAN&gt; &lt;SPAN style="color: navy;"&gt;-Method&lt;/SPAN&gt; &lt;SPAN style="color: blueviolet;"&gt;Post&lt;/SPAN&gt; &lt;SPAN style="color: navy;"&gt;-Body&lt;/SPAN&gt; &lt;SPAN style="color: orangered;"&gt;$body&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: orangered;"&gt;$token&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console';"&gt; &lt;SPAN style="color: darkgray;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: orangered;"&gt;$token&lt;/SPAN&gt;&lt;SPAN style="color: darkgray;"&gt;.&lt;/SPAN&gt;data&lt;SPAN style="color: darkgray;"&gt;.&lt;/SPAN&gt;session_token &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: darkred;"&gt;"Testing snapshot issue"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: darkgreen;"&gt;###########################&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: darkgreen;"&gt;# Get snapshot List&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: darkgreen;"&gt;###########################&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: darkred;"&gt;"&amp;gt;&amp;gt;snapshot"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: orangered;"&gt;$header&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console';"&gt; &lt;SPAN style="color: darkgray;"&gt;=&lt;/SPAN&gt; @{ &lt;SPAN style="color: darkred;"&gt;"X-Auth-Token"&lt;/SPAN&gt; &lt;SPAN style="color: darkgray;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: orangered;"&gt;$token&lt;/SPAN&gt; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: orangered;"&gt;$uri&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console';"&gt; &lt;SPAN style="color: darkgray;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: darkred;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN style="color: darkgray;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: orangered;"&gt;$array&lt;/SPAN&gt; &lt;SPAN style="color: darkgray;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: darkred;"&gt;":5392/v1/snapshots"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: orangered;"&gt;$snapshot_list&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console';"&gt; &lt;SPAN style="color: darkgray;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;Invoke-RestMethod&lt;/SPAN&gt; &lt;SPAN style="color: navy;"&gt;-Uri&lt;/SPAN&gt; &lt;SPAN style="color: orangered;"&gt;$uri&lt;/SPAN&gt; &lt;SPAN style="color: navy;"&gt;-Method&lt;/SPAN&gt; &lt;SPAN style="color: blueviolet;"&gt;Get&lt;/SPAN&gt; &lt;SPAN style="color: navy;"&gt;-Header&lt;/SPAN&gt; &lt;SPAN style="color: orangered;"&gt;$header&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: darkblue;"&gt;foreach&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console';"&gt; (&lt;SPAN style="color: orangered;"&gt;$snapshot_id&lt;/SPAN&gt; &lt;SPAN style="color: darkblue;"&gt;in&lt;/SPAN&gt; &lt;SPAN style="color: orangered;"&gt;$snapshot_list&lt;/SPAN&gt;&lt;SPAN style="color: darkgray;"&gt;.&lt;/SPAN&gt;data&lt;SPAN style="color: darkgray;"&gt;.&lt;/SPAN&gt;id){&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console';"&gt; &lt;SPAN style="color: orangered;"&gt;$uri&lt;/SPAN&gt; &lt;SPAN style="color: darkgray;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: darkred;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN style="color: darkgray;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: orangered;"&gt;$array&lt;/SPAN&gt; &lt;SPAN style="color: darkgray;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: darkred;"&gt;":5392/v1/snapshots"&lt;/SPAN&gt; &lt;SPAN style="color: darkgray;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: orangered;"&gt;$snapshot_id&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console';"&gt; &lt;SPAN style="color: orangered;"&gt;$snapshot&lt;/SPAN&gt; &lt;SPAN style="color: darkgray;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;Invoke-RestMethod&lt;/SPAN&gt; &lt;SPAN style="color: navy;"&gt;-Uri&lt;/SPAN&gt; &lt;SPAN style="color: orangered;"&gt;$uri&lt;/SPAN&gt; &lt;SPAN style="color: navy;"&gt;-Method&lt;/SPAN&gt; &lt;SPAN style="color: blueviolet;"&gt;Get&lt;/SPAN&gt; &lt;SPAN style="color: navy;"&gt;-Header&lt;/SPAN&gt; &lt;SPAN style="color: orangered;"&gt;$header&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: darkred;"&gt;"&amp;gt;snapshot"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console';"&gt; &lt;SPAN style="color: orangered;"&gt;$snapshot&lt;/SPAN&gt;&lt;SPAN style="color: darkgray;"&gt;.&lt;/SPAN&gt;data&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console';"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;/P&gt;&lt;P style="background: #012456;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: whitesmoke;"&gt;Testing snapshot issue&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #012456;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: whitesmoke;"&gt;&amp;gt;&amp;gt;snapshot&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #012456;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: red;"&gt;Invoke-RestMethod : The remote server returned an error: (400) Bad Request.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #012456;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: red;"&gt;At C:\Nimble\nimble_api_collector.ps1:39 char:18&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #012456;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: red;"&gt;+ ... apshot_list = Invoke-RestMethod -Uri $uri -Method Get -Header $header&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #012456;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: red;"&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #012456;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: red;"&gt; + CategoryInfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #012456;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: red;"&gt; + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Apr 2017 14:50:23 GMT</pubDate>
    <dc:creator>dustinryan471711</dc:creator>
    <dc:date>2017-04-21T14:50:23Z</dc:date>
    <item>
      <title>Unable to get snapshots in REST api</title>
      <link>https://community.hpe.com/t5/array-performance-and-data/unable-to-get-snapshots-in-rest-api/m-p/6981909#M83</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: darkgray;"&gt;I have copied the powershell from the nimble examples. Everything is working, except snapshots. See error in the output at the bottom.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: darkgray;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: darkgray;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: darkgray;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: darkgray;"&gt;[&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: teal;"&gt;System.Net.ServicePointManager&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: darkgray;"&gt;]::&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console';"&gt;ServerCertificateValidationCallback &lt;SPAN style="color: darkgray;"&gt;=&lt;/SPAN&gt; {&lt;SPAN style="color: orangered;"&gt;$true&lt;/SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: darkgreen;"&gt;###########################&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: darkgreen;"&gt;# Get Token&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: darkgreen;"&gt;###########################&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: orangered;"&gt;$array&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console';"&gt; &lt;SPAN style="color: darkgray;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: darkred;"&gt;"10.2.25.50"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: orangered;"&gt;$username&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console';"&gt; &lt;SPAN style="color: darkgray;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: darkred;"&gt;"admin"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: orangered;"&gt;$password&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console';"&gt; &lt;SPAN style="color: darkgray;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: darkred;"&gt;"admin"&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: orangered;"&gt;$data&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console';"&gt; &lt;SPAN style="color: darkgray;"&gt;=&lt;/SPAN&gt; @{&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console';"&gt; username &lt;SPAN style="color: darkgray;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: orangered;"&gt;$username&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; password &lt;SPAN style="color: darkgray;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: orangered;"&gt;$password&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console';"&gt;} &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: orangered;"&gt;$body&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console';"&gt; &lt;SPAN style="color: darkgray;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;convertto-json&lt;/SPAN&gt; (@{ data &lt;SPAN style="color: darkgray;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: orangered;"&gt;$data&lt;/SPAN&gt; }) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: orangered;"&gt;$uri&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console';"&gt; &lt;SPAN style="color: darkgray;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: darkred;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN style="color: darkgray;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: orangered;"&gt;$array&lt;/SPAN&gt; &lt;SPAN style="color: darkgray;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: darkred;"&gt;":5392/v1/tokens"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: orangered;"&gt;$token&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console';"&gt; &lt;SPAN style="color: darkgray;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;Invoke-RestMethod&lt;/SPAN&gt; &lt;SPAN style="color: navy;"&gt;-Uri&lt;/SPAN&gt; &lt;SPAN style="color: orangered;"&gt;$uri&lt;/SPAN&gt; &lt;SPAN style="color: navy;"&gt;-Method&lt;/SPAN&gt; &lt;SPAN style="color: blueviolet;"&gt;Post&lt;/SPAN&gt; &lt;SPAN style="color: navy;"&gt;-Body&lt;/SPAN&gt; &lt;SPAN style="color: orangered;"&gt;$body&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: orangered;"&gt;$token&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console';"&gt; &lt;SPAN style="color: darkgray;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: orangered;"&gt;$token&lt;/SPAN&gt;&lt;SPAN style="color: darkgray;"&gt;.&lt;/SPAN&gt;data&lt;SPAN style="color: darkgray;"&gt;.&lt;/SPAN&gt;session_token &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: darkred;"&gt;"Testing snapshot issue"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: darkgreen;"&gt;###########################&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: darkgreen;"&gt;# Get snapshot List&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: darkgreen;"&gt;###########################&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: darkred;"&gt;"&amp;gt;&amp;gt;snapshot"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: orangered;"&gt;$header&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console';"&gt; &lt;SPAN style="color: darkgray;"&gt;=&lt;/SPAN&gt; @{ &lt;SPAN style="color: darkred;"&gt;"X-Auth-Token"&lt;/SPAN&gt; &lt;SPAN style="color: darkgray;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: orangered;"&gt;$token&lt;/SPAN&gt; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: orangered;"&gt;$uri&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console';"&gt; &lt;SPAN style="color: darkgray;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: darkred;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN style="color: darkgray;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: orangered;"&gt;$array&lt;/SPAN&gt; &lt;SPAN style="color: darkgray;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: darkred;"&gt;":5392/v1/snapshots"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: orangered;"&gt;$snapshot_list&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console';"&gt; &lt;SPAN style="color: darkgray;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;Invoke-RestMethod&lt;/SPAN&gt; &lt;SPAN style="color: navy;"&gt;-Uri&lt;/SPAN&gt; &lt;SPAN style="color: orangered;"&gt;$uri&lt;/SPAN&gt; &lt;SPAN style="color: navy;"&gt;-Method&lt;/SPAN&gt; &lt;SPAN style="color: blueviolet;"&gt;Get&lt;/SPAN&gt; &lt;SPAN style="color: navy;"&gt;-Header&lt;/SPAN&gt; &lt;SPAN style="color: orangered;"&gt;$header&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: darkblue;"&gt;foreach&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console';"&gt; (&lt;SPAN style="color: orangered;"&gt;$snapshot_id&lt;/SPAN&gt; &lt;SPAN style="color: darkblue;"&gt;in&lt;/SPAN&gt; &lt;SPAN style="color: orangered;"&gt;$snapshot_list&lt;/SPAN&gt;&lt;SPAN style="color: darkgray;"&gt;.&lt;/SPAN&gt;data&lt;SPAN style="color: darkgray;"&gt;.&lt;/SPAN&gt;id){&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console';"&gt; &lt;SPAN style="color: orangered;"&gt;$uri&lt;/SPAN&gt; &lt;SPAN style="color: darkgray;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: darkred;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN style="color: darkgray;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: orangered;"&gt;$array&lt;/SPAN&gt; &lt;SPAN style="color: darkgray;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: darkred;"&gt;":5392/v1/snapshots"&lt;/SPAN&gt; &lt;SPAN style="color: darkgray;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: orangered;"&gt;$snapshot_id&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console';"&gt; &lt;SPAN style="color: orangered;"&gt;$snapshot&lt;/SPAN&gt; &lt;SPAN style="color: darkgray;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;Invoke-RestMethod&lt;/SPAN&gt; &lt;SPAN style="color: navy;"&gt;-Uri&lt;/SPAN&gt; &lt;SPAN style="color: orangered;"&gt;$uri&lt;/SPAN&gt; &lt;SPAN style="color: navy;"&gt;-Method&lt;/SPAN&gt; &lt;SPAN style="color: blueviolet;"&gt;Get&lt;/SPAN&gt; &lt;SPAN style="color: navy;"&gt;-Header&lt;/SPAN&gt; &lt;SPAN style="color: orangered;"&gt;$header&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: darkred;"&gt;"&amp;gt;snapshot"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console';"&gt; &lt;SPAN style="color: orangered;"&gt;$snapshot&lt;/SPAN&gt;&lt;SPAN style="color: darkgray;"&gt;.&lt;/SPAN&gt;data&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console';"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;/P&gt;&lt;P style="background: #012456;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: whitesmoke;"&gt;Testing snapshot issue&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #012456;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: whitesmoke;"&gt;&amp;gt;&amp;gt;snapshot&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #012456;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: red;"&gt;Invoke-RestMethod : The remote server returned an error: (400) Bad Request.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #012456;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: red;"&gt;At C:\Nimble\nimble_api_collector.ps1:39 char:18&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #012456;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: red;"&gt;+ ... apshot_list = Invoke-RestMethod -Uri $uri -Method Get -Header $header&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #012456;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: red;"&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #012456;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: red;"&gt; + CategoryInfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #012456;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Lucida Console'; color: red;"&gt; + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Apr 2017 14:50:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-performance-and-data/unable-to-get-snapshots-in-rest-api/m-p/6981909#M83</guid>
      <dc:creator>dustinryan471711</dc:creator>
      <dc:date>2017-04-21T14:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get snapshots in REST api</title>
      <link>https://community.hpe.com/t5/array-performance-and-data/unable-to-get-snapshots-in-rest-api/m-p/6981910#M84</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got this to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It takes the volume and gets snapshots based on the volume, then loops through the results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Testing snapshot issue"&lt;/P&gt;&lt;P&gt;###########################&lt;/P&gt;&lt;P&gt;# Get snapshot List&lt;/P&gt;&lt;P&gt;###########################&lt;/P&gt;&lt;P&gt;"&amp;gt;&amp;gt;snapshot"&lt;/P&gt;&lt;P&gt;$header = @{ "X-Auth-Token" = $token }&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;$uri = "&lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.hpe.com/" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;" + $array + ":5392/v1/volumes/"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;$volume_list = Invoke-RestMethod -Uri $uri -Method Get -Header $header&lt;/P&gt;&lt;P&gt;foreach ($volume_id in $volume_list.data.id){&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $uri = "&lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.hpe.com/" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;" + $array + ":5392/v1/snapshots/detail?vol_id=" + $volume_id&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $snapshot_list = Invoke-RestMethod -Uri $uri -Method Get -Header $header&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreach ($snapshot_id in $snapshot_list.data.id){&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $uri = "&lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.hpe.com/" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;" + $array + ":5392/v1/snapshots/" + $snapshot_id&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $snapshot = Invoke-RestMethod -Uri $uri -Method Get -Header $header&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&amp;gt;snapshot"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $snapshot.data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Apr 2017 16:24:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-performance-and-data/unable-to-get-snapshots-in-rest-api/m-p/6981910#M84</guid>
      <dc:creator>shill119</dc:creator>
      <dc:date>2017-04-21T16:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get snapshots in REST api</title>
      <link>https://community.hpe.com/t5/array-performance-and-data/unable-to-get-snapshots-in-rest-api/m-p/6981911#M85</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like &lt;A href="https://community.hpe.com/u1/11983"&gt;Steve Hill&lt;/A&gt; beat me to the punch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The snapshots API requires you to specify the volume for which you want to retrieve the snapshots.&amp;nbsp; You cannot retrieve a list of all snapshots on the array in one fell swoop.&amp;nbsp; As Steve's code shows, the way to pull all snapshots would be to iterate through each volume and retrieve that volume's snapshots.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be fair, the examples were pulled together when the API was in beta and actually did allow for this.&amp;nbsp; It looks like perhaps they haven't been updated.&amp;nbsp; We'll get that fixed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Apr 2017 17:23:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-performance-and-data/unable-to-get-snapshots-in-rest-api/m-p/6981911#M85</guid>
      <dc:creator>jcates98</dc:creator>
      <dc:date>2017-04-21T17:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get snapshots in REST api</title>
      <link>https://community.hpe.com/t5/array-performance-and-data/unable-to-get-snapshots-in-rest-api/m-p/6981912#M86</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Julian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sent from my iPhone&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Apr 2017 18:03:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-performance-and-data/unable-to-get-snapshots-in-rest-api/m-p/6981912#M86</guid>
      <dc:creator>dustinryan471711</dc:creator>
      <dc:date>2017-04-21T18:03:46Z</dc:date>
    </item>
  </channel>
</rss>

