Hi Jean-Philippe, Some quotes are needed for this to work. So I verified this works: curl -u admin:secret123 localhost:8095/instance-ips?'filters=instance_ip_address=="1.1.1.4”'
and this doesn’t curl -u admin:secret123 localhost:8095/instance-ips?'filters=instance_ip_address==1.1.1.4’ and neither does this curl -u admin:secret123 localhost:8095/instance-ips?filters=instance_ip_address==“1.1.1.4" thanks ajay > On Oct 22, 2015, at 2:18 AM, Jean-Philippe Braun <[email protected]> wrote: > > Hello, > > I'm trying to use API filters but it doesn't work for me. This is what I'm > trying: > > http://host:8082/instance-ips?fields=instance_ip_address, returns: > > {"instance-ips": [ > { > "instance_ip_address": "10.0.0.3", > "href": > "http://host:8082/instance-ip/6bb76c56-92c7-47c8-b806-3c5faff42416", > "fq_name": [ > "6bb76c56-92c7-47c8-b806-3c5faff42416" > ], > "uuid": "6bb76c56-92c7-47c8-b806-3c5faff42416" > } > ]} > > But if I call the API with > http://host:8082/instance-ips?filters=instance_ip_address==10.0.0.3 I get: > > {"instance-ips": []} > > I checked the cassandra db to see if the prop:x record exists and it does. > > So, what am I doing wrong ? > > Thanks > > Jean-Philippe > > _______________________________________________ > Dev mailing list > [email protected] > http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org _______________________________________________ Dev mailing list [email protected] http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org
