diff options
author | Kanagaraj Manickam <mkr1481@gmail.com> | 2015-12-15 08:26:24 +0530 |
---|---|---|
committer | Kanagaraj Manickam <mkr1481@gmail.com> | 2016-02-16 17:52:24 +0530 |
commit | 6c4709696be4d8e5b74b6511b8d4e5e906c91b35 (patch) | |
tree | ee5252a41b19d983270554767f777b2d27dbd63f /heat/rpc | |
parent | f37991c079a76fb9a54cadff3f43dc3796dbf2aa (diff) | |
download | heat-6c4709696be4d8e5b74b6511b8d4e5e906c91b35.tar.gz |
Stack resource search
heat resource-list -f <filters>
imlements blueprint heat-stack-resource-search
APIImpact
Change-Id: Iaae88f3b32bc2ba7b41a4078ef3aa8ffc07079b7
Diffstat (limited to 'heat/rpc')
-rw-r--r-- | heat/rpc/client.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/heat/rpc/client.py b/heat/rpc/client.py index 3b37f9c88..397f975f8 100644 --- a/heat/rpc/client.py +++ b/heat/rpc/client.py @@ -43,6 +43,7 @@ class EngineClient(object): 1.22 - Add support for stack export 1.23 - Add environment_files to create/update/preview/validate 1.24 - Adds ignorable_errors to validate_template + 1.25 - list_stack_resoure filter update """ BASE_RPC_API_VERSION = '1.0' @@ -503,20 +504,23 @@ class EngineClient(object): resource_name=resource_name)) def list_stack_resources(self, ctxt, stack_identity, - nested_depth=0, with_detail=False): + nested_depth=0, with_detail=False, + filters=None): """List the resources belonging to a stack. :param ctxt: RPC context. :param stack_identity: Name of the stack. :param nested_depth: Levels of nested stacks of which list resources. :param with_detail: show detail for resoruces in list. + :param filters: a dict with attribute:value to search the resources """ return self.call(ctxt, self.make_msg('list_stack_resources', stack_identity=stack_identity, nested_depth=nested_depth, - with_detail=with_detail), - version='1.12') + with_detail=with_detail, + filters=filters), + version='1.25') def stack_suspend(self, ctxt, stack_identity): return self.call(ctxt, self.make_msg('stack_suspend', |