VMware Cloud Director API - PUT-LeaseSettingsSection-vApp

VMware Cloud Director API - PUT-LeaseSettingsSection-vApp

PUT /vApp/{id}/leaseSettingsSection

Operation:
PUT /vApp/{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/vApp/vapp-bba47763-0ce1-45b9-8470-ea29ba58c52f/leaseSettingsSection/

Headers:
Content-Length: 883
Content-Type: application/vnd.vmware.vcloud.leaseSettingsSection+xml; charset=ISO-8859-1
x-vcloud-authorization: uJ13vBx80VGzZ0KcClBqxHNDJr3QI0K5KaQ0YKn2YZ0=

Body:
<?xml version="1.0" encoding="UTF-8"?><vcloud:LeaseSettingsSection
    xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1"
    xmlns:vcloud="http://www.vmware.com/vcloud/v1.5"
    href="https://vcloud.example.com/api/vApp/vapp-bba47763-0ce1-45b9-8470-ea29ba58c52f/leaseSettingsSection/"
    ovf:required="false"
    type="application/vnd.vmware.vcloud.leaseSettingsSection+xml">
    <ovf:Info>Lease settings section</ovf:Info>
    <vcloud:Link
        href="https://vcloud.example.com/api/vApp/vapp-bba47763-0ce1-45b9-8470-ea29ba58c52f/leaseSettingsSection/"
        rel="edit"
        type="application/vnd.vmware.vcloud.leaseSettingsSection+xml"/>
    <vcloud:DeploymentLeaseInSeconds>604800</vcloud:DeploymentLeaseInSeconds>
    <vcloud:StorageLeaseInSeconds>2592000</vcloud:StorageLeaseInSeconds>
    <vcloud:StorageLeaseExpiration>2013-03-16T13:16:59.490+02:00</vcloud:StorageLeaseExpiration>
</vcloud:LeaseSettingsSection>
Response
HTTP/1.1 202 Accepted

Headers:
Content-Length: 1347
Content-Type: application/vnd.vmware.vcloud.task+xml;version=5.5
Location: https://vcloud.example.com/api/task/71305e0e-b244-4b78-9021-f46b97acb2a6
Vary: Accept-Encoding

Body:
<?xml version="1.0" encoding="UTF-8"?><Task
    xmlns="http://www.vmware.com/vcloud/v1.5"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    cancelRequested="false"
    expiryTime="2013-05-15T13:17:21.848+03:00"
    href="https://vcloud.example.com/api/task/71305e0e-b244-4b78-9021-f46b97acb2a6"
    id="urn:vcloud:task:71305e0e-b244-4b78-9021-f46b97acb2a6"
    name="task"
    operation="Updating Virtual Application importedVapp(bba47763-0ce1-45b9-8470-ea29ba58c52f)"
    operationName="vdcUpdateVapp"
    serviceNamespace="com.vmware.vcloud"
    startTime="2013-02-14T13:17:21.848+02:00"
    status="running"
    type="application/vnd.vmware.vcloud.task+xml"
    xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://https://vcloud.example.com/api/v1.5/schema/master.xsd">
    <Link
        href="https://vcloud.example.com/api/task/71305e0e-b244-4b78-9021-f46b97acb2a6/action/cancel"
        rel="task:cancel"/>
    <Owner
        href="https://vcloud.example.com/api/vApp/vapp-bba47763-0ce1-45b9-8470-ea29ba58c52f"
        name="importedVapp"
        type="application/vnd.vmware.vcloud.vApp+xml"/>
    <User
        href="https://vcloud.example.com/api/admin/user/1260efee-6915-494c-8afa-84e7e6d8a310"
        name="system"
        type="application/vnd.vmware.admin.user+xml"/>
    <Organization
        href="https://vcloud.example.com/api/org/7b832bc5-3d65-45a2-8d35-da28388ab80a"
        name="Default"
        type="application/vnd.vmware.vcloud.org+xml"/>
    <Details/>
</Task>