def retention_policy_get(database, name, user=None, password=None, host=None, port=None):
 client = _client(user=user, password=password, host=host, port=port)
 for policy in client.get_list_retention_policies(database):
  if (policy['name'] == name):
   return policy
 return None

def retention_policy_get ( database , name , user = None , password = None , host = None , port = None ) : client = _client ( user = user , password = password , host = host , port = port ) for policy in client . get_list_retention_policies ( database ) : if ( policy [ 'name' ] == name ) : return policy return None
get an existing retention policy .