How to get apps that consumed a service


Juan Antonio Breña Moral <bren at juanantonio.info...>
 

This idea could be quite interesting to remove unused cups services


Juan Antonio Breña Moral <bren at juanantonio.info...>
 

Hi,

I have tested your REST Call and it returns the services binded using the following methods:

manifest.yml
manually cf ...

services:
[ { guid: '9e541381-b34d-4a0c-b7da-1ff00a0ffef5',
name: 'mySQLService',
bound_app_count: 1 } ],

One idea could be using a Script:

1. getapps to receive and array of app_guid.
2. loop
2.1 store services associated to app[i]
3. sort information
4. show

Juan Antonio


王小锋 <zzuwxf at gmail.com...>
 

Hi, there

From CF API, it provide method to get services that are bound to a specific
app through rest api:

Get /v2/apps/:guid/summary

But seems it did not provide similar methods in CF to get apps that
consumed a service, for example, how to get which apps consumed a specific
service? Any hints? thanks