<?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: Modifying Volume Tiering Policy With Update-NcVol Failing in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Modifying-Volume-Tiering-Policy-With-Update-NcVol-Failing/m-p/437290#M3214</link>
    <description>&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's odd, the code worked fine when testing it in my lab.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;$Credential = Get-Credential -Credential admin
Connect-NcController -Name cluster1.testlab.local -HTTPS -Credential $Credential

$q = Get-NcVol -Template

Initialize-NcObjectProperty $q VolumeIdAttributes
$q.VolumeIdAttributes.Name = "cifs_data_001"
$q.VolumeIdAttributes.OwningVserverName = "vserver1"

$a = Get-NcVol -Template

Initialize-NcObjectProperty $a VolumeCompAggrAttributes
$a.VolumeCompAggrAttributes.TieringPolicy = "all"
Update-NcVol -Query $q -Attributes $a

Output:
Name                 Address           Vserver              Version                                                                                                                                                  
----                 -------           -------              -------                                                                                                                                                  
cluster1.testlab.... 192.168.100.2                          NetApp Release 9.10.1: Sat Jan 15 10:49:44 UTC 2022                                                                                                      

NcController : cluster1.testlab.local
SuccessCount : 1
FailureCount : 0
SuccessList  : {cifs_data_001}
FailureList  : {}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you tried the same operation using the REST API? Assuming it works fine using the CLI?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Matt&lt;/P&gt;</description>
    <pubDate>Fri, 12 Aug 2022 04:21:52 GMT</pubDate>
    <dc:creator>mbeattie</dc:creator>
    <dc:date>2022-08-12T04:21:52Z</dc:date>
    <item>
      <title>Modifying Volume Tiering Policy With Update-NcVol Failing</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Modifying-Volume-Tiering-Policy-With-Update-NcVol-Failing/m-p/437257#M3213</link>
      <description>&lt;P&gt;I've seen a few posts regarding the 'Update-NcVol' cmdlet and how it can be problematic. I've also attempted the multiple syntaxes that I've come across, however each attempt has resulted in failing to update the object.&amp;nbsp; I'm hoping someone might be able review the following snippet and let me know if there are any potential issues with it or another way to update the tiering policy (short of using&amp;nbsp; Invoke-SSH).&amp;nbsp; This syntax was taken directly from the Get-Help page for the cmdlet. Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Environment:&lt;/P&gt;&lt;P&gt;PSVersion: 5.1.14393.5127&lt;/P&gt;&lt;P&gt;CLRVersion: 4.0.30319.42000&lt;/P&gt;&lt;P&gt;DataonTap Version : 9.10.1.2111&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;$q = Get-NcVol -Template

Initialize-NcObjectProperty $q VolumeIdAttributes
$q.VolumeIdAttributes.Name = "vol1"
$q.VolumeIdAttributes.OwningVserverName = "svm_0"

$a = Get-NcVol -Template

Initialize-NcObjectProperty $a VolumeCompAggrAttributes
$a.VolumeCompAggrAttributes.TieringPolicy = "all"
Update-NcVol -Query $q -Attributes $a&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SuccessCount : 0
FailureCount : 1
SuccessList  : {}
FailureList  : {vol1}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 09:57:54 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Modifying-Volume-Tiering-Policy-With-Update-NcVol-Failing/m-p/437257#M3213</guid>
      <dc:creator>danflashes</dc:creator>
      <dc:date>2025-06-04T09:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying Volume Tiering Policy With Update-NcVol Failing</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Modifying-Volume-Tiering-Policy-With-Update-NcVol-Failing/m-p/437290#M3214</link>
      <description>&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's odd, the code worked fine when testing it in my lab.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;$Credential = Get-Credential -Credential admin
Connect-NcController -Name cluster1.testlab.local -HTTPS -Credential $Credential

$q = Get-NcVol -Template

Initialize-NcObjectProperty $q VolumeIdAttributes
$q.VolumeIdAttributes.Name = "cifs_data_001"
$q.VolumeIdAttributes.OwningVserverName = "vserver1"

$a = Get-NcVol -Template

Initialize-NcObjectProperty $a VolumeCompAggrAttributes
$a.VolumeCompAggrAttributes.TieringPolicy = "all"
Update-NcVol -Query $q -Attributes $a

Output:
Name                 Address           Vserver              Version                                                                                                                                                  
----                 -------           -------              -------                                                                                                                                                  
cluster1.testlab.... 192.168.100.2                          NetApp Release 9.10.1: Sat Jan 15 10:49:44 UTC 2022                                                                                                      

NcController : cluster1.testlab.local
SuccessCount : 1
FailureCount : 0
SuccessList  : {cifs_data_001}
FailureList  : {}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you tried the same operation using the REST API? Assuming it works fine using the CLI?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Matt&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 04:21:52 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Modifying-Volume-Tiering-Policy-With-Update-NcVol-Failing/m-p/437290#M3214</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2022-08-12T04:21:52Z</dc:date>
    </item>
  </channel>
</rss>

