-
Hi!
I am just trying to use the XO-api.
It is working fine to get e.g. the VM-list:
xo-cli rest get vms fields=name_label,power_state
What I did not find is an option to get the "available" fields. Is there any possibility to get a list or a "fields_all"-option?
Thank you and best wishes
KPS -
@KPS Hello, yes it's possible, you can specify
fields=*
to get all of them. It is not documented because it should not be used in production, users should specify exactly what fields they need when fetching a collection.An alternative way to discover the fields is to too look to a specific record:
xo-cli rest get vms/123e4f2b-498e-d0af-15ae-f835a1e9f59f
-
@julien-f
Thank you very much!!! GREAT! -
-
-