Start a Conversation

Unsolved

E

11 Posts

1084

November 26th, 2020 07:00

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 :

https://{ {hostname}}.maif.local/vplex/v2/distributed_storage/distributed_virtual_volumes?consistency_group

=> return all disdev without cg

https://{ {hostname}}.maif.local/vplex/v2/clusters/cluster-1/exports/initiator_ports?target_ports

=> return nothing

 

11 Posts

November 26th, 2020 08:00

eb_rb_0-1606406945970.png

It seems that filter only works on name and type 

PS : anyone found the "lexicalQueryExpression section for details" ?

286 Posts

December 1st, 2020 11:00

Hi, I got this answer from the development team

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.

No Events found!

Top