-
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_stateWhat 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! -
O olivierlambert marked this topic as a question on
-
O olivierlambert has marked this topic as solved on
-
O olivierlambert moved this topic from Xen Orchestra on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login