code: def list_media_endpoint_keys(access_token, subscription_id, rgname, msname):
      '''list the media endpoint keys in a media service
  
      Args:
          access_token (str): A valid Azure authentication token.
          subscription_id (str): Azure subscription id.
          rgname (str): Azure resource group name.
          msname (str): Media service name.
  
      Returns:
          HTTP response. JSON body.
      '''
      endpoint = ''.join([get_rm_endpoint(),
                          '/subscriptions/', subscription_id,
                          '/resourceGroups/', rgname,
                          '/providers/microsoft.media/',
                          '/mediaservices/', msname,
                          '/listKeys?api-version=', MEDIA_API])
      return do_get(endpoint, access_tokenf list_media_endpoint_keys(access_token, subscription_id, rgname, msname):
      '''list the media endpoint keys in a media service
  
      Args:
          access_token (str): A valid Azure authentication token.
          subscription_id (str): Azure subscription id.
          rgname (str): Azure resource group name.
          msname (str): Media service name.
  
      Returns:
          HTTP response. JSON body.
      '''
      endpoint = ''.join([get_rm_endpoint(),
                          '/subscriptions/', subscription_id,
                          '/resourceGroups/', rgname,
                          '/providers/microsoft.media/',
                          '/mediaservices/', msname,
                          '/listKeys?api-version=', MEDIA_API])
      return do_get(endpoint, access_token)
docs: list the media endpoint keys in a media service
  
      Args:
          access_token (str): A valid Azure authentication token.
          subscription_id (str): Azure subscription id.
          rgname (str): Azure resource group name.
          msname (str): Media service name.
  
      Returns:
          HTTP response. JSON body.