HP OneView REST API Reference

tasks
tasks.html[10/17/2013 10:35:11 AM]
Updated: October 16, 2013 4:26
MDT
API Specifications Create Read Update Delete
/rest/tasks POST GET
/rest/tasks/schema GET
/rest/tasks/{id} GET PUT
Resource Model
TaskResourceV2
TaskResourcePaginatedCollectionV2
TaskTreeV2
TaskUpdateV2
HP OneView REST API Reference
tasks
Task Tracker is used to record and update a task running in the system. It is not a task engine. It provides REST APIs
version #2 to allow monitoring of tasks.
URI: /rest/tasks
Method API
POST Creates a task V2
Parameter Attributes Description
Request Header Attributes Description
REST API Request Headers NOTE: The X-API-Version header is required for all APIs. For the current release,
this must be set to "X-API-Version:3"
Request Body Attributes Description
TaskResourceV2 Required
Response Description
TaskResourceV2 Represents the task V2 created
Response Codes
REST API Response Codes
Examples
These two examples create a V2 task in the appliance using the specified
parameters.
The first example shows the minimum fields required to create a V2 task.
1) POST https://{appl}/rest/tasks
Minimum fields required to create a V2 task:
{
"type":"TaskResourceV2",
"name":"Creating My Task",
"taskState":"New", (One of the TaskState enum values)
"taskType":"User", ( One of the TaskType enum values )
"associatedResource":