VMware Cloud Director API - PUT-LeaseSettingsSection-vAppTemplate

VMware Cloud Director API - PUT-LeaseSettingsSection-vAppTemplate

PUT /vAppTemplate/{id}/leaseSettingsSection

Operation:
PUT /vAppTemplate/{id}/leaseSettingsSection
Description:
Updates the lease settings section of a vApp or vApp template.
Since:
0.9
Input parameters
Consume media type(s):
application/vnd.vmware.vcloud.leaseSettingsSection+xml
application/vnd.vmware.vcloud.leaseSettingsSection+json
Input type:
LeaseSettingsSectionType
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/vappTemplate-33637be1-bce6-46dc-bdba-54d85c8a64bc/leaseSettingsSection/

Headers:
x-vcloud-authorization: PzqSCVSTRFJDKi3JUGLihOxvxRERfZnvqFn0BE1O9/A=

Body:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns6:LeaseSettingsSection
    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"
    type="application/vnd.vmware.vcloud.leaseSettingsSection+xml"
    href="https://vcloud.example.com/api/vAppTemplate/vappTemplate-33637be1-bce6-46dc-bdba-54d85c8a64bc/leaseSettingsSection/" ns2:required="false">
    <ns2:Info/>
    <ns6:Link
        rel="edit"
        type="application/vnd.vmware.vcloud.leaseSettingsSection+xml"
        href="https://vcloud.example.com/api/vAppTemplate/vappTemplate-33637be1-bce6-46dc-bdba-54d85c8a64bc/leaseSettingsSection/"/>
    <ns6:StorageLeaseInSeconds>2592000</ns6:StorageLeaseInSeconds>
    <ns6:StorageLeaseExpiration>2013-03-30T16:12:07.333+02:00</ns6:StorageLeaseExpiration>
</ns6:LeaseSettingsSection>
Response
HTTP/1.1 202 Accepted

Headers:
Content-Length: 1335
Content-Type: application/vnd.vmware.vcloud.task+xml; version=5.5
Location: https://vcloud.example.com/api/task/50123c3a-0f03-437c-a4df-b8030e409c81
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-22T08:30:15.530+02:00"
    serviceNamespace="com.vmware.vcloud"
    operationName="vdcUpdateTemplate"
    operation="Updating Virtual Application Template (33637be1-bce6-46dc-bdba-54d85c8a64bc)"
    expiryTime="2013-06-20T08:30:15.530+03:00"
    cancelRequested="false"
    name="task"
    id="urn:vcloud:task:50123c3a-0f03-437c-a4df-b8030e409c81"
    type="application/vnd.vmware.vcloud.task+xml"
    href="https://vcloud.example.com/api/task/50123c3a-0f03-437c-a4df-b8030e409c81"
    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/50123c3a-0f03-437c-a4df-b8030e409c81/action/cancel"/>
    <Owner
        type="application/vnd.vmware.vcloud.vAppTemplate+xml"
        name=""
        href="https://vcloud.example.com/api/vAppTemplate/vappTemplate-33637be1-bce6-46dc-bdba-54d85c8a64bc"/>
    <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>