<?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: set adv with na_ontap_rest_cli in ONTAP Rest API Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/set-adv-with-na-ontap-rest-cli/m-p/449408#M632</link>
    <description>&lt;P&gt;Thanks &lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/37407"&gt;@JohnChampion&lt;/a&gt;&amp;nbsp;! Good to know that the module will auto-handle the privilege issue.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Dec 2023 23:12:56 GMT</pubDate>
    <dc:creator>SCL</dc:creator>
    <dc:date>2023-12-01T23:12:56Z</dc:date>
    <item>
      <title>set adv with na_ontap_rest_cli</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/set-adv-with-na-ontap-rest-cli/m-p/449363#M626</link>
      <description>&lt;P&gt;Hi -- I am wondering how to convert this functioning Ansible snippet into the REST version? TIA!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;- name: run vserver cifs options modify is-netbios-over-tcp-enabled false
  na_ontap_command:
    command:
      - set adv;
      - vserver cifs options modify -vserver {{ item.name }} -is-netbios-over-tcp-enabled false
    return_dict: yes
    &amp;lt;&amp;lt;: *login
  with_items:
    - "{{ svm }}"
  register: command_result
  tags: [command,cifs-security]&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 04 Jun 2025 09:43:19 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/set-adv-with-na-ontap-rest-cli/m-p/449363#M626</guid>
      <dc:creator>SCL</dc:creator>
      <dc:date>2025-06-04T09:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: set adv with na_ontap_rest_cli</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/set-adv-with-na-ontap-rest-cli/m-p/449401#M630</link>
      <description>&lt;P&gt;This seems to work ... it will always show as 'changed' since there's no idempotence but that shouldn't be a problem.&amp;nbsp; The module handles the advanced privilege setting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I assume you meant this module (na_ontap_rest_cli) and not a straight REST CLI call you'd make from code. If you did mean from code then you'd use the /private/cli API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; gather_facts: no

  collections:
  - netapp.ontap

  module_defaults:
    group/netapp.ontap.netapp_ontap:
      hostname: xxx.xxx.xxx.xxx
      username: admin
      password: Netapp1!
      https: true
      validate_certs: false

  vars:
    svm:
      - { name: "svmCifsData" }

  tasks:

  - name: REST CLI

    netapp.ontap.na_ontap_rest_cli:

      command: 'vserver/cifs/options'
      verb: 'PATCH'
      params:
        vserver: "{{ item.name }}"
      body: {'is-netbios-over-tcp-enabled': false}

    with_items: "{{ svm }}"

    loop_control:
      label: "{{ item.name }}"

    register: result

    tags: [command,cifs-security]

  - debug:
      var: result&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 18:34:02 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/set-adv-with-na-ontap-rest-cli/m-p/449401#M630</guid>
      <dc:creator>JohnChampion</dc:creator>
      <dc:date>2023-12-01T18:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: set adv with na_ontap_rest_cli</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/set-adv-with-na-ontap-rest-cli/m-p/449408#M632</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/37407"&gt;@JohnChampion&lt;/a&gt;&amp;nbsp;! Good to know that the module will auto-handle the privilege issue.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 23:12:56 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/set-adv-with-na-ontap-rest-cli/m-p/449408#M632</guid>
      <dc:creator>SCL</dc:creator>
      <dc:date>2023-12-01T23:12:56Z</dc:date>
    </item>
  </channel>
</rss>

