Bases: opennode.oms.endpoint.httprest.base.HttpRestView
Bases: opennode.oms.endpoint.httprest.auth.AuthView
Bases: opennode.oms.endpoint.httprest.root.HttpStatus
Bases: opennode.oms.endpoint.httprest.root.HttpStatus
Bases: twisted.web.resource.Resource
Restful HTTP API interface for OMS.
Exposes a JSON web service to communicate with OMS.
We are the handler for anything below this base url, except what explicitly added in oms.tac.
Bases: exceptions.Exception
Bases: opennode.oms.endpoint.httprest.root.HttpStatus
Bases: opennode.oms.endpoint.httprest.root.HttpStatus
Bases: opennode.oms.endpoint.httprest.root.AbstractRedirect
Bases: opennode.oms.endpoint.httprest.root.AbstractRedirect
Bases: opennode.oms.endpoint.httprest.view.DefaultView
Converts arguments into command-line counterparts and executes the omsh command.
Parameters passed as ‘arg’ are converted into positional arguments, others are converted into named parameters:
PUT /bin/ls?arg=/some/path&arg=/another/path&-l&–recursive
thus translates to:
/bin/ls /some/path /another/path -l –recursive
Allows blocking (synchronous) and non-blocking operation using the ‘asynchronous’ parameter (any value will trigger it). Synchronous operation requires two threads to function.