<?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: how to use multiple key-value pairs in body of na_ontap_rest_api? in ONTAP Rest API Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/how-to-use-multiple-key-value-pairs-in-body-of-na-ontap-rest-api/m-p/449411#M633</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/37407"&gt;@JohnChampion&lt;/a&gt;&amp;nbsp;-- a comma-separated list worked but we cleaned it up a bit by doing this (different bloc snippet)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    params: { 'vserver': "{{ item.name }}" }
    body:
      advertised-enc-types: ['aes-128','aes-256']
      aes-enabled-for-netlogon-channel: true
      is-signing-required: true
      lm-compatibility-level: ntlmv2-krb
      session-security-for-ad-ldap: seal&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 01 Dec 2023 23:15:44 GMT</pubDate>
    <dc:creator>SCL</dc:creator>
    <dc:date>2023-12-01T23:15:44Z</dc:date>
    <item>
      <title>how to use multiple key-value pairs in body of na_ontap_rest_api?</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/how-to-use-multiple-key-value-pairs-in-body-of-na-ontap-rest-api/m-p/449364#M627</link>
      <description>&lt;P&gt;I have this functioning example of na_ontap_rest_api:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;- name: run vserver cifs security modify aes-enabled-for-netlogon-channel true
  netapp.ontap.na_ontap_rest_cli:
    hostname: "{{ inventory_hostname }}"
    username: "{{ lookup('env','NETAPP_USER') }}"
    password: "{{ lookup('env','NETAPP_PASS') }}"
    validate_certs: false
    command: 'vserver/cifs/security'
    verb: PATCH
    params: { 'vserver': "{{ item.name }}" }
    body: { 'aes-enabled-for-netlogon-channel': 'true' }
  with_items:
    - "{{ svm }}"
  register: command_result
  tags: [standard,command,cifs-security,new]&lt;/LI-CODE&gt;&lt;P&gt;I want to do something similar with this CLI:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ldap client modify -vserver &amp;lt;vserver&amp;gt; -client-config exoduspoint_ad -ldaps-enabled true -port 636&lt;/LI-CODE&gt;&lt;P&gt;What is the format for using multiple key-value pairs in the body? -- TIA!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 09:43:19 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/how-to-use-multiple-key-value-pairs-in-body-of-na-ontap-rest-api/m-p/449364#M627</guid>
      <dc:creator>SCL</dc:creator>
      <dc:date>2025-06-04T09:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to use multiple key-value pairs in body of na_ontap_rest_api?</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/how-to-use-multiple-key-value-pairs-in-body-of-na-ontap-rest-api/m-p/449402#M631</link>
      <description>&lt;P&gt;It's a standard JSON body so I would imagine this would work...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;body: { "client-config": "exoduspoint_ad", "ldaps-enabled": true, "port": "636" }&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 18:42:22 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/how-to-use-multiple-key-value-pairs-in-body-of-na-ontap-rest-api/m-p/449402#M631</guid>
      <dc:creator>JohnChampion</dc:creator>
      <dc:date>2023-12-01T18:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to use multiple key-value pairs in body of na_ontap_rest_api?</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/how-to-use-multiple-key-value-pairs-in-body-of-na-ontap-rest-api/m-p/449411#M633</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/37407"&gt;@JohnChampion&lt;/a&gt;&amp;nbsp;-- a comma-separated list worked but we cleaned it up a bit by doing this (different bloc snippet)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    params: { 'vserver': "{{ item.name }}" }
    body:
      advertised-enc-types: ['aes-128','aes-256']
      aes-enabled-for-netlogon-channel: true
      is-signing-required: true
      lm-compatibility-level: ntlmv2-krb
      session-security-for-ad-ldap: seal&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 01 Dec 2023 23:15:44 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/how-to-use-multiple-key-value-pairs-in-body-of-na-ontap-rest-api/m-p/449411#M633</guid>
      <dc:creator>SCL</dc:creator>
      <dc:date>2023-12-01T23:15:44Z</dc:date>
    </item>
  </channel>
</rss>

