Virtual machine resource quota functionality.
This resource represents a method in which to create a new quota.
Resource URI:
/rest/hosting/quota/
Create a new quota by submitting an HTTP PUT request.
Note
This resource requires create permission on the elastic_hosting extension module.
| Parameters: |
|
|---|---|
| Return type: |
This resource represens a specific virtual machine resource quota.
Resource URI:
/rest/hosting/quota/<UUID>/
Retrieve the specified virtual machine resource quota by submitting an HTTP GET request. The UUID in the resource URI should be the UUID of the target quota.
Note
This resource requires read permission on both the quota and the elastic_hosting extension module when using the HTTP GET method.
| Return type: | quota.RepQuotaUUID |
|---|
Update the specified virtual machine resource quota by submitting an HTTP POST request. The UUID in the resource uri should be the uuid of the target quota.
Note
This resource requires update permission on both the quota and the elastic_hosting extension module when using the HTTP POST method.
| Parameters: |
|
|---|---|
| Return type: |
Delete the specified virtual machine resource quota by submitting an HTTP DELETE request. The UUID in the resource URI should be the UUID of the target quota.
Note
This resource requires delete permission on both the quota and the elastic_hosting extension module when using the HTTP DELETE method.
This resource represents a specific group quota.
Resource URI:
/rest/hosting/quota/group/<UUID>/
Retrieve the specified virtual machine resource quota by submitting an HTTP GET request. The UUID in the resource URI should be the UUID of the target group.
Note
This resource requires read permission on both the quota and the elastic_hosting extension module when using the HTTP GET method.
| Return type: | quota.RepQuotaUUID |
|---|
Update the specified group by submitting an HTTP POST request. The UUID in the resource URI should be the UUID of the target group.
Note
This resource requires update permission on both the quota and the elastic_hosting extension module when using the HTTP POST method.
| Parameter: | quota – The new quota for the target group. |
|---|---|
| Return type: | quota.RepQuotaUUID |
This resource represents a list of virtual machine resource quotas.
Resource URI:
/rest/hosting/quota/list/
Retrieve a list of virtual machine resource quotas by submitting an HTTP GET request.
Note
This resource requires read permission on the elastic_hosting extension module and on each virtual machine resource quota that is found.
| Return type: | quota.RepQuotaList |
|---|
This is a representation of a new quota that is been created.
Representation:
{"errno" response.errno,
"message": response.message,
"quota": quota}
This is a representation of a quota resource.
Representation:
{"errno": response.errno,
"message": response.message,
"quota": {"uuid": quota.uuid,
"name": quota.name,
"max_vms": quota.vms,
"max_cpus": quota.cpus,
"max_memory": quota.max_memory,
"max_storage": quota.max_storage}}
This is a representation of a list of virtual machine resource quotas. This is a list of quota.RepQuotaUUID representations.
Representation
{"errno": response.errno,
"message": response.message,
"quotas": [quota1, quota2]}