Re: Doubt: Filter 2 Service Bindings with 2 parameters


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

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