Abiquo Documentation Cookies Policy

Our Documentation website uses cookies to improve your experience. Please visit our Cookie Policy page for more information about cookies and how we use them.


Abiquo 4.4

Skip to end of metadata
Go to start of metadata

Contents:

Disks Resource

This resource manages disks that are part of VM templates. For auxiliary data disks, see HardDiskResource (hard disks on datastores) and VolumeResource (external storage volumes).

Main URI of the Resource

This class operates mainly over the Resource URI: /admin/enterprises/{enterprise}/datacenterrepositories/{datacenterrepository}/virtualmachinetemplates/{virtualmachinetemplate}/disks

Exposed Methods

List disks of a virtual machine template

Get all the disks of the given virtual machine template. 

Synopsis: GET http://example.com/api/admin/enterprises/{enterprise}/datacenterrepositories/{datacenterrepository}/virtualmachinetemplates/{virtualmachinetemplate}/disks
Roles Required: APPLIB_VIEW,VDC_ENUMERATE,VDC_MANAGE_VAPP, VAPP_CUSTOMISE_SETTINGS,VAPP_CREATE_STATEFUL
Request Headers: Accept: application/vnd.abiquo.disks+json; version=4.4; application/vnd.abiquo.disks+xml; version=4.4;  application/vnd.abiquo.acceptedrequest+xml Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

    

Request Message Body Entity:
Response Message Body Entity: Disks Media Type
Request Example:

 Click here to expand...

GET_adm_ents_X_dcrpos_X_vmtmps_X_disks_AC_disks_j.0001.txt

cURL:

curl -X GET http://localhost:9000/api/admin/enterprises/275/datacenterrepositories/251/virtualmachinetemplates/167/disks \ 
	 -H 'Accept:application/vnd.abiquo.disks+json; version=4.2' \ 
	 -u user:password --verbose 

Success status code: 200

Request payload:

--none--

Response payload:

{
  "links": [], 
  "collection": [
    {
      "diskFormatType": "ISO", 
      "links": [
        {
          "href": "http://localhost:9009/api/admin/enterprises/275/datacenterrepositories/251/virtualmachinetemplates/167/disks/237", 
          "type": "application/vnd.abiquo.disk+json", 
          "rel": "edit", 
          "title": "disk"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/275/datacenterrepositories/251/virtualmachinetemplates/167/disks/237/conversions", 
          "type": "application/vnd.abiquo.conversions+json", 
          "rel": "conversions", 
          "title": "conversions"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/275/datacenterrepositories/251/virtualmachinetemplates/167", 
          "type": "application/vnd.abiquo.virtualmachinetemplate+json", 
          "rel": "virtualmachinetemplate", 
          "title": "410"
        }, 
        {
          "href": "http://localhost:8080/am/files/413", 
          "rel": "diskfile", 
          "title": "413"
        }
      ], 
      "sequence": 1, 
      "bootable": true, 
      "diskFileSize": 435159040, 
      "state": "DONE", 
      "hdRequired": 436207616, 
      "path": "413", 
      "creationDate": "2017-12-05T15:21:24.000+0000"
    }, 
    {
      "diskFormatType": "ISO", 
      "links": [
        {
          "href": "http://localhost:9009/api/admin/enterprises/275/datacenterrepositories/251/virtualmachinetemplates/167/disks/238", 
          "type": "application/vnd.abiquo.disk+json", 
          "rel": "edit", 
          "title": "disk"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/275/datacenterrepositories/251/virtualmachinetemplates/167/disks/238/conversions", 
          "type": "application/vnd.abiquo.conversions+json", 
          "rel": "conversions", 
          "title": "conversions"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/275/datacenterrepositories/251/virtualmachinetemplates/167", 
          "type": "application/vnd.abiquo.virtualmachinetemplate+json", 
          "rel": "virtualmachinetemplate", 
          "title": "410"
        }, 
        {
          "href": "http://localhost:8080/am/files/417", 
          "rel": "diskfile", 
          "title": "417"
        }
      ], 
      "sequence": 2, 
      "bootable": true, 
      "diskFileSize": 439353344, 
      "state": "DONE", 
      "hdRequired": 440401920, 
      "path": "417", 
      "creationDate": "2017-12-05T15:21:24.000+0000"
    }
  ]
}

 

Create an empty disk in a virtual machine template

This functionality creates an emtpy disk.  For an empty disk you are not allowed to use the following properties: path, diskFileSize and diskFormatType

Synopsis: POST http://example.com/api/admin/enterprises/{enterprise}/datacenterrepositories/{datacenterrepository}/virtualmachinetemplates/{virtualmachinetemplate}/disks
Roles Required: VAPP_CREATE_STATEFUL,APPLIB_ALLOW_MODIFY
Request Headers: Accept:   application/vnd.abiquo.disk+json; version=4.4; application/vnd.abiquo.disk+xml; version=4.4;  Content-type:   application/vnd.abiquo.disk+json; version=4.4; application/vnd.abiquo.disk+xml; version=4.4;

Request Parameters:

Parameter

Required

Default Value

Description

    

Request Message Body Entity:  Disk Media Type
Response Message Body Entity:    Disk Media Type
Request Example:

 Click here to expand...

POST_adm_ents_X_dcrpos_X_vmtmps_X_disks_CT_disk_j_AC_disk_j.0001.txt

cURL:

curl -X POST http://localhost:9000/api/admin/enterprises/6165/datacenterrepositories/5465/virtualmachinetemplates/2436/disks \ 
	 -H 'Accept:application/xml, application/vnd.abiquo.disk+json; version=4.2' \ 
	 -H 'Content-Type:application/vnd.abiquo.disk+json; version=4.2' \ 
	 -d @requestpayload.json \ 
	 -u user:password --verbose 

Success status code: 201

Request payload:

{
  "hdRequired": 50, 
  "links": [
    {
      "href": "http://localhost:9009/api/cloud/locations/5465/datastoretiers/1438", 
      "rel": "datastoretier"
    }
  ], 
  "sequence": 3, 
  "bootable": false, 
  "diskControllerType": "IDE", 
  "diskController": "diskController_TEST", 
  "label": "label"
}

Response payload:

{
  "diskFormatType": "RAW", 
  "links": [
    {
      "href": "http://localhost:9009/api/admin/enterprises/6165/datacenterrepositories/5465/virtualmachinetemplates/2436/disks/2104", 
      "type": "application/vnd.abiquo.disk+json", 
      "rel": "edit", 
      "title": "disk"
    }, 
    {
      "href": "http://localhost:9009/api/admin/enterprises/6165/datacenterrepositories/5465/virtualmachinetemplates/2436/disks/2104/conversions", 
      "type": "application/vnd.abiquo.conversions+json", 
      "rel": "conversions", 
      "title": "conversions"
    }, 
    {
      "href": "http://localhost:9009/api/admin/enterprises/6165/datacenterrepositories/5465/virtualmachinetemplates/2436", 
      "type": "application/vnd.abiquo.virtualmachinetemplate+json", 
      "rel": "virtualmachinetemplate", 
      "title": "622"
    }, 
    {
      "href": "http://localhost:9009/api/cloud/locations/5465/datastoretiers/1438", 
      "type": "application/vnd.abiquo.datastoretier+json", 
      "rel": "datastoretier", 
      "title": "625"
    }
  ], 
  "sequence": 3, 
  "bootable": true, 
  "diskController": "diskController_TEST", 
  "label": "label", 
  "state": "DONE", 
  "hdRequired": 50, 
  "diskControllerType": "IDE", 
  "creationDate": "2017-12-05T15:33:59.907+0000", 
  "diskFileSize": 0
}

Copy a disk in a virtual machine template

This functionality copies a disk. The Disk request media type extends a disk with the sequence position where the new disk should be copied to.

Synopsis: POST http://example.com/api/admin/enterprises/{enterprise}/datacenterrepositories/{datacenterrepository}/virtualmachinetemplates/{virtualmachinetemplate}/disks
Roles Required: APPLIB_VIEW,VDC_MANAGE_VAPP, VAPP_CUSTOMISE_SETTINGS
Request Headers: Accept:   application/vnd.abiquo.acceptedrequest+json; version=4.4; application/vnd.abiquo.acceptedrequest+xml; version=4.4; Content-type:   application/vnd.abiquo.diskrequest+json; version=4.4; application/vnd.abiquo.diskrequest+xml; version=4.4;
Request Parameters:

Parameter

Required

Default Value

Description

    

Request Message Body Entity:     DiskRequest Media Type     
Response Message Body Entity:    AcceptedRequest Media Type
Request Example:

 Click here to expand...

POST_adm_ents_X_dcrpos_X_vmtmps_X_disks_CT_diskrq_j_AC_acrq_j.0001.txt

cURL:

curl -X POST http://localhost:9000/api/admin/enterprises/1951/datacenterrepositories/1245/virtualmachinetemplates/552/disks \ 
	 -H 'Accept:application/xml, application/vnd.abiquo.acceptedrequest+json; version=4.2' \ 
	 -H 'Content-Type:application/vnd.abiquo.diskrequest+json; version=4.2' \ 
	 -d @requestpayload.json \ 
	 -u user:password --verbose 

Success status code: 202

Request payload:

{
  "bootable": false, 
  "diskFileSize": 104857600, 
  "links": [
    {
      "href": "http://localhost:9009/api/admin/enterprises/1951/datacenterrepositories/1245/virtualmachinetemplates/551/disks/529", 
      "rel": "edit"
    }
  ], 
  "newSequence": 5, 
  "sequence": 0
}

Response payload:

{
  "message": "You can keep track of the progress in the link", 
  "links": [
    {
      "href": "http://localhost:9009/api/admin/enterprises/1951/datacenterrepositories/1245/virtualmachinetemplates/552/tasks/5bee465e-9f77-403b-88ff-503338369b90", 
      "rel": "status"
    }
  ]
}

 

Get a disk from a virtual machine template

Get one of the disks for the given virtual machine template

Synopsis: GET http://example.com/api/admin/enterprises/{enterprise}/datacenterrepositories/{datacenterrepository}/virtualmachinetemplates/{virtualmachinetemplate}/disks/{disk}
Roles Required: APPLIB_VIEW,VDC_ENUMERATE,VDC_MANAGE_VAPP,VAPP_CUSTOMISE_SETTINGS,VAPP_PERFORM_ACTIONS,VAPP_DEPLOY_UNDEPLOY,VAPP_ASSIGN_NETWORK,VAPP_ASSIGN_VOLUME, VAPP_CREATE_STATEFUL,PHYS_DC_RETRIEVE_DETAILS,MANAGE_HARD_DISKS
Request Headers: Accept:  application/vnd.abiquo.disk+json; version=4.4; application/vnd.abiquo.disk+xml; version=4.4;   Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity:
Response Message Body Entity:  Disk Media Type
Request Example:

 Click here to expand...

GET_adm_ents_X_dcrpos_X_vmtmps_X_disks_X_AC_disk_j.0001.txt

cURL:

curl -X GET http://localhost:9000/api/admin/enterprises/1792/datacenterrepositories/1160/virtualmachinetemplates/438/disks/424 \ 
	 -H 'Accept:application/vnd.abiquo.disk+json; version=4.2' \ 
	 -u user:password --verbose 

Success status code: 200

Request payload:

--none--

Response payload:

{
  "diskFormatType": "DOCKER_IMAGE", 
  "links": [
    {
      "href": "http://localhost:9009/api/admin/enterprises/1792/datacenterrepositories/1160/virtualmachinetemplates/438/disks/424", 
      "type": "application/vnd.abiquo.disk+json", 
      "rel": "edit", 
      "title": "disk"
    }, 
    {
      "href": "http://localhost:9009/api/admin/enterprises/1792/datacenterrepositories/1160/virtualmachinetemplates/438/disks/424/conversions", 
      "type": "application/vnd.abiquo.conversions+json", 
      "rel": "conversions", 
      "title": "conversions"
    }, 
    {
      "href": "http://localhost:9009/api/admin/enterprises/1792/datacenterrepositories/1160/virtualmachinetemplates/438", 
      "type": "application/vnd.abiquo.virtualmachinetemplate+json", 
      "rel": "virtualmachinetemplate", 
      "title": "0BE32E0C278CF474D04A"
    }
  ], 
  "sequence": 0, 
  "bootable": true, 
  "diskFileSize": 0, 
  "state": "DONE", 
  "hdRequired": 3450046671728990070, 
  "path": "remote_template", 
  "creationDate": "2018-03-08T12:54:16.000+0000"
}

 

Update a disk of a virtual machine template

Modify of the disks for the given virtual machine template

Synopsis: PUT http://example.com/api/admin/enterprises/{enterprise}/datacenterrepositories/{datacenterrepository}/virtualmachinetemplates/{virtualmachinetemplate}/disks/{disk}
Roles Required: APPLIB_ALLOW_MODIFY,VAPP_CREATE_STATEFUL
Request Headers: Accept:  application/vnd.abiquo.disk+json; version=4.4; application/vnd.abiquo.disk+xml; version=4.4;    Content-type: application/vnd.abiquo.disk+json; version=4.4; application/vnd.abiquo.disk+xml; version=4.4;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity:   Disk Media Type
Response Message Body Entity:  Disk Media Type
Request Example:

 Click here to expand...

PUT_adm_ents_X_dcrpos_X_vmtmps_X_disks_X_CT_disk_j_AC_disk_j.0001.txt

cURL:

curl -X PUT http://localhost:9000/api/admin/enterprises/5530/datacenterrepositories/4862/virtualmachinetemplates/2283/disks/1948 \ 
	 -H 'Accept:application/vnd.abiquo.disk+json; version=4.2' \ 
	 -H 'Content-Type:application/vnd.abiquo.disk+json; version=4.2' \ 
	 -d @requestpayload.json \ 
	 -u user:password --verbose 

Success status code: 200

Request payload:

{
  "diskFormatType": "RAW", 
  "links": [
    {
      "href": "http://localhost:9009/api/admin/enterprises/5530/datacenterrepositories/4862/virtualmachinetemplates/2283/disks/1948", 
      "type": "application/vnd.abiquo.disk+json", 
      "rel": "edit", 
      "title": "disk"
    }, 
    {
      "href": "http://localhost:9009/api/admin/enterprises/5530/datacenterrepositories/4862/virtualmachinetemplates/2283/disks/1948/conversions", 
      "type": "application/vnd.abiquo.conversions+json", 
      "rel": "conversions", 
      "title": "conversions"
    }, 
    {
      "href": "http://localhost:9009/api/admin/enterprises/5530/datacenterrepositories/4862/virtualmachinetemplates/2283", 
      "type": "application/vnd.abiquo.virtualmachinetemplate+json", 
      "rel": "virtualmachinetemplate", 
      "title": "134"
    }, 
    {
      "href": "http://localhost:8080/am/files/136", 
      "rel": "diskfile", 
      "title": "136"
    }, 
    {
      "href": "http://localhost:9009/api/cloud/locations/4862/datastoretiers/1172", 
      "rel": "datastoretier"
    }
  ], 
  "sequence": 0, 
  "bootable": false, 
  "diskFileSize": 5242880, 
  "label": "test", 
  "allocation": "THIN", 
  "state": "DONE", 
  "hdRequired": 100, 
  "path": "136", 
  "creationDate": "2017-12-05T15:32:46.000+0000"
}

Response payload:

{
  "diskFormatType": "RAW", 
  "links": [
    {
      "href": "http://localhost:9009/api/admin/enterprises/5530/datacenterrepositories/4862/virtualmachinetemplates/2283/disks/1948", 
      "type": "application/vnd.abiquo.disk+json", 
      "rel": "edit", 
      "title": "disk"
    }, 
    {
      "href": "http://localhost:9009/api/admin/enterprises/5530/datacenterrepositories/4862/virtualmachinetemplates/2283/disks/1948/conversions", 
      "type": "application/vnd.abiquo.conversions+json", 
      "rel": "conversions", 
      "title": "conversions"
    }, 
    {
      "href": "http://localhost:9009/api/admin/enterprises/5530/datacenterrepositories/4862/virtualmachinetemplates/2283", 
      "type": "application/vnd.abiquo.virtualmachinetemplate+json", 
      "rel": "virtualmachinetemplate", 
      "title": "134"
    }, 
    {
      "href": "http://localhost:8080/am/files/136", 
      "rel": "diskfile", 
      "title": "136"
    }, 
    {
      "href": "http://localhost:9009/api/cloud/locations/4862/datastoretiers/1172", 
      "type": "application/vnd.abiquo.datastoretier+json", 
      "rel": "datastoretier", 
      "title": "137"
    }
  ], 
  "sequence": 0, 
  "bootable": false, 
  "diskFileSize": 5242880, 
  "label": "test", 
  "allocation": "THIN", 
  "state": "DONE", 
  "hdRequired": 100, 
  "path": "136", 
  "creationDate": "2017-12-05T15:32:46.000+0000"
}

 

Delete a disk of a virtual machine template

Deletes a disk of a virtual machine template.

Synopsis: DELETE http://example.com/api/admin/enterprises/{enterprise}/datacenterrepositories/{datacenterrepository}/virtualmachinetemplates/{virtualmachinetemplate }/disks/{disk }
Roles Required: APPLIB_ALLOW_MODIFY,VAPP_CREATE_STATEFUL 
Request Headers: Accept: ; Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity: 
Response Message Body Entity: 
Request Example:

 Click here to show or hide the request example

DELETE_adm_ents_X_dcrpos_X_vmtmps_X_disks_X.0001.txt

cURL:

curl -X DELETE http://localhost:9000/api/admin/enterprises/5544/datacenterrepositories/4874/virtualmachinetemplates/2291/disks/1957 \ 
	 -H 'Accept:text/json,application/json' \ 
	 -u user:password --verbose 

Success status code: 204

Request payload:

--none--

Response payload:

--none--

Make unavailable a disk of a virtual machine template

If the disk is in use (instances or virtual machines) it can't be deleted, but it can be marked as unavailable, this will remove the template disk file from the repository filesystem but keep the API reference as a virtual machine template disk with state = UNAVAILABLE

Synopsis: POST http://example.com/api/admin/enterprises/{enterprise}/datacenterrepositories/{datacenterrepository}/virtualmachinetemplates/{virtualmachinetemplate}/disks/{disk}/action/deletefile
Roles Required: APPLIB_ALLOW_MODIFY,VAPP_CREATE_STATEFUL
Request Headers: Accept: ; Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity: 
Response Message Body Entity: 
Request Example:

 Click here to show or hide the request example

POST_adm_ents_X_dcrpos_X_vmtmps_X_disks_X_act_delfile.0001.txt

cURL:

curl -X POST http://localhost:9000/api/admin/enterprises/1853/datacenterrepositories/1185/virtualmachinetemplates/580/disks/534/action/deletefile \ 
	 -H 'Accept:text/json,application/json' \ 
	 -u user:password --verbose 

Success status code: 204

Request payload:

--none--

Response payload:

--none--

 

List tasks on a disk of a virtual machine template

Displays the tasks on the disk. Tasks are a set of jobs (operations). Any of these tasks may still be in progress.

Synopsis: GET http://example.com/api/admin/enterprises/{enterprise}/datacenterrepositories/{datacenterrepository}/virtualmachinetemplates/{virtualmachinetemplate}/disks/{disk}/tasks
Roles Required: APPLIB_VIEW,VDC_ENUMERATE,VDC_MANAGE_VAPP,VAPP_CUSTOMISE_SETTINGS,VAPP_PERFORM_ACTIONS,VAPP_DEPLOY_UNDEPLOY, VAPP_ASSIGN_NETWORK,VAPP_ASSIGN_VOLUME,VAPP_CREATE_STATEFUL,PHYS_DC_RETRIEVE_DETAILS,MANAGE_HARD_DISKS
Request Headers: Accept:  application/vnd.abiquo.tasks+json; version=4.4; application/vnd.abiquo.tasks+xml; version=4.4;  Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity: 
Response Message Body Entity: Tasks Media Type
Request Example:

 Click here to show or hide the request example

GET_adm_ents_X_dcrpos_X_vmtmps_X_disks_X_tsks_AC_tsks_j.txt

cURL:

curl -X GET http://localhost:9000/api/admin/enterprises/1/datacenterrepositories/2/virtualmachinetemplates/25/disks/145/tasks \ 
	 -H 'Accept:application/vnd.abiquo.tasks+json; version=3.4' \ 
	 -u user:password --verbose 

Success status code: 200

Request payload:

--none--

Response payload:

{
   "collection" : [
      {
         "taskId" : "36e490f0-09a7-4e7e-9aac-026a42e96d94",
         "creationTimestamp" : 1431520139,
         "userId" : "SYSTEM",
         "state" : "FINISHED_SUCCESSFULLY",
         "jobs" : {
            "collection" : [],
            "links" : []
         },
         "timestamp" : 1431520141,
         "type" : "COPY_DISK",
         "ownerId" : "25",
         "links" : [
            {
               "rel" : "self",
               "href" : "http://localhost:9000/api/admin/enterprises/1/datacenterrepositories/2/virtualmachinetemplates/25/disks/145/tasks/36e490f0-09a7-4e7e-9aac-026a42e96d94"
            },
            {
               "rel" : "parent",
               "href" : "http://localhost:9000/api/admin/enterprises/1/datacenterrepositories/2/virtualmachinetemplates/25/disks/145/tasks"
            }
         ]
      },
      {
         "taskId" : "0151f75c-e767-4aae-9d52-ca5c7c61de13",
         "creationTimestamp" : 1431519701,
         "userId" : "SYSTEM",
         "state" : "FINISHED_SUCCESSFULLY",
         "jobs" : {
            "collection" : [],
            "links" : []
         },
         "timestamp" : 1431519702,
         "type" : "COPY_DISK",
         "ownerId" : "25",
         "links" : [
            {
               "rel" : "self",
               "href" : "http://localhost:9000/api/admin/enterprises/1/datacenterrepositories/2/virtualmachinetemplates/25/disks/145/tasks/0151f75c-e767-4aae-9d52-ca5c7c61de13"
            },
            {
               "rel" : "parent",
               "href" : "http://localhost:9000/api/admin/enterprises/1/datacenterrepositories/2/virtualmachinetemplates/25/disks/145/tasks"
            }
         ]
      }
   ],
   "links" : [
      {
         "rel" : "self",
         "href" : "http://localhost:9000/api/admin/enterprises/1/datacenterrepositories/2/virtualmachinetemplates/25/disks/145/tasks"
      },
      {
         "rel" : "parent",
         "href" : "http://localhost:9000/api/admin/enterprises/1/datacenterrepositories/2/virtualmachinetemplates/25/disks/145"
      }
   ]
}

 

Get a task on a disk of a virtual machine template

Displays a specific task on the disk. Tasks are a set of jobs (operations on hypervisors). Any of these tasks may still be in progress. Every task has a UUID. 

Synopsis: GET http://example.com/api/admin/enterprises/{enterprise}/datacenterrepositories/{datacenterrepository}/virtualmachinetemplates/{virtualmachinetemplate}/disks/{disk}/tasks/{id}
Roles Required: APPLIB_VIEW,VDC_ENUMERATE,VDC_MANAGE_VAPP,VAPP_CUSTOMISE_SETTINGS,VAPP_PERFORM_ACTIONS,VAPP_DEPLOY_UNDEPLOY, VAPP_ASSIGN_NETWORK,VAPP_ASSIGN_VOLUME,VAPP_CREATE_STATEFUL,PHYS_DC_RETRIEVE_DETAILS,MANAGE_HARD_DISKS
Request Headers: Accept:  application/vnd.abiquo.task+json; version=4.4; application/vnd.abiquo.task+xml; version=4.4;  Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity: 
Response Message Body Entity: Task Media Type
Request Example:

 Click here to show or hide the request example


GET_adm_ents_X_dcrpos_X_vmtmps_X_disks_X_tsks_TASK_AC_tsk_j.0001.txt

cURL:

curl -X GET https://example.com:443/api/admin/enterprises/2/datacenterrepositories/1/virtualmachinetemplates/101/disks/136/tasks/a5573592-49dc-4285-ac38-cdb736555910 \ 
	 -H 'Accept:application/vnd.abiquo.task+json; version=4.2' \ 
	 -u user:password --verbose 

Success status code: 200

Request payload:

--none--

Response payload:

{
    "taskId": "a5573592-49dc-4285-ac38-cdb736555910",
    "userId": "1",
    "type": "PROMOTE",
    "ownerId": "101",
    "state": "FINISHED_SUCCESSFULLY",
    "creationTimestamp": 1513785497,
    "timestamp": 1513785503,
    "jobs": {
        "links": [],
        "collection": []
    },
    "links": [
        {
            "rel": "self",
            "href": "https://example.com:443/api/admin/enterprises/2/datacenterrepositories/1/virtualmachinetemplates/101/disks/136/tasks/a5573592-49dc-4285-ac38-cdb736555910"
        },
        {
            "rel": "parent",
            "href": "https://example.com:443/api/admin/enterprises/2/datacenterrepositories/1/virtualmachinetemplates/101/disks/136/tasks"
        },
        {
            "rel": "result",
            "type": "application/vnd.abiquo.virtualmachinetemplate+json",
            "href": "https://example.com:443/api/admin/enterprises/2/datacenterrepositories/1/virtualmachinetemplates/101/disks/136"
        }
    ]
}