rest_valet(self,
*args,
**kw)
|
|
This method can be called with a POST or PUT (functionality will be
the same either way). The call will attempt to create a new virtual
machine based on the incoming request The current user must have read
permission on the valet module.
URL Format:
/rest/valet/
- Parameters:
self (enomalism2.REST.rest) - The method class.
pkguuid (String) - Package UUID to provision.
mduuid (String) - Machine definition UUID to provision on.
num_machines (Integer) - The number of machines to provision.
- Returns: Dictionary
- A dictionary containing the result of the action.
- Decorators:
@register_extension("valet", allowed_methods= ['POST', 'PUT'])
- Raises:
None - No exceptions are raised by this method.
|