cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

API for start and Stop of Hana Cloud Service

vipin_v2
Participant
0 Kudos
1,182

Hi,

As part of reducing credit consumption of Hana Cloud Service presently performing start and stop manually and looking to automate it, came across AutomationPilot however it' s not available in the region Europe(Netherlands) and provider MS Azure.

As such for Stop and Start of Hana Cloud Service if to automate what is the API which can be used to automate Stop and Start of Hana Cloud service ?

Best Regards,

Vipin.

Accepted Solutions (0)

Answers (3)

Answers (3)

Yogananda
Product and Topic Expert
Product and Topic Expert

Start the HANA Cloud Server

cf update-service hana_cloud_yoga -c '{"data":{"serviceStopped":false}}'

Stop the HANA Cloud Server

cf update-service hana_cloud_yoga -c '{"data":{"serviceStopped":true}}'
Yogananda
Product and Topic Expert
Product and Topic Expert

vipin8055

As far as I know, you can use it through cf comands to stop and start HANA Cloud ... Many of the customers have automated through shell scripts and added to cronjob.

--- To Start but change the service instance name -------------
cf update-service hana_cloud_yoga -c '{"data":{"serviceStopped":false}}'
--- To Stop but change the service instance name -------------
cf update-service hana_cloud_yoga -c '{"data":{"serviceStopped":true}}'
NanWang
Product and Topic Expert
Product and Topic Expert
0 Kudos

you can refer to the API in this page: Overview | Service Manager | SAP Business Accelerator Hub

By this API, you can operate hana cloud and any other instances in BTP as your wish ~