5.5

Table Of Contents
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 324.
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
#unique_177_Connect_42_EXAMPLE_B07B54418FAF480980ED867A833E22CC.
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.
fail
End the task, setting the status of any transient objects that it created to
ERROR. Task status is set to ERROR.
updateProgress
Reset the timeout value and timeout action for an active task. Use this action
to keep the task alive when it might become subject to a timeout action.
Prerequisites
Verify that you are logged in to the vCloud API as a system administrator.
Procedure
1 Retrieve the list of active blocking tasks.
See “Monitor Blocking Tasks,” on page 324. If you are using an AMQP client to handle blocking tasks,
skip this step. Each blocking task creates its own AMQP message, which contains a reference to the
BlockingTask.
2 Retrieve an individual BlockingTask.
See the request portion of “Example: Handling a Blocking Task,” on page 326.
3 Make a request.
Action Request
resume
POST a BlockingTaskOperationParams element to the Link where
rel="resume"
abort
POST a BlockingTaskOperationParams element to the Link where
rel="abort"
Chapter 10 Configuring and Using Blocking Tasks and Notifications
VMware, Inc. 325