<?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 Set-NcSecurityConfig for restricting protocol versions in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Set-NcSecurityConfig-for-restricting-protocol-versions/m-p/148562#M6008</link>
    <description>&lt;P&gt;Team,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A customer want's to automate the internal security hardening process. He works with the PowerShell Cmdlet "Set-NcSecurityConfig", but it allways throws an error, when limitting the allowed protocols. I have veryfied it internally with different versions of PowerShell and ONTAP:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Z:\&amp;gt; Set-NcSecurityConfig -Interface ssl -SupportedProtocols tlsv1_2
Set-NcSecurityConfig : Unexpected array element: security-supported-protocols
At line:1 char:1
+ Set-NcSecurityConfig -Interface ssl -SupportedProtocols tlsv1_2
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (xxx.xxx.xxx.xxx.com:NcController) [Set-NcSecurityConfig], EINVALIDINPUTERROR
    + FullyQualifiedErrorId : ApiException,DataONTAP.C.PowerShell.SDK.Cmdlets.Security.SetNcSecurityConfig&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I assume, a wrong attribute name is sent here ("security-supported-protocls" instead of "supported-protocols"). The ZAPI call works:&lt;/P&gt;
&lt;PRE&gt;  &amp;lt;security-config-modify&amp;gt;
    &amp;lt;interface&amp;gt;ssl&amp;lt;/interface&amp;gt;
    &amp;lt;supported-protocols&amp;gt;
        &amp;lt;string&amp;gt;TLSv1.2&amp;lt;/string&amp;gt;
    &amp;lt;/supported-protocols&amp;gt;
  &amp;lt;/security-config-modify&amp;gt;&lt;/PRE&gt;
&lt;P&gt;Also, submitting it via "Invoke-NcSystemApi" works without any problem:&lt;/P&gt;
&lt;PRE&gt;PS Z:&amp;gt; $xml = Invoke-NcSystemApi "&amp;lt;security-config-modify&amp;gt;&amp;lt;interface&amp;gt;ssl&amp;lt;/interface&amp;gt;&amp;lt;supported-protocols&amp;gt;&amp;lt;string&amp;gt;TLSv1.2&amp;lt;/string&amp;gt;&amp;lt;/supported-protocols&amp;gt;&amp;lt;/security-config-modify&amp;gt;"
PS Z:&amp;gt; $xml.results

status
------
passed&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe anybody can provide a simple fix &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Adrian&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 12:31:12 GMT</pubDate>
    <dc:creator>badrian</dc:creator>
    <dc:date>2025-06-04T12:31:12Z</dc:date>
    <item>
      <title>Set-NcSecurityConfig for restricting protocol versions</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Set-NcSecurityConfig-for-restricting-protocol-versions/m-p/148562#M6008</link>
      <description>&lt;P&gt;Team,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A customer want's to automate the internal security hardening process. He works with the PowerShell Cmdlet "Set-NcSecurityConfig", but it allways throws an error, when limitting the allowed protocols. I have veryfied it internally with different versions of PowerShell and ONTAP:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Z:\&amp;gt; Set-NcSecurityConfig -Interface ssl -SupportedProtocols tlsv1_2
Set-NcSecurityConfig : Unexpected array element: security-supported-protocols
At line:1 char:1
+ Set-NcSecurityConfig -Interface ssl -SupportedProtocols tlsv1_2
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (xxx.xxx.xxx.xxx.com:NcController) [Set-NcSecurityConfig], EINVALIDINPUTERROR
    + FullyQualifiedErrorId : ApiException,DataONTAP.C.PowerShell.SDK.Cmdlets.Security.SetNcSecurityConfig&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I assume, a wrong attribute name is sent here ("security-supported-protocls" instead of "supported-protocols"). The ZAPI call works:&lt;/P&gt;
&lt;PRE&gt;  &amp;lt;security-config-modify&amp;gt;
    &amp;lt;interface&amp;gt;ssl&amp;lt;/interface&amp;gt;
    &amp;lt;supported-protocols&amp;gt;
        &amp;lt;string&amp;gt;TLSv1.2&amp;lt;/string&amp;gt;
    &amp;lt;/supported-protocols&amp;gt;
  &amp;lt;/security-config-modify&amp;gt;&lt;/PRE&gt;
&lt;P&gt;Also, submitting it via "Invoke-NcSystemApi" works without any problem:&lt;/P&gt;
&lt;PRE&gt;PS Z:&amp;gt; $xml = Invoke-NcSystemApi "&amp;lt;security-config-modify&amp;gt;&amp;lt;interface&amp;gt;ssl&amp;lt;/interface&amp;gt;&amp;lt;supported-protocols&amp;gt;&amp;lt;string&amp;gt;TLSv1.2&amp;lt;/string&amp;gt;&amp;lt;/supported-protocols&amp;gt;&amp;lt;/security-config-modify&amp;gt;"
PS Z:&amp;gt; $xml.results

status
------
passed&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe anybody can provide a simple fix &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Adrian&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 12:31:12 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Set-NcSecurityConfig-for-restricting-protocol-versions/m-p/148562#M6008</guid>
      <dc:creator>badrian</dc:creator>
      <dc:date>2025-06-04T12:31:12Z</dc:date>
    </item>
  </channel>
</rss>

