-
As our REST API is going better and better, we wanted to centralize the community efforts on building scripts and solutions on top of it

Our first example on our side, is to help returning a CSV with all VMs without any backup job:
https://gist.github.com/olivierlambert/a7d4a0add61c96d837db81970bc7212fYou can use it this way:
# node restapi.mjs <XOA URL> <XOA TOKEN> "VM-NAME";"VM-UUID"; "HOST/CLUSTER";"Tags" "Test Debian 11";"29d19fd6-6337-2f5c-1dd8-789e2463271d";"c1d386df-990a-a892-ca89-267e7b3b5afd/c1d386df-990a-a892-ca89-267e7b3b5afd";"Prod" "dml-netperf-zen4-1";"b85e7d22-c63d-3fcf-3f3c-5f22e599d2c8";"6362271f-abdc-40ac-a59b-a447c2570ed1/c1d386df-990a-a892-ca89-267e7b3b5afd";"Test"But obviously, more examples in more languages are always a plus!
-
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