Versions Compared

Key

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

...

...

...

...

...

* Main steps

- Preparation

- Get VM status

- Change status VM

1. Prepare information

...

Overview

In this manual, you will find detailed information on how to prepare information, get VM status, and change status VM.

Procedure

Expand

Step 1: Prepare information

Login 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

      ...

      • “API token login” document

      Step 2

      ...

      : Get VM status

      • GET https://{{vcd_url}}/api/vApp/{{vm_uuid}}

      • Authorization: {{Bearer Token }}

      • Headers:

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

      ...

      Image Added
      • SEND request.

      Check the VM status on line 3 of Response Body. If Linkrel="power:powerOff", VM is Power ON else VM is Power Off

      Image Modified

      Step 3

      ...

      : Change status VM

      Postman:

      • POST https://{{vcd_url}}/api/vApp/{{vm_uuid}}/power/action/{{powerOn/powerOff}}

      • Authorization: {{Bearer Token}}

      • Headers:

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

      Image Modified
      • SEND request.

      ...

      Step 4: Verify

      ...

      • Get VM’s status information

      GET https://{{vcd_url}}/api/vApp/{{vm-uuid}}

      ...

      • Check on vCD portal

      Login IAM -> vCD portal-> select VM

      End.