on 2021 Jan 27 4:24 AM
Hi All,
I am trying to stop and start my HANA Cloud Database using Cloud Foundry CLI.
cf version 6.52.0+b086fe522.2020-08-26
I can connect using the cf login without any issues and can see the services using cf services.
I have tried both the below commands
cf update-service myerpdb-db -c '{"action":"START|STOP"}'
cf update-service myerpdb-db -c '{"data":"serviceStopped":false}'
FAILED
Invalid configuration provided for -c flag. Please provide a valid JSON object or path to a file containing a valid JSON object.
I have not created the service instance using the Service Instance
Thanks
Afshin
Request clarification before answering.
From what terminal you are executing that command.
This will work for instance on a bash shell:
cf update-service myerpdb-db -c '{"action": "START"}'
Executing the command in e.g. a Powershell terminal requires to escape special signs like double quotes:
cf update-service myerpdb-db -c '{\"action\": \"START\"}'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
interesting blog post for more information: https://blogs.sap.com/2021/01/11/automate-hana-cloud-administration-tasks-such-as-instance-creatio-s...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The following tutorial demonstrates executing various administrative tasks such as start/stop/create/update/upgrade of an SAP HANA Cloud instance using the BTP and CF CLIs.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
68 | |
15 | |
12 | |
7 | |
7 | |
4 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.