<?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 Volume create with Rest API in ONTAP Rest API Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Volume-create-with-Rest-API/m-p/445901#M548</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i just to add a new volume with the rest API.&amp;nbsp;&lt;/P&gt;&lt;P&gt;With a simple call (only aggr, svm and volume ) it works fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when i use a call with&amp;nbsp;more extensive arguments, i will get the return code 202 and also the return records of the volume&amp;nbsp; data but the volume does not exists on the filer!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This is the call that i use:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;curl --location --request POST '&lt;A href="https://1.2.3.4/api/storage/volumes?return_records=true" target="_blank"&gt;https://1.2.3.4/api/storage/volumes?return_records=true&lt;/A&gt;' \&lt;BR /&gt;--header 'Authorization: Basic 12345' \&lt;BR /&gt;--header 'Content-Type: application/json' \&lt;BR /&gt;--data-raw '{&lt;BR /&gt;"aggregates": [&lt;BR /&gt;{&lt;BR /&gt;"name": "data2_sas_n01"&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"comment": "test_comment",&lt;BR /&gt;"encryption": {&lt;BR /&gt;"enabled": "true"&lt;BR /&gt;},&lt;BR /&gt;"guarantee": {&lt;BR /&gt;"type": "none"&lt;BR /&gt;},&lt;BR /&gt;"language": "de.UTF-8",&lt;BR /&gt;"name": "vs9910_rest_test_13",&lt;BR /&gt;"nas": {&lt;BR /&gt;"export_policy": {&lt;BR /&gt;"name": "vs9910_rest_test_complete6"&lt;BR /&gt;},&lt;BR /&gt;"gid": "0",&lt;BR /&gt;"path": "/vs9910_rest_test_13",&lt;BR /&gt;"security_style": "unix",&lt;BR /&gt;"uid": "0"&lt;BR /&gt;},&lt;BR /&gt;"size": "50g",&lt;BR /&gt;"snapshot_policy": {&lt;BR /&gt;"name": "none"&lt;BR /&gt;},&lt;BR /&gt;"space": {&lt;BR /&gt;"logical_space": {&lt;BR /&gt;"enforcement": "true",&lt;BR /&gt;"reporting": "true"&lt;BR /&gt;},&lt;BR /&gt;"snapshot": {&lt;BR /&gt;"reserve_percent": 0&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;"svm": {&lt;BR /&gt;"name": "vs9910"&lt;BR /&gt;},&lt;BR /&gt;"type": "RW"&lt;BR /&gt;}'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas what the reason is for it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards Tino&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 09:47:05 GMT</pubDate>
    <dc:creator>STORAGE_CIT</dc:creator>
    <dc:date>2025-06-04T09:47:05Z</dc:date>
    <item>
      <title>Volume create with Rest API</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Volume-create-with-Rest-API/m-p/445901#M548</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i just to add a new volume with the rest API.&amp;nbsp;&lt;/P&gt;&lt;P&gt;With a simple call (only aggr, svm and volume ) it works fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when i use a call with&amp;nbsp;more extensive arguments, i will get the return code 202 and also the return records of the volume&amp;nbsp; data but the volume does not exists on the filer!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This is the call that i use:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;curl --location --request POST '&lt;A href="https://1.2.3.4/api/storage/volumes?return_records=true" target="_blank"&gt;https://1.2.3.4/api/storage/volumes?return_records=true&lt;/A&gt;' \&lt;BR /&gt;--header 'Authorization: Basic 12345' \&lt;BR /&gt;--header 'Content-Type: application/json' \&lt;BR /&gt;--data-raw '{&lt;BR /&gt;"aggregates": [&lt;BR /&gt;{&lt;BR /&gt;"name": "data2_sas_n01"&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"comment": "test_comment",&lt;BR /&gt;"encryption": {&lt;BR /&gt;"enabled": "true"&lt;BR /&gt;},&lt;BR /&gt;"guarantee": {&lt;BR /&gt;"type": "none"&lt;BR /&gt;},&lt;BR /&gt;"language": "de.UTF-8",&lt;BR /&gt;"name": "vs9910_rest_test_13",&lt;BR /&gt;"nas": {&lt;BR /&gt;"export_policy": {&lt;BR /&gt;"name": "vs9910_rest_test_complete6"&lt;BR /&gt;},&lt;BR /&gt;"gid": "0",&lt;BR /&gt;"path": "/vs9910_rest_test_13",&lt;BR /&gt;"security_style": "unix",&lt;BR /&gt;"uid": "0"&lt;BR /&gt;},&lt;BR /&gt;"size": "50g",&lt;BR /&gt;"snapshot_policy": {&lt;BR /&gt;"name": "none"&lt;BR /&gt;},&lt;BR /&gt;"space": {&lt;BR /&gt;"logical_space": {&lt;BR /&gt;"enforcement": "true",&lt;BR /&gt;"reporting": "true"&lt;BR /&gt;},&lt;BR /&gt;"snapshot": {&lt;BR /&gt;"reserve_percent": 0&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;"svm": {&lt;BR /&gt;"name": "vs9910"&lt;BR /&gt;},&lt;BR /&gt;"type": "RW"&lt;BR /&gt;}'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas what the reason is for it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards Tino&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 09:47:05 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Volume-create-with-Rest-API/m-p/445901#M548</guid>
      <dc:creator>STORAGE_CIT</dc:creator>
      <dc:date>2025-06-04T09:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Volume create with Rest API</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Volume-create-with-Rest-API/m-p/445969#M549</link>
      <description>&lt;P&gt;A 202 is the documented and expected HTTP status for this API call. You must wait until the returned job is complete before you can be sure that a GET for the created volume will succeed.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2023 18:49:30 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Volume-create-with-Rest-API/m-p/445969#M549</guid>
      <dc:creator>degraaf</dc:creator>
      <dc:date>2023-07-17T18:49:30Z</dc:date>
    </item>
  </channel>
</rss>

