Question

Looking for get-ntnxvm -SearchAttributeList syntax

  • 27 April 2020
  • 2 replies
  • 2460 views

Badge +2

Looking for get-ntnxvm -SearchAttributeList syntax.

Since the get-help doesn’t provide any information besides:  “Search attribute list, only searches on few attributes. For accurate search, provide field names”

Can someone provide an example of how to use this parameter? Most examples seem to use -searchstring.  I would like to search for vmname.  I know I can use a where clause and filter that way but curious if -SearchAttributeList could also do it.


This topic has been closed for comments

2 replies

Userlevel 2
Badge +2

Hello @MrMike,

Please let me know if you find this document helpful:

https://portal.nutanix.com/page/documents/details?targetId=API-Ref-AOS-v5_17%3AAPI-Ref-AOS-v5_17

Feel free to reach out to us if you have further queries

 

Thank you,

Maaz

 

 

Badge +2

Looks like the -FilterCriteria criteria can also be used this way.  Any examples of the correct syntax for -FilterCriteria or -SearchAttributeList would be helpfu.