Merge "Add client datasource action API for action-execution-interface"
This commit is contained in:
commit
36abcef3ec
|
@ -167,6 +167,12 @@ class Client(object):
|
||||||
self.datasource_path % datasource)
|
self.datasource_path % datasource)
|
||||||
return body
|
return body
|
||||||
|
|
||||||
|
def execute_datasource_action(self, service_name, action, body):
|
||||||
|
uri = "?action=%s" % (action)
|
||||||
|
resp, body = self.httpclient.post(
|
||||||
|
(self.datasource_path % service_name) + str(uri), body=body)
|
||||||
|
return body
|
||||||
|
|
||||||
def list_drivers(self):
|
def list_drivers(self):
|
||||||
resp, body = self.httpclient.get(self.driver)
|
resp, body = self.httpclient.get(self.driver)
|
||||||
return body
|
return body
|
||||||
|
|
Loading…
Reference in New Issue