SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
โคข Open full site

Using the SAP HANA data lake File Store REST API

Learn how to use the SAP HANA data lake REST API to manage, upload, read,delete, and list your files.

Overview

🎓 beginner 30 min. SAP HANA Cloud Data LakeBeginnerSAP HANA Cloud

You will learn

  • โœ”How to use the SAP HANA data lake File Store REST API.
  • โœ”Users without access to the HDLFSCLI can use the REST API to perform File Store operations.
Jason Hinsperger J Jason Hinsperger November 18, 2025
Created by February 1, 2022
Contributors

Prerequisites

Prerequisites

Steps

Intro

SAP HANA data lake file containers are accessible via a REST API. The official REST API reference can be found here. However, below are some python demonstrations using some of the common endpoints. Although this tutorial doesn’t cover other endpoint testing tools, these endpoints and the contents of the request body can be used in any other http interface such as PostMan or CURL.


Step 1 Set Up a Python Script
โ€”

First, in the top of a python script append the following and fill in the variables with the appropriate data for your SAP HANA data lake file container. This will load the appropriate Python library for making HTTP requests and will set some commonly re-used variables for the API calls.

Python
import http.client
import ssl

FILES_REST_API='<File Container REST API>'
CONTAINER = '<File Container ID>'
CRT_PATH = '<Path to Client Certificate>'
KEY_PATH= '<Path to Client Key>'

context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
context.check_hostname = False
context.verify_mode = ssl.CERT_NONE
context.load_cert_chain(certfile=CRT_PATH, keyfile=KEY_PATH)
Step 2 Use the CREATE Endpoint
+
Step 3 Use the OPEN Endpoint
+
Step 4 Use the LISTSTATUS Endpoint
+
Step 5 Use the LISTSTATUS_RECURSIVE Endpoint
+
Step 6 Use the DELETE Endpoint
+
Step 7 Use the DELETE_BATCH Endpoint
+
Step 8 Explore and Experiment!
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 8
1. Set Up a Python Script 2. Use the CREATE Endpoint 3. Use the OPEN Endpoint 4. Use the LISTSTATUS Endpoint 5. Use the LISTSTATUS_RECURSIVE Endpoint 6. Use the DELETE Endpoint 7. Use the DELETE_BATCH Endpoint 8. Explore and Experiment!

Learn more →