<?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: Snapcenter Policy via powershell in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Snapcenter-Policy-via-powershell/m-p/154113#M2997</link>
    <description>&lt;P&gt;It looks like the property that contains the backup type is actually called "SmSqlBackupType" and not "SqlBackupType", so that could explain why that property is empty (because it doesn't exist).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What error is generated when you try to run the "Set-SmPolicy" cmdlet to try to specify the SnapVault label?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Feb 2020 18:17:47 GMT</pubDate>
    <dc:creator>donny_lang</dc:creator>
    <dc:date>2020-02-05T18:17:47Z</dc:date>
    <item>
      <title>Snapcenter Policy via powershell</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Snapcenter-Policy-via-powershell/m-p/153992#M2996</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I run this command from powershell&lt;/P&gt;
&lt;P&gt;get-smpolicy | Select-Object SnapVaultLabel, PolicyType, SqlBackupType&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My results return the SQLBackupType field as empty for all my policies.&amp;nbsp; Is that good or bad?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to modify a policy via powershell like this, but it fails.&lt;/P&gt;
&lt;P&gt;set-smpolicy -PolicyName "tier 1 daily sql full and log backup-servername" -SnapVaultLabel "scv_daily_servername"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone have an example on how I can set the -snapvaultlabel via powershell?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;-n00b-&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 11:20:29 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Snapcenter-Policy-via-powershell/m-p/153992#M2996</guid>
      <dc:creator>moonman2013</dc:creator>
      <dc:date>2025-06-04T11:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Snapcenter Policy via powershell</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Snapcenter-Policy-via-powershell/m-p/154113#M2997</link>
      <description>&lt;P&gt;It looks like the property that contains the backup type is actually called "SmSqlBackupType" and not "SqlBackupType", so that could explain why that property is empty (because it doesn't exist).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What error is generated when you try to run the "Set-SmPolicy" cmdlet to try to specify the SnapVault label?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 18:17:47 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Snapcenter-Policy-via-powershell/m-p/154113#M2997</guid>
      <dc:creator>donny_lang</dc:creator>
      <dc:date>2020-02-05T18:17:47Z</dc:date>
    </item>
  </channel>
</rss>

