Skip to main content
Question

Looking for get-ntnxvm -SearchAttributeList syntax

  • April 27, 2020
  • 2 replies
  • 2544 views

Forum|alt.badge.img+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 replies.

2 replies

Forum|alt.badge.img+2
  • Author
  • Trailblazer
  • 16 replies
  • July 14, 2020

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


maaz
Nutanix Employee
Forum|alt.badge.img+2
  • Nutanix Employee
  • 10 replies
  • July 16, 2020

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