<?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: Increase VM Disk Size using REST API vcenter vm hardware disk: PATCH doesn't work - get 400 erro in VMware vCloud™ API Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-vCloud-API-Discussions/Increase-VM-Disk-Size-using-REST-API-vcenter-vm-hardware-disk/m-p/2940391#M2127</link>
    <description>&lt;P&gt;Java sample to extend VM hard-disk using VI Java API (SOAP Based) - &lt;A href="https://developer.vmware.com/samples/1821/extend-vm-hard-disk?h=Sample" target="_self"&gt;Extend VM Hard Disk&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Nov 2022 06:10:42 GMT</pubDate>
    <dc:creator>doskiran</dc:creator>
    <dc:date>2022-11-24T06:10:42Z</dc:date>
    <item>
      <title>Increase VM Disk Size using REST API vcenter vm hardware disk: PATCH doesn't work - get 400 error</title>
      <link>https://communities.vmware.com/t5/VMware-vCloud-API-Discussions/Increase-VM-Disk-Size-using-REST-API-vcenter-vm-hardware-disk/m-p/2906345#M2115</link>
      <description>&lt;P&gt;I'm trying to use the REST API to increase a VM's disk capacity and I tried this REST API but keep getting 400 Bad Request.&amp;nbsp; I tried with VM powered on or off but still getting 400. Does it not allow 'capacity' update?&lt;/P&gt;&lt;P&gt;I followed this REST API:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.vmware.com/apis/vsphere-automation/v7.0U1/vcenter/rest/vcenter/vm/vm/hardware/disk/disk/patch/" target="_blank" rel="noopener"&gt;https://developer.vmware.com/apis/vsphere-automation/v7.0U1/vcenter/rest/vcenter/vm/vm/hardware/disk/disk/patch/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl -kv --location --request PATCH 'https://{vcenterurl}/rest/vcenter/vm/vm-22/hardware/disk/4000' \&lt;BR /&gt;--header 'vmware-api-session-id: 826f459a3ec1a8cd8b8fc3797a6818fe' \&lt;BR /&gt;--header 'mimetype: application/json' \&lt;BR /&gt;--header 'Content-Type: application/json' \&lt;BR /&gt;--header 'Cookie: vmware-api-session-id=826f459a3ec1a8cd8b8fc3797a6818fe' \&lt;BR /&gt;--data-raw '{&lt;BR /&gt;"spec": {&lt;BR /&gt;"backing": {&lt;BR /&gt;"vmdk_file": "[DS10] myVM.vmdk",&lt;BR /&gt;"type": "VMDK_FILE",&lt;BR /&gt;},&lt;BR /&gt;"capacity": 64424509440,&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;'&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 22:33:13 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-vCloud-API-Discussions/Increase-VM-Disk-Size-using-REST-API-vcenter-vm-hardware-disk/m-p/2906345#M2115</guid>
      <dc:creator>lcqlys</dc:creator>
      <dc:date>2022-04-27T22:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Increase VM Disk Size using REST API vcenter vm hardware disk: PATCH doesn't work - get 400 erro</title>
      <link>https://communities.vmware.com/t5/VMware-vCloud-API-Discussions/Increase-VM-Disk-Size-using-REST-API-vcenter-vm-hardware-disk/m-p/2930509#M2125</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Sorry NOT possible using REST API =&amp;gt; use SOAP API&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Reply from VMware Support on increasing vDisk size using REST API (dated September 2022) :&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I&amp;nbsp; have looked through the documentation and discussed with the engineering team regarding the 3 use cases specified:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Increase size of a VMs vDisk&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Connect a VMs NIC to a dvSwitch PortGroup&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;List and Change properties of a PortGroup&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After checking extensively, I understand that we do not have REST API options for these operations. As per my discussion with the engineering team, if the API is not listed here&amp;nbsp;(Link), there is no REST API option and SOAP API would have to be used.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;LINK =&amp;nbsp;&lt;A href="https://developer.vmware.com/apis/vsphere-automation/latest/vcenter/vm/" target="_blank"&gt;https://developer.vmware.com/apis/vsphere-automation/latest/vcenter/vm/&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 06:45:03 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-vCloud-API-Discussions/Increase-VM-Disk-Size-using-REST-API-vcenter-vm-hardware-disk/m-p/2930509#M2125</guid>
      <dc:creator>JEHolo3</dc:creator>
      <dc:date>2022-09-26T06:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: Increase VM Disk Size using REST API vcenter vm hardware disk: PATCH doesn't work - get 400 erro</title>
      <link>https://communities.vmware.com/t5/VMware-vCloud-API-Discussions/Increase-VM-Disk-Size-using-REST-API-vcenter-vm-hardware-disk/m-p/2940391#M2127</link>
      <description>&lt;P&gt;Java sample to extend VM hard-disk using VI Java API (SOAP Based) - &lt;A href="https://developer.vmware.com/samples/1821/extend-vm-hard-disk?h=Sample" target="_self"&gt;Extend VM Hard Disk&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 06:10:42 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-vCloud-API-Discussions/Increase-VM-Disk-Size-using-REST-API-vcenter-vm-hardware-disk/m-p/2940391#M2127</guid>
      <dc:creator>doskiran</dc:creator>
      <dc:date>2022-11-24T06:10:42Z</dc:date>
    </item>
  </channel>
</rss>

