Disk template functionality.
This resource represens a specific disk template.
Resource URI:
/rest/hosting/dtemplate/<UUID>/
Retrieve the specified disk template by submitting an HTTP GET request. The UUID in the resource uri should be the uuid of the target disk template.
Note
This resource requires read permission on both the disk template and the elastic_hosting extension module when using the HTTP GET method.
| Return type: | dtemplate.RepDtemplateUUID |
|---|
This resource represents a list of disk templates.
Resource URI:
/rest/hosting/dtemplate/list/
Retrieve a list of disk templates by submitting an HTTP GET request.
Note
This resource requires read permission on the elastic_hosting extension module.
| Return type: | dtemplate.RepDtemplateList |
|---|
This is a representation of a disk template resource.
Representation:
{"errno": response.errno,
"message": response.message,
"dtemplate": {"uuid": dtemplate.uuid,
"size": dtemplate.size}}
This is a representation of a list of disk templates. This is a list of dtemplate.RepDtemplateUUID representations.
Representation:
{"errno": response.errno,
"message": response.message,
"templates": [dtemplate1, dtemplate2]}