Call SAP HANA Cockpit GET APIs
2018-11-20
Beginner
15 min.
Introduce all the available SAP HANA cockpit GET APIs and the method to use them.
You will learn
- What are the cockpit GET APIs that you can use
- How to call a cockpit GET APIs
Prerequisites
- Install the Python programming language on the computer that will call the endpoints
SAP HANA cockpit provides non modifying (GET) REST API endpoints. The GET APIs don’t create, delete, or change anything in the cockpit - they only inform you the existing information that you would like to examine.
There are three cockpit GET API endpoints:
RegisteredResourcesGet
: returns information about the resources registered in SAP HANA cockpitGroupsForUserGet
: returns information about the resource groups that are visible to youGroupResourcesGet
: returns information about the resources in a specified group that is visible to you (usescockpit-landscape-svc
)
Only two of the three cockpit GET APIs will be further explained in the following steps. To know more about the cockpit GET APIs, click here to navigate to the SAP Help Portal.
The sample code for all the cockpit APIs (GET and POST ones) is posted at the end of the cockpit POST APIs tutorial as an appendix. The code is written in Python and you are welcome to copy and run it to examine how each API works.
Step 1: Call the RegisteredResourcesGet endpoint
Step 2: Call the GroupsForUserGet endpoint
Navigate tutorial steps