> For the complete documentation index, see [llms.txt](https://docs.higiocloud.vn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.higiocloud.vn/compute/4.-hi-gio-api/api-reconfigures-vms-disk.md).

# API reconfigures VM's Disk

## <mark style="color:green;">Overview</mark>

In this manual, you will find detailed information on how to prepare information, get the VM’s disk information, and reconfigure the VM’s disk.

## <mark style="color:green;">**Procedure**</mark>

{% stepper %}
{% step %}

#### **Step 1: Prepare Information**

Log in to IAM portal -> vCD portal: collect the information

**{{vcd\_url}}**<br>

<figure><img src="/files/IGhGXJinPkqvIejYDfQL" alt=""><figcaption></figcaption></figure>

&#x20;**{{vm-uuid}}:** select VM -> take a look vm uuid on url<br>

<figure><img src="/files/aubHVqjechW77VopgpIh" alt=""><figcaption></figcaption></figure>

**{{Bearer Token}}:** Please follow the **“API token login”** documen
{% endstep %}

{% step %}

#### **Step 2: Getting VM’s Disk information**

* GET **https\://{{vcd\_url}}APIi/vApp/{{vm-uuid}}/virtualHardwareSection/disks**
* Authorization: {{Bearer Token}}
* Headers:

\- ‘Accept’: \*/\*;version=37.2

\- ‘Content-type’: application/vnd.vmware.vcloud.rasdItem+xml
{% endstep %}

{% step %}

#### **Step 3:** **Reconfig VM’s disk**

* PUT https//{{vcd\_url}}APIi/vApp/{{vm-uuid}}/virtualHardwareSection/disks
* Authorization: {{Bearer Token }}
* Headers:

\- 'Accept’: \*/\*;version=37.2

\- ‘Content-type’: application/vnd.vmware.vcloud.rasdItem+xml

* Body: *{{select raw -> copy and paste* *response body from Get VM’s disk information }}*

Ex:

```
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<RasdItemsList xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:vmext="http://www.vmware.com/vcloud/extension/v1.5" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1"
…………………………………………….
………………………………………
        <rasd:HostResource xmlns:ns10="http://www.vmware.com/vcloud/v1.5" ns10:storageProfileHref="https://iaas-hcmc02.higiocloud.vn/api/vdcStorageProfile/a7c6c2f7-3c2211e6e7b0" ns10:busType="6" ns10:busSubType="VirtualSCSI" ns10:capacity="15240" ns10:iops="4000" ns10:storageProfileOverrideVmDefault="false"></rasd:HostResource>
        <rasd:InstanceID>2000</rasd:InstanceID>
        <rasd:Limit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
        <rasd:MappingBehavior xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
        <rasd:OtherResourceType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
        <rasd:Parent>2</rasd:Parent>
    </Item>
</RasdItemsList>

```

<figure><img src="/files/xIApvuQ8dhgi43xlHPNM" alt=""><figcaption></figcaption></figure>

* Find word <mark style="color:red;">ns10:capacity</mark> and edit the value in ,”, it’s the VM’s disk (MB)
* SEND request.
  {% endstep %}

{% step %}

#### **Step 4: Verify**

* **Get VM’s disk information**

GET https\://{{vcd\_url}}/api/vApp/{{vm-uuid}}/virtualHardwareSection/disks

* **Check on vCD portal**

Login IAM -> vCD portal-> select VM-> Hard disk

{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.higiocloud.vn/compute/4.-hi-gio-api/api-reconfigures-vms-disk.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
