Doubt: Filter 2 Service Bindings with 2 parameters


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

Hi,

this is a possibility. I could find the information using this REST CALL. I have found another way:
http://apidocs.cloudfoundry.org/221/user_provided_service_instances/list_all_service_bindings_for_the_user_provided_service_instance.html

Many thanks for the clue.


Dieu Cao <dcao@...>
 

Have you tried using the nested end point?
http://apidocs.cloudfoundry.org/221/apps/list_all_service_bindings_for_the_app.html

-Dieu
CF CAPI PM

On Mon, Oct 19, 2015 at 8:19 AM, Juan Antonio Breña Moral <
bren(a)juanantonio.info> wrote:

Hi,

I would like to filter using 2 criterias for this REST method:


http://apidocs.cloudfoundry.org/221/service_bindings/list_all_service_bindings.html

var filter2 = {
'q': 'app_guid:' + "65be2a2d-a643-4e01-b33d-8755d5934ae6",
'q': 'service_instance_guid:' +
"9e541381-b34d-4a0c-b7da-1ff00a0ffef5"

};

Currently, using this way, the REST method only filter for the latest
parameter.
Does exist a possibility for both criteria?

Juan Antonio


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

Hi,

I would like to filter using 2 criterias for this REST method:

http://apidocs.cloudfoundry.org/221/service_bindings/list_all_service_bindings.html

var filter2 = {
'q': 'app_guid:' + "65be2a2d-a643-4e01-b33d-8755d5934ae6",
'q': 'service_instance_guid:' + "9e541381-b34d-4a0c-b7da-1ff00a0ffef5"

};

Currently, using this way, the REST method only filter for the latest parameter.
Does exist a possibility for both criteria?

Juan Antonio