Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

* Main steps

- Prepare information

- Get VM’s disk information

- Reconfig VM’s disk

1. Preparation

...

Overview

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.

Procedure

Expand

Step 1: Prepare Information

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

...

  • {{vcd_url}}

...

Image Added

    ...

    • {{vm-uuid}}: select VM -> take a look vm uuid on url

    ...

    Image Added

      ...

      • {{Bearer Token}}: Please follow

      ...

      • the “API token login” document

      Step 2

      ...

      : Getting VM’s

      ...

      Disk information

      Postman:

      • 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

      ...

      Image Added
      • SEND request.

      ...

      • - Copy Response Body

      Step 3

      ...

      :Reconfig VM’s disk

      Postman:

      • 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 pasteresponse body from Get VM’s disk information }}

      Ex:

      <?xmlversion="1.0"encoding="UTF-8"standalone="yes"?>

      <RasdItemsListxmlns="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:HostResourcexmlns: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:Limitxmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:nil="true"/>

              <rasd:MappingBehaviorxmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:nil="true"/>

              <rasd:OtherResourceTypexmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:nil="true"/>

              <rasd:Parent>2</rasd:Parent>

          </Item>

      </RasdItemsList>

      ...

      Image Added

      ===============================================================================

      • Find word ns10:capacity and edit the value in

      ...

      • ,”, it’s the VM’s disk (MB)

      • SEND request.

      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

      End.