<?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: Snapshot Comment not returned in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Snapshot-Comment-not-returned/m-p/144995#M5952</link>
    <description>&lt;P&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/57984"&gt;@tbernhardson&lt;/a&gt; a similar query discussed how to get around with issue in the below thread, see if that hepls&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-3-0-msi-can-t-list-SnapMirrorLabels-in-Ontap-9-1/td-p/127442" target="_blank"&gt;https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-3-0-msi-can-t-list-SnapMirrorLabels-in-Ontap-9-1/td-p/127442&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Nov 2018 06:23:20 GMT</pubDate>
    <dc:creator>RajeshPanda</dc:creator>
    <dc:date>2018-11-29T06:23:20Z</dc:date>
    <item>
      <title>Snapshot Comment not returned</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Snapshot-Comment-not-returned/m-p/144915#M5951</link>
      <description>&lt;P&gt;I'm writing a script that requires 3 attributes of a snapshot: Name, Created, and Comment. The problem I'm running into is twofold.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, the Get-NcSnapshot command is not returning the Comment attribute of snapshots. According to the '-Attributes' parameter description: "If not specified, all data is returned for each object." However the Comment can only be retrieved when using the '-Attributes' parameter with an appropriate query template (e.g $query.Comment = $true). This would be fine except...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second, when trying to set the query template to retrieve the Created field (e.g. $query.Created = $true) it returns an error:&lt;/P&gt;
&lt;PRE&gt;'Created' is a ReadOnly property.
At line:1 char:1
+ $Query.Created = $true
+ ~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : PropertyAssignmentException&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can retrieve all the information I need but it requires two calls to Get-NcSnapshot. The first to retrieve the bulk of the attributes, most of which I don't need, and an additional call just for the Comment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way I can set the query template to retrieve the Created attribute? If not, can this be noted as a bug and fixed in the next release?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 13:04:49 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Snapshot-Comment-not-returned/m-p/144915#M5951</guid>
      <dc:creator>tbernhardson</dc:creator>
      <dc:date>2025-06-04T13:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Snapshot Comment not returned</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Snapshot-Comment-not-returned/m-p/144995#M5952</link>
      <description>&lt;P&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/57984"&gt;@tbernhardson&lt;/a&gt; a similar query discussed how to get around with issue in the below thread, see if that hepls&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-3-0-msi-can-t-list-SnapMirrorLabels-in-Ontap-9-1/td-p/127442" target="_blank"&gt;https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-3-0-msi-can-t-list-SnapMirrorLabels-in-Ontap-9-1/td-p/127442&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 06:23:20 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Snapshot-Comment-not-returned/m-p/144995#M5952</guid>
      <dc:creator>RajeshPanda</dc:creator>
      <dc:date>2018-11-29T06:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Snapshot Comment not returned</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Snapshot-Comment-not-returned/m-p/145012#M5953</link>
      <description>&lt;P&gt;Well, that explains why the Comment attribute isn't being returned. Unfortunately the Created attribute is still not accessible with the -Attributes parameter:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This works fine:&lt;/P&gt;
&lt;PRE&gt;Get-NcVol | Get-NcSnapshot -Attributes @{ "name" = ""; "comment" = "" }  | select-object Name,Comment&lt;/PRE&gt;
&lt;P&gt;But this:&lt;/P&gt;
&lt;PRE&gt;Get-NcVol | Get-NcSnapshot -Attributes @{ "name" = ""; "comment" = ""; "created" = "" }  | select-object Name,Comment,Created&lt;/PRE&gt;
&lt;P&gt;Returns:&lt;/P&gt;
&lt;PRE&gt;Get-NcSnapshot : Cannot bind parameter 'Attributes'. Cannot create object of type
"DataONTAP.C.Types.Snapshot.SnapshotInfo". "AccessTimeDT" is a ReadOnly property.
At line:1 char:40
+ ...  -Attributes @{ "name" = ""; "comment" = ""; "created" = "" }  | sele ...
+                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Get-NcSnapshot], ParameterBindingException
    + FullyQualifiedErrorId : CannotConvertArgumentNoMessage,DataONTAP.C.PowerShell.SDK.Cmdlets.Snapshot.GetNcSnapshot&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT: I suppose it helps to read the &lt;U&gt;entire&lt;/U&gt; thread you linked instead of just the Accepted Solution&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This works fine:&lt;/P&gt;
&lt;PRE&gt;Get-NcVol | Get-NcSnapshot -Attributes @{ "name" = ""; "comment" = ""; "accesstime" = "" }  | select-object Name,Comment,Created&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Nov 2018 17:25:17 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Snapshot-Comment-not-returned/m-p/145012#M5953</guid>
      <dc:creator>tbernhardson</dc:creator>
      <dc:date>2018-11-29T17:25:17Z</dc:date>
    </item>
  </channel>
</rss>

