VMware Cloud Director API - PUT-GuestCustomizationSection-vAppTemplate

VMware Cloud Director API - PUT-GuestCustomizationSection-vAppTemplate

PUT /vAppTemplate/{id}/guestCustomizationSection

Operation:
PUT /vAppTemplate/{id}/guestCustomizationSection
Description:
Updates the guest customization section of a VM.
Since:
1.0
Input parameters
Consume media type(s):
application/vnd.vmware.vcloud.guestCustomizationSection+xml
application/vnd.vmware.vcloud.guestCustomizationSection+json
Input type:
GuestCustomizationSectionType
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
PUT /api/vAppTemplate/vm-2c02ee20-8ec8-42c2-b010-1aa2f9041827/guestCustomizationSection/

Headers:
x-vcloud-authorization: tkgjgQtIS3veOl7Yf6fKBo9uty0vBe2f64jrT4Ogaz4=

Body:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns6:GuestCustomizationSection
    xmlns="http://www.vmware.com/vcloud/versions" xmlns:ns2="http://schemas.dmtf.org/ovf/envelope/1" xmlns:ns3="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:ns4="http://schemas.dmtf.org/wbem/wscim/1/common" xmlns:ns5="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:ns6="http://www.vmware.com/vcloud/v1.5" xmlns:ns7="http://www.vmware.com/schema/ovf" xmlns:ns8="http://schemas.dmtf.org/ovf/environment/1" xmlns:ns9="http://www.vmware.com/vcloud/extension/v1.5">
    <ns2:Info ns2:msgid="guestCustomizationSection"></ns2:Info>
    <ns6:ComputerName>compName1</ns6:ComputerName>
</ns6:GuestCustomizationSection>
Response
HTTP/1.1 202 Accepted

Headers:
Content-Length: 1305
Content-Type: application/vnd.vmware.vcloud.task+xml; version=5.5
Location: https://vcloud.example.com/api/task/99612038-35de-45f0-bf56-f03c5ef94a21
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-21T16:59:35.163+02:00"
    serviceNamespace="com.vmware.vcloud"
    operationName="templateUpdateVm"
    operation="Updating Virtual Machine debian(2c02ee20-8ec8-42c2-b010-1aa2f9041827)"
    expiryTime="2013-06-19T16:59:35.163+03:00"
    cancelRequested="false"
    name="task"
    id="urn:vcloud:task:99612038-35de-45f0-bf56-f03c5ef94a21"
    type="application/vnd.vmware.vcloud.task+xml"
    href="https://vcloud.example.com/api/task/99612038-35de-45f0-bf56-f03c5ef94a21"
    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/99612038-35de-45f0-bf56-f03c5ef94a21/action/cancel"/>
    <Owner
        type="application/vnd.vmware.vcloud.vm+xml"
        name="debian"
        href="https://vcloud.example.com/api/vApp/vm-2c02ee20-8ec8-42c2-b010-1aa2f9041827"/>
    <User
        type="application/vnd.vmware.admin.user+xml"
        name="system"
        href="https://vcloud.example.com/api/admin/user/4b36181e-b32d-456e-ad94-8e0a568b1346"/>
    <Organization
        type="application/vnd.vmware.vcloud.org+xml"
        name="Default"
        href="https://vcloud.example.com/api/org/710affad-0212-4e55-b6ae-4818d6e9166e"/>
    <Details/>
</Task>