1.5

Table Of Contents
3 Retrieve the XML representation of the vApp again.
a Verify that the value of its status attribute is 8, which indicates that it is powered off.
b Verify that it includes a rel="remove" link of the following form:
<Link
rel="remove"
href="https://vcloud.example.com/api/vApp/vapp-7"/>
4 Remove the vApp.
Make a DELETE request to the vApp's rel="remove" link, as shown in the request portion of
“Example: Delete a vApp,” on page 39.
The server starts a task to manage the events that lead up to the removal of the vApp, and returns a Task
element that you can use to track the progress of the task.
Example: Delete a vApp
Request:
DELETE https://vcloud.example.com/api/vApp/vapp-7
Response:
202 Accepted
...
<Task
xmlns="http://www.vmware.com/vcloud/v1.5"
status="running"
startTime="2010-06-25T08:10:23.650-07:00"
operation="Deleting Virtual Application Linux FTP server (7)"
expiryTime="2010-09-23T08:00:55.402-07:00"
type="application/vnd.vmware.vcloud.task+xml"
href="https://vcloud.example.com/api/task/3478" ... >
</Task>
Log Out
To log out and terminate a vCloud API session, delete the Session you created when you logged in.
The logout request, like all other authenticated requests, must include the authorization header, as shown in
“Example: Logging Out,” on page 39.
Prerequisites
Verify that you are logged in.
Procedure
u
Make a DELETE request specifying the href of the current Session object.
Example: Logging Out
This example deletes the current user's Session, which logs the user out.
Chapter 2 Hello vCloud: A Simplified RESTful Workflow
VMware, Inc. 39