Call SAP HANA Cockpit GET APIs
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 five 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
)GroupUsersGet
: returns information about the cockpit users in SAP HANA cockpit Database GroupCockpitUsersGet
: returns information about cockpit users
Only two of the five 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.