Vplex api v2 get initiator with empty target_ports attribute
Hi,
I'm looking for the api call to get all initiators that have an empty target_ports attributes.
When you make a GET on an initiator that have no target-ports you get an empty array:
"iscsi_name" : null ,
"node_wwn" : "0xc05076057249999" ,
"port_wwn" : "0xc050760572409999" ,
"suspend_on_detach" : null ,
"target_ports" : [],
"type" : "aix" ,
"bandwidth_limit" : null ,
"iops_limit" : null ,
"name" : "REGISTERED_0xc050760572409999"
I don't know how to syntax query for api v2 to get all items with an attribute which is an empty array
To detect distributed virtual volume without cg (string attribute) I used to filter like this, but it seems that it doesn't work for array typed attributes :
Unfortunately, the query grammar doesn’t support non-scalar types (ie lists, maps) currently in the API. We do have some planned enhancements in this area for future releases, however.
eb_rb
11 Posts
1028
0
Posted November 26th, 2020 08:00
It seems that filter only works on name and type
PS : anyone found the "lexicalQueryExpression section for details" ?