contrail
contrail copied to clipboard
filter support for list
How to filter an object with list as attribute?
Below filter does not work ?filters=supported_platforms==EX4200
{
"image": [
{
"supported_platforms": [
"EX4200",
"EX3500"
],
"id":"1",
"name":"Test1"
},
{
"supported_platforms": [
"EX9200"
],
"id":"2",
"name":"Test2"
},
{
"supported_platforms": [
"EX4200",
"EX7400"
],
"id":"3",
"name":"Test3"
}
]
}
Do we have this support? https://github.com/Juniper/contrail/blob/master/doc/rest_api.md#listing-resources
Thanks, Vinamra