Skip to main content
Question

Looking for get-ntnxvm -SearchAttributeList syntax

  • Apr 27, 2020 8:38 PM UTC
  • 2 replies
  • 2600 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
  • Jul 14, 2020 8:41 PM UTC

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
  • Jul 16, 2020 8:50 PM UTC

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