def list_profiles(profilejson):
  """ expecting big json chunk containing all profiles applied to the virtual server.
  returns a string listing profile names
  """
  listofprofiles = ''
  for nextprofile in profilejson['items']:
    if listofprofiles == '' :
      listofprofiles = nextprofile['name']
    else:
      listofprofiles = listofprofiles + "; " + nextprofile['name']

  return(listofprofiles)