<?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: Query - get record name that has curly braces in it. in ONTAP Rest API Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Query-get-record-name-that-has-curly-braces-in-it/m-p/439975#M390</link>
    <description>&lt;P&gt;You are correct except for single quotes. ONTAP doesn't treat single quotes as special. BTW, if a string's first and last characters are open and shut curly braces, the rest is treated as literal, even with emdedded curly quotes. So {x}yz} is same as "x}yz" and {x{}y} is same as "x{}y".&lt;/P&gt;</description>
    <pubDate>Mon, 21 Nov 2022 13:35:34 GMT</pubDate>
    <dc:creator>degraaf</dc:creator>
    <dc:date>2022-11-21T13:35:34Z</dc:date>
    <item>
      <title>Query - get record name that has curly braces in it.</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Query-get-record-name-that-has-curly-braces-in-it/m-p/439968#M388</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Trying to get the qtree name that has curly braces in it. ex - {cjtest-really-long-name}&lt;/P&gt;&lt;P&gt;if tried name: {cjtest-really-long-name} without double quotes around the name, it did not return the qtree record.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -X GET "https://host_ip/api/storage/qtrees?name=%7Bcjtest-really-long-name%7D&amp;amp;return_records=true&amp;amp;return_timeout=15" -H "accept: application/json" -H "authorization: Basic YWRtaW46bmV0YXBwMSE="&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;whereas with double quotes "{cjtest-really-long-name}", it return record good.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -X GET "https://host_ip/api/storage/qtrees?name=%22%7Bcjtest-really-long-name%7D%22&amp;amp;return_records=true&amp;amp;return_timeout=15" -H "accept: application/json" -H "authorization: Basic YWRtaW46bmV0YXBwMSE="&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;is this expected?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mohan&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 09:55:12 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Query-get-record-name-that-has-curly-braces-in-it/m-p/439968#M388</guid>
      <dc:creator>MOHANRAJB</dc:creator>
      <dc:date>2025-06-04T09:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Query - get record name that has curly braces in it.</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Query-get-record-name-that-has-curly-braces-in-it/m-p/439973#M389</link>
      <description>&lt;P&gt;Yes, this is expected. There are 3 ways to quote a string value in the ONTAP API (and CLI). Single quotes ('value'), double quotes ("value") or curly braces, {value}. If the value you are quoting contains one of those characters, you'll need to quote it with a different set so as to have those embedded quote characters treated literally.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 12:16:49 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Query-get-record-name-that-has-curly-braces-in-it/m-p/439973#M389</guid>
      <dc:creator>RobertBlackhart</dc:creator>
      <dc:date>2022-11-21T12:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Query - get record name that has curly braces in it.</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Query-get-record-name-that-has-curly-braces-in-it/m-p/439975#M390</link>
      <description>&lt;P&gt;You are correct except for single quotes. ONTAP doesn't treat single quotes as special. BTW, if a string's first and last characters are open and shut curly braces, the rest is treated as literal, even with emdedded curly quotes. So {x}yz} is same as "x}yz" and {x{}y} is same as "x{}y".&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 13:35:34 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Query-get-record-name-that-has-curly-braces-in-it/m-p/439975#M390</guid>
      <dc:creator>degraaf</dc:creator>
      <dc:date>2022-11-21T13:35:34Z</dc:date>
    </item>
  </channel>
</rss>

