5.1

Table Of Contents
3 Use one of the action links in the BlockingTask to take action on the task.
See the response portion of “Example: Handling a Blocking Task,” on page 278.
Example: Retrieve a List of Blocking Tasks
Request:
GET https://vcloud.example.com/api/admin/extension/blockingTasks/
Response:
200 OK
Content-Type: application/vnd.vmware.admin.blockingTaskList+xml
...
<vmext:BlockingTaskReferences
xmlns:vmext="http://www.vmware.com/vcloud/extension/v1.5"
xmlns:vcloud="http://www.vmware.com/vcloud/v1.5"
... >
<vcloud:Link
rel="up"
type="application/vnd.vmware.admin.vmwExtension+xml"
href="https://vcloud.example.com/api/admin/extension" />
<vcloud:Reference
type="application/vnd.vmware.admin.blockingTask+xml"
name="vdcUpdateTemplate"
href="https://vcloud.example.com/api/admin/extension/blockingTask/28" />
<vcloud:Reference
type="application/vnd.vmware.admin.blockingTask+xml"
name="vdcComposeVapp"
href="https://vcloud.example.com/api/admin/extension/blockingTask/25" />
<vcloud:Reference
type="application/vnd.vmware.admin.blockingTask+xml"
name="vdcUploadMedia"
href="https://vcloud.example.com/api/admin/extension/blockingTask/12" />
</vmext:BlockingTaskReferences>
Take Action on a Blocking Task
The BlockingTask element includes links that you can use to take action on a blocking task.
A BlockingTask element is primarily a collection of Link elements that allow you to take action on the task.
When a user requests an operation that is configured to create a blocking task, the system sends a message
about the task to the configured AMQP broker, and also creates a reference to the task in the cloud's
BlockingTaskReferences container. A system administrator can retrieve the list of BlockingTask elements by
making a GET request to the system's extension/blockingTasks link. See “Monitor Blocking Tasks,” on
page 276.
After authenticating to the cloud as a system administrator, the AMQP client can retrieve a blocking task. The
AMQP client makes a GET request to a URL that the task creates by appending the value of the id attribute of
the task to the entityResolver URL in the Notification. See “Example: Notification Message Format,” on
page 268.
The following actions are allowed:
resume
Unblock the task and allow it to continue.
abort
End the task, cleaning up any transient objects that it created. Task status is set
to ABORTED.
Chapter 10 Configuring and Using Blocking Tasks and Notifications
VMware, Inc. 277