• vm.stats questions on response and parameters

    1
    0 Votes
    1 Posts
    63 Views
    No one has replied
  • REST API create_vm returns task URL that doesn't exist?

    Solved
    7
    0 Votes
    7 Posts
    1k Views
    MathieuRAM
    Hi @DevFlint, tasks are now correctly visible in the swagger documentation
  • How to revert VM to snapshot

    Solved
    13
    0 Votes
    13 Posts
    2k Views
    MathieuRAM
    Hi @slavavrn, FYI, its now possible to revert a snapshot via the REST API. POST /vms/:id/actions/revert_snapshot And the body of the endpoint: { "snapshotId": <snapshot-id> "snapshotBefore": boolean (optional) }
  • 0 Votes
    7 Posts
    529 Views
    1
    @poddingue Confirmed working, thank you so much for the heads-up, this made my day! Got it wired into the n8n flow and it's running perfectly. One gotcha for anyone else landing here, name_description gets rejected with a 422 "excess property", it has to be nameDescription. Working body: { "nameDescription": "nginx, app-1, app-2 | 2026-06-01" }
  • Disable TX checksumming with API

    6
    0 Votes
    6 Posts
    1k Views
    poddingueP
    Bit of a necropost on your necropost, but this got easier in XO 6.5. The REST API now accepts a txChecksumming parameter when you create a VIF (PR #9793, https://github.com/vatesfr/xen-orchestra/pull/9793), and it maps straight onto the ethtool-tx / other_config value you were setting by hand. So, for new interfaces, you can do it through /rest/v0 now instead of the XAPI script. I think it's on the create path rather than existing VIFs, though, so for the firewalls already running your script or the gear icon is probably still the way, and I haven't tested it against a live VIF myself. Either way, it's nice to have it native in the API now. All-Ki opened this pull request in vatesfr/xen-orchestra closed feat(rest-api): add support for txChecksumming and rateLimitting on V… #9793
  • hosts stats rest api

    Moved Solved
    6
    0 Votes
    6 Posts
    1k Views
    MathieuRAM
    Hi @r0123456789, GET /rest/v0/hosts/:id/stats is available in the REST API
  • REST API token generation via curl

    Solved
    8
    0 Votes
    8 Posts
    2k Views
    MathieuRAM
    Hi @dan89, It is possible to create an authentication_token using the REST API. POST /rest/v0/users/me/authentication_tokens
  • Token access level

    Solved
    4
    0 Votes
    4 Posts
    650 Views
    MathieuRAM
    Hi @Steve_Sibilia, FYI, ACL V2 / RBAC is now available in the REST API. You can see the RBAC doc. A dedicated thread is available on the forum thread, please feel free to share your feedback. Thank you.
  • API authentication token permissions

    Solved
    6
    0 Votes
    6 Posts
    488 Views
    MathieuRAM
    Hi @halvor, FYI, ACL V2 / RBAC is now available in the REST API. You can create a privilege that only give you read privilege on your host. You can see the RBAC doc. A dedicated thread is available on the forum thread, please feel free to share your feedback. Thank you.
  • VIF via REST API?

    Solved
    9
    0 Votes
    9 Posts
    988 Views
    MathieuRAM
    Hi @jedimarcus, FYI, VIF creation is possible via the REST API POST /rest/v0/vifs
  • REST - Reversed query?

    3
    0 Votes
    3 Posts
    181 Views
    DustyArmstrongD
    @florent OK cool, thank you for the info.
  • Feedback from Automation Project (vCPUs, VDI rename, boot order)

    5
    0 Votes
    5 Posts
    418 Views
    K
    @olivierlambert & @mathieura thanks for the speedy response. Duly noted, very much appreciated.
  • IPMI/ IDRAC (XAPI)

    Solved
    8
    0 Votes
    8 Posts
    721 Views
    K
    @gduperrey Worked swell, thanks
  • Unable to define count of CPUs during VM create

    Solved
    7
    1
    0 Votes
    7 Posts
    469 Views
    acebmxerA
    @MathieuRA Glad to see this finally fixed. I brought this up a while ago... https://xcp-ng.org/forum/post/102102
  • Automation of all CURD operations

    6
    0 Votes
    6 Posts
    418 Views
    J
    @rama said: @olivierlambert thank you. but is it possible to keep tracking all the CURD operation like we have in terraform. but currently MCP have only Read tasks. Like if some new interns in my lab don't know about this and in this agentic framework if he/she need a VM's, delete or update it can be done very quick. it will save many hours. I hope this will be available in future or if you wish to do tell me how far it is. The plugin MCP Server is read only by design to keep using it safe, to have an MCP for reading and another for writing is best practice. If you desire to have a separate MCP server for the writing actions, feel free to suggest that in the feedback portal. You can even develop your own MCP server, which makes calls to the write side of the XO REST API. https://modelcontextprotocol.io/
  • REST API: Attaching an existing .vhd to a stopped VM

    11
    0 Votes
    11 Posts
    740 Views
    BytevenidosB
    @Danp alright, thanks. I'll give that a try.
  • This topic is deleted!

    5
    1
    0 Votes
    5 Posts
    12 Views
  • filter for custom field

    Solved
    6
    0 Votes
    6 Posts
    503 Views
    R
    @Pilow tags can work and the path to them is much more succinct. Thanks!
  • XCP-NG API token

    5
    0 Votes
    5 Posts
    1k Views
    L
    @florent, I had to do the same for Xen Orchestra Community Edition. In my case, config.toml already contained the [authentication] section, so adding a separate config.tokenValidity.toml file did not work. Instead, I had to modify the existing config.toml located at /opt/xo/xo-server. In my opinion, it is best to keep defaultTokenValidity set to 30 days as a fallback in case no value is specified. You can then simply increase maxTokenValidity to the duration you prefer. [authentication] defaultTokenValidity = '30 days' # default value of 0.5 years # comment out and increase to 5 years #maxTokenValidity = ' 0.5 year' maxTokenValidity = '5 year'
  • API Fetching a list of users with OTP activated

    Solved
    4
    1
    0 Votes
    4 Posts
    414 Views
    F
    @MathieuRA Thank you, perfect Br,