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

Get Ready to Use the SAP HANA Cockpit REST API

Prepare all the necessary steps to call SAP HANA cockpit REST API endpoints.

Overview

🎓 beginner 15 min. SAP HANABeginnerSAP API Management

You will learn

  • โœ”How to obtain a service key for authentication and authorization
  • โœ”How to obtain your SAP HANA cockpit host name and appropriate port numbers
  • โœ”How to set up the required Python packages and functions to call the SAP HANA cockpit REST endpoints
Unknown U Unknown November 1, 2022
Created by November 20, 2018
Contributors

Prerequisites

Prerequisites

  • Install the Python programming language on the computer that will call the REST endpoints

Steps

Step 1 Log in to the cockpit host's XSA
โ€”

You will first need to log in to the cockpit machine, for example using PuTTY with your host and port number.

open_PuTTY
open_PuTTY

Run su - h4cadm to switch to the operating system user and enter your password. Navigate to the XSA binaries folder:

Code
cd /hana/shared/H4C/xs/bin/

Run the ./xs-admin-login command and enter your XSA admin user password. The expected output should be similar to the following image:

expected output
expected output

Note: if you installed the cockpit’s persistence on an existing SAP HANA system, make sure you use the correct organization and space names by running the command xs login -o <org_name> -s <space_name>.

Step 2 Generate the service key
+
Step 3 Store the service key
+
Step 4 Obtain the necessary port number
+
Step 5 Obtain an OAuth Token
+

Resources

Discussion

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

Submit detailed feedback Discuss in Community
Steps
Step 1 of 5
1. Log in to the cockpit host's XSA 2. Generate the service key 3. Store the service key 4. Obtain the necessary port number 5. Obtain an OAuth Token

Learn more →