add get instance request id list
Change-Id: I90afe446b6edf0ba4241d3fca1374486d227e2d9
This commit is contained in:
@@ -105,3 +105,12 @@ class SearchManager(basemodels.BaseModelManager):
|
||||
return body
|
||||
except Exception as e:
|
||||
raise RuntimeError(str(e))
|
||||
|
||||
def get_instance_request_ids(self, args):
|
||||
url = 'v1/search/instance/request_ids'
|
||||
|
||||
try:
|
||||
resp, body = self.api.json_request('GET', url)
|
||||
return body
|
||||
except Exception as e:
|
||||
raise RuntimeError(str(e))
|
||||
|
||||
@@ -46,3 +46,10 @@ def do_get_type_program(cs, args):
|
||||
endpoint = cs.search.get_type_program(args)
|
||||
print(endpoint)
|
||||
return endpoint
|
||||
|
||||
|
||||
def do_get_instance_request_ids(cs, args):
|
||||
"""get instance request id list."""
|
||||
endpoint = cs.search.get_instance_request_ids(args)
|
||||
print(endpoint)
|
||||
return endpoint
|
||||
|
||||
Reference in New Issue
Block a user