on ‎2022 Aug 18 11:38 AM
Hello,
I am familiar with creating SCP CF Destinations by filling some parameters in BTP Cockpit UI. However, our requirement is to create this destination through pipelines (Like a separate stage in CI/CD). We are neither able to find any REST endpoints nor any CLI commands that SAP provides that will fulfil this purpose.
Has anyone already tried this or is it really possible ?
Any help would be really appreciated on this.
Thank you!!
Request clarification before answering.
I would suggest that you checkout what you can do using a mta.yaml. I have an example which creates the destinations required for the HTML5 repository access:
https://github.com/gregorwolf/cap-websockets/blob/main/mta.yaml#L71
Check also this issue Example: SAP CP Destinations #39 in the CF MTA Example repository.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Successfully tried it out!
cf create-service 'destination' 'lite' 'destination-instance-1' -c 'config.json' --wait
--or--
cf update-service 'destination-instance-1' -c 'config.json' --wait
config.json
{
"HTML5Runtime_enabled" : "false",
"init_data" : {
"instance" : {
"existing_destinations_policy": "update",
"destinations" : [
{
"Authentication": "NoAuthentication",
"Name": "UI5",
"ProxyType": "Internet",
"Type": "HTTP",
"URL": "https://ui5.sap.com"
},
{
"Authentication": "BasicAuthentication",
"Name": "sap-ecc",
"Description": "sap-ecc",
"ProxyType": "OnPremise",
"Type": "HTTP",
"URL": "http://sap-ecc.local:80",
"CloudConnectorLocationId": "CITRIX_VM",
"User": "RFCPMMOBIXXX",
"Password": "**********"
}
]
}
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anu
1) Similar to
other services, you can create a service instance of destination service with
provided JSON-parameter-file.
In this file you can pass your destination configurations.
To learn
about the file format, you can just export an existing destination
configuration to file system
2) To use the REST API, you can have a look at the docu and the REST API reference
Does this help?
Kind Regards,
Carlos
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Haven't tried it yet, but I am about to. Should be possible via CLI?
cf create-service destination lite 'my-destination-service-1' -c config.jsonYou must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.