cf-java-client icon indicating copy to clipboard operation
cf-java-client copied to clipboard

get service params possible?

Open FaulhabeJ001 opened this issue 4 years ago • 1 comments

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.

FaulhabeJ001 avatar Jun 17 '21 13:06 FaulhabeJ001

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

dmikusa avatar Jan 18 '22 17:01 dmikusa