Read data from the vault path

def _fetch_secrets(vault_url, path, token):
        """Read data from the vault path"""
        url = _url_joiner(vault_url, 'v1', path)
        resp = requests.get(url, headers=VaultLoader._get_headers(token))
        resp.raise_for_status()
        data = resp.json()
        if data.get('errors'):
            raise VaultException(u'Error fetching Vault secrets from path {}: {}'
                                 .format(path, data['errors']))
        return data['data']