Hardware template functionality.
This resource represents a method in which to create a new hardware template.
Resource URI:
/rest/hosting/htemplate/
Create a new hardware template by submitting an HTTP PUT request.
Note
This resource requires create permission on the elastic_hosting extension module.
| Parameters: |
|
|---|---|
| Return type: |
This resource represents a specific hardware template.
Resource URI:
/rest/hosting/htemplate/<UUID>/
Retrieve the specified hardware template by submitting an HTTP GET request. The UUID in the resource URI should be the UUID of the target hardware template.
Note
This resource requires read permission on both the hardware template and the elastic_hosting extension module when using the HTTP GET method.
| Return type: | quota.RepHtemplateUUID |
|---|
Update the specified hardware template by submitting an HTTP POST request. The UUID in the resource URI should be the UUID of the target hardware template.
Note
This resource requires update permission on both the hardware template and the elastic_hosting extension module when using the HTTP POST method.
| Parameters: |
|
|---|---|
| Return type: |
This resource represents a list of hardware templates.
Resource URI:
/rest/hosting/htemplate/list/
Retrieve a list of hardware templates by submitting an HTTP GET request.
Note
This resource requires read permission on the elastic_hosting extension module.
| Return type: | htemplate.RepHtemplateList |
|---|
This is a representation of a new hardware template that has been created.
Representation:
{"errno": response.errno,
"message": response.message,
"hardware": hardware}
This is a representation of a specific hardware template.
Representation:
{"errno": response.errno,
"message": response.message,
"hardware": {"uuid": hardware.uuid,
"name": hardware.name,
"arch": hardware.arch,
"hypervisor_name": hardware.hvm,
"memory": hardware.memory,
"cpus": hardware.cpus}}