Cloud Foundry API /v2/service_instances


Weiss Christian
 

Hallo,

I have created a service broker with tags in the catalog. If a application binds the service I can see the tags in the vcap_services. Now I want to retrieve all service instances with a specific tag. However I was not able to find a appropiate CF API. Using /v2/service_instances
https://apidocs.cloudfoundry.org/272/service_instances/retrieve_a_particular_service_instance.html.
allows to query the instances but does not allows tags as query parameter.
If use this api to retrieve a instance of my service then the tags are even empty. ( "tags": []).
What would be the appropiate way to get a list of service instances with a specific tag?

Best regards, Christian

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.