cloudfoundry / cf-java-client

Java Client Library for Cloud Foundry
Apache License 2.0
328 stars 318 forks source link

get service params possible? #1105

Open FaulhabeJ001 opened 3 years ago

FaulhabeJ001 commented 3 years ago

We are currently working on a GitOps-Tool. This tool deploys apps to cloud foundry and uses the cf-java-client. For this we need to use params when creating a service. With CreateServiceInstanceRequest this is no problem (field Map<String, Object parameters.

Question: How can we GET this params to a given service with the cf-java-client-API? In ServiceInstance and ServiceInstanceSummary theres not such a property.

dmikusa commented 2 years ago

Sorry for the delayed response.

I believe you want https://github.com/cloudfoundry/cf-java-client/blob/main/cloudfoundry-client/src/main/java/org/cloudfoundry/client/v2/serviceinstances/ServiceInstances.java#L66

Parameters are a separate call to the API, so you need a specific request for them in the client.

https://apidocs.cloudfoundry.org/16.22.0/service_instances/retrieve_a_particular_service_instance_parameters.html