on 08-14-2020 5:03 PM
Hi,
I need an API of SAP Cloud Foundry account where I can start and stop the deployed app from my WEB-IDE itself. I knew we can do it manually in the account and I can find only the CLI commands for all the functionalities of Cloud Foundry.
But I need an simple API where I can call it from WEB-IDE. If any please help with that.
Thanks in advance 🙂
Hoping for the answer......
Regards,
Gopi
Hi Gopinath,
If you have a CF app deployed, then it is deployed in CF itself and not in WebIDE. WebIDE is just a development tool and you don't deploy anything in WebIDE, but in Cloud Foundry instead.
In Cloud Foundry, there are already CF CLI commands that you can use -- executed the command cf --help
> cf --help
cf version 6.45.0+5f9ff16f9.2019-06-03, Cloud Foundry command line tool
Usage: cf [global options] command [arguments...] [command options]
Before getting started:
config login,l target,t
help,h logout,lo
Application lifecycle:
apps,a run-task,rt events
push,p logs set-env,se
start,st ssh create-app-manifest
stop,sp app delete,d
restart,rs env,e
restage,rg scale
As you can see there are the start and stop commands that you can use. Make sure, you have CF CLI installed in your local machine. This is not something you can do in WebIDE.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gopinath, thanks for clarifying your requirement, however, mentioning
CF deployed app from the WEB-ide code.
only adds further confusion. Maybe having a diagram will help?
My best guess is that you just need some kind of application that controls the state of your CF deployed app to turn on and off based on some conditions.
User | Count |
---|---|
82 | |
11 | |
10 | |
8 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.