diff --git a/vmtconnect/__about__.py b/vmtconnect/__about__.py index ad14794..2f785e2 100644 --- a/vmtconnect/__about__.py +++ b/vmtconnect/__about__.py @@ -13,7 +13,7 @@ __title__ = 'vmtconnect' __description__ = 'Turbonomic API Client' -__version__ = '3.0.1' +__version__ = '3.0.2' __author__ = 'R.A. Stern' __author_email__ = 'rastern@gmail.com' __license__ = 'Apache 2.0' diff --git a/vmtconnect/vmtconnect.py b/vmtconnect/vmtconnect.py index b8a71b0..0d766ff 100644 --- a/vmtconnect/vmtconnect.py +++ b/vmtconnect/vmtconnect.py @@ -845,15 +845,25 @@ def get_group_by_name(self, name): if grp['displayName'] == name: return [grp] + def get_group_entities(self, uuid): + """Returns a detailed list of member entities that belong to the group. + + Args: + uuid (str): Group UUID. + + Returns: + A list containing all members of the group and their related consumers. + """ + return self.request('groups/{}/entities'.format(uuid)) + def get_group_members(self, uuid): - """Returns a list of member entities that belong to the group. + """Returns a list of members that belong to the group. Args: uuid (str): Group UUID. Returns: - A list containing all members of the group, of the appropriate group - type. + A list containing all members of the group. """ return self.request('groups/{}/members'.format(uuid))