UNSOLVED

krutoy64

updated

9 years ago

K

krutoy64

13 Posts

0

4616

January 17th, 2018 11:00

how can I list all attributes via the REST API ???

Hi everyone,

So I'm successfully able to get the attributes back that I need from the REST API but I need to specify each one individually which is kind of a hassle/pain.

i.e : '/api/types/datastore/instances?fields=storageResource,name,format,host,vmDisks,vms'

Does anyone know of a way that I can list them ALL out without specifying each field individually ?

If you pass it '/api/types/datastore/instances' , it only returns the ID.

Is there anything I can do such as 'instances?fields=*' that will return every attribute ?

Please let me know.

Thank you!