VMware Cloud Director API - POST-UpgradeHwVersion

VMware Cloud Director API - POST-UpgradeHwVersion

POST /vApp/{id}/action/upgradeHardwareVersion

Operation:
POST /vApp/{id}/action/upgradeHardwareVersion
Description:
Upgrade the virtual hardware version of a VM to the highest supported virtual hardware version of the vDC that contains it.
Since:
1.5
Input parameters
Consume media type(s):
None
Input type:
None
Output parameters
TaskType

This operation is asynchronous and returns a task that you can monitor to track the progress of the request.

Produce media type(s):
application/vnd.vmware.vcloud.task+xml
application/vnd.vmware.vcloud.task+json
Output type:
TaskType
Examples
Request
HTTP 1.1
POST /api/vApp/vm-77a6ac09-7c33-4eaa-9c52-d16be22bfc10/action/upgradeHardwareVersion

Headers:
x-vcloud-authorization: ICoTzewXTOpRlM6gpGqRU4pYUEH567upswoaaPvs87Y=

Body:
Response
HTTP/1.1 202 Accepted

Headers:
Content-Length: 1326
Content-Type: application/vnd.vmware.vcloud.task+xml; version=5.5
Location: https://vcloud.example.com/api/task/7b0a9543-5bfa-4305-880d-385748f25f41
Vary: Accept-Encoding

Body:
<?xml version="1.0" encoding="UTF-8"?>
<Task
    xmlns="http://www.vmware.com/vcloud/v1.5"
    status="running"
    startTime="2013-03-29T10:11:26.080+02:00"
    serviceNamespace="com.vmware.vcloud"
    operationName="vappUpgradeHwVersion"
    operation="Upgrading Virtual Machine DamnSmallLinux(77a6ac09-7c33-4eaa-9c52-d16be22bfc10)"
    expiryTime="2013-06-27T10:11:26.080+03:00"
    cancelRequested="false"
    name="task"
    id="urn:vcloud:task:7b0a9543-5bfa-4305-880d-385748f25f41"
    type="application/vnd.vmware.vcloud.task+xml"
    href="https://vcloud.example.com/api/task/7b0a9543-5bfa-4305-880d-385748f25f41"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://vcloud.example.com/api/v1.5/schema/master.xsd">
    <Link
        rel="task:cancel"
        href="https://vcloud.example.com/api/task/7b0a9543-5bfa-4305-880d-385748f25f41/action/cancel"/>
    <Owner
        type="application/vnd.vmware.vcloud.vm+xml"
        name="DamnSmallLinux"
        href="https://vcloud.example.com/api/vApp/vm-77a6ac09-7c33-4eaa-9c52-d16be22bfc10"/>
    <User
        type="application/vnd.vmware.admin.user+xml"
        name="system"
        href="https://vcloud.example.com/api/admin/user/8fa42d37-5eda-43ed-ad8a-f005c625a96c"/>
    <Organization
        type="application/vnd.vmware.vcloud.org+xml"
        name="Default"
        href="https://vcloud.example.com/api/org/b5d81989-f274-4e55-9005-b53b48a158d1"/>
    <Details/>
</Task>