cancel
Showing results for 
Search instead for 
Did you mean: 

Different between service-binding and binding?

0 Kudos
147

I implement a pipeline-test for a new deployment for an instance e.g. cloud-logging using BTP CLI.

With 'btp list services/instance' also the cloud-logging-service listed. But if I try to create a new service-binding  "btp create services/binding ...--instance-name poetry-slams-cloud-logging" I got the error message "service instance not found or not accessible".  I saw that on UI also differentiates between binding and service binding. What is the different exactly and for which service/instances is service-binding allowed.

A follow-up question would be how do I get the credentials for the new deployed instance via BTP cli or CF cli? 

Thanks,

Antonia

Thanks,

Antonia

View Entire Topic
umasaral
Participant
0 Kudos

Hi

Difference Between Binding and Service Binding
    Binding: Typically refers to binding an application to a service. This allows the application to use the service's functionality, like a database or a messaging queue.
    Service Binding: Refers to creating a specific binding between a service instance and an application, which involves generating credentials and configuration details for the application to connect to the service instance.
 
Why You're Seeing the Error
 
The error "service instance not found or not accessible" suggests that the service instance name poetry-slams-cloud-logging is either incorrect or not available in the context you’re trying to bind it. 
Note:  Ensure the instance name is correct and that you’re using the right context (e.g., the correct subaccount or environment).
 
 How to Get Credentials for a Deployed Instance
 
 Using BTP CLI:
 
 List instances:  btp list services/instance
Get the credentials for an instance: btp show services/instance --instance-name <instance-name>
 
Using CF CLI:
List services: cf services
Get service instance details: cf service <service-instance-name>
 
Note:
Make sure you’re logged in to the correct environment and have the right permissions to access the service instance and its credentials.

 

0 Kudos
Hello,
0 Kudos
Does not exist: Get the credentials for an instance: btp show services/instance --instance-name <instance-name> Invalid command: show services/instance
0 Kudos
btp get services/instance does exist as command but not retrieve the credentials
0 Kudos
Hello, How to Get Credentials for a Deployed Instance using BTP CLI: I found no way to get to the crdetials of deployed instance cloud-logging btp show services/instance command does not exists and btp get services/instance does not retrieve the credtials. I only found a way to get the credtials using cf cli, Create a service key and retrieve service key. Is this the soultion? Best regards, Antonia