POST /vApp/{id}/action/checkCompliance

Operation:
POST /vApp/{id}/action/checkCompliance
Description:
Perform storage profile compliance check on a VM.
Since:
5.1
Input parameters
Consume media type(s):
None
Input type:
None
Output parameters
TaskType

This operation is asynchronous and return a task. When the task completes, the compliance check on the VM has been completed and the results can be retrieved.

Produce media type(s):
application/vnd.vmware.vcloud.task+xml
Output type:
TaskType
Examples
Request
HTTP 1.1
POST /api/vApp/vm-ec94079b-3071-4a72-b95c-4154acb12c38/action/checkCompliance

Headers:
x-vcloud-authorization: 4Ezv8QOCNMOaWCVI6gEHOXEG299HZAsmcB0qrgPRp1I=

Body:
Response
HTTP/1.1 202 Accepted

Headers:
Content-Length: 1338
Content-Type: application/vnd.vmware.vcloud.task+xml;version=5.5
Location: https://vcloud.example.com/api/task/a7775c3a-a04b-4474-95b2-207bb3264cbc
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:10:10.369+03:00"
    href="https://vcloud.example.com/api/task/a7775c3a-a04b-4474-95b2-207bb3264cbc"
    id="urn:vcloud:task:a7775c3a-a04b-4474-95b2-207bb3264cbc"
    name="task"
    operation="Running Compliance Check Virtual Machine (ec94079b-3071-4a72-b95c-4154acb12c38)"
    operationName="vappCheckVmCompliance"
    serviceNamespace="com.vmware.vcloud"
    startTime="2013-02-14T13:10:10.369+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/a7775c3a-a04b-4474-95b2-207bb3264cbc/action/cancel"
        rel="task:cancel"/>
    <Owner
        href="https://vcloud.example.com/api/vApp/vm-ec94079b-3071-4a72-b95c-4154acb12c38"
        name=""
        type="application/vnd.vmware.vcloud.vm+xml"/>
    <User
        href="https://vcloud.example.com/api/admin/user/1260efee-6915-494c-8afa-84e7e6d8a310"
        name="vcloud"
        type="application/vnd.vmware.admin.user+xml"/>
    <Organization
        href="https://vcloud.example.com/api/org/a93c9db9-7471-3192-8d09-a8f7eeda85f9"
        name="System"
        type="application/vnd.vmware.vcloud.org+xml"/>
    <Details/>
</Task>