Exemple #1
0
    def describe_security_groups(self):
        groupnames = process_groupnames_from_querystring(self.querystring)
        group_ids = process_group_ids_from_querystring(self.querystring)
        filters = filters_from_querystring(self.querystring)

        groups = ec2_backend.describe_security_groups(group_ids=group_ids,
                                                      groupnames=groupnames,
                                                      filters=filters)

        template = Template(DESCRIBE_SECURITY_GROUPS_RESPONSE)
        return template.render(groups=groups)
Exemple #2
0
    def describe_security_groups(self):
        groupnames = self._get_multi_param("GroupName")
        group_ids = self._get_multi_param("GroupId")
        filters = filters_from_querystring(self.querystring)

        groups = ec2_backend.describe_security_groups(
            group_ids=group_ids,
            groupnames=groupnames,
            filters=filters
        )

        template = Template(DESCRIBE_SECURITY_GROUPS_RESPONSE)
        return template.render(groups=groups)
Exemple #3
0
    def describe_security_groups(self):
        groupnames = process_groupnames_from_querystring(self.querystring)
        group_ids = process_group_ids_from_querystring(self.querystring)
        filters = filters_from_querystring(self.querystring)

        groups = ec2_backend.describe_security_groups(
            group_ids=group_ids,
            groupnames=groupnames,
            filters=filters
        )

        template = Template(DESCRIBE_SECURITY_GROUPS_RESPONSE)
        return template.render(groups=groups)
Exemple #4
0
 def describe_security_groups(self):
     groups = ec2_backend.describe_security_groups()
     template = Template(DESCRIBE_SECURITY_GROUPS_RESPONSE)
     return template.render(groups=groups)
Exemple #5
0
 def describe_security_groups(self):
     groups = ec2_backend.describe_security_groups()
     template = Template(DESCRIBE_SECURITY_GROUPS_RESPONSE)
     return template.render(groups=groups)