#NEWLINE# @ content #NEWLINE# def GET( self , cluster_id ) : #NEWLINE# #INDENT# 'Get VIPs collection optionally filtered by network or network role.\n\n        :parameter cluster_id: cluster identifier.\n        :type cluster_id: basestring\n        :returns: Collection of JSON-serialised IpAddr objects.\n\n        :http: * 200 (OK)\n               * 404 (cluster not found in db)\n        ' #NEWLINE# network_id = web . input ( network_id = None ) . network_id #NEWLINE# network_role = web . input ( network_role = None ) . network_role #NEWLINE# self . get_object_or_404 ( objects . Cluster , int ( cluster_id ) ) #NEWLINE# return self . collection . to_json ( self . collection . get_vips_by_cluster_id ( int ( cluster_id ) , network_id , self ) )