Esempio n. 1
0
    def get(self, server_id):
        """
        Get list of Clients related to this Server
        """

        args = include_data_arguments.parse_args(request)
        results = DATA.get_server_clients(server_id, args.get('data'))

        return results
Esempio n. 2
0
    def get(self, client_id):
        """
        Get list of Locations related to this Client
        """

        args = include_data_arguments.parse_args(request)
        results = DATA.get_client_locations(client_id, args.get('data'))

        return results
    def get(self, location_id):
        """
        Get list of Servers related to this Location
        """

        location_id = normalize_key(location_id)

        args = include_data_arguments.parse_args(request)
        results = DATA.get_location_servers(location_id, args.get('data'))

        return results