• Inquiry about Obtaining VM Disk Space Usage via XO API or XO-CLI

    5
    0 Votes
    5 Posts
    518 Views
    julien-fJ
    First of all, take a look at the general XO REST API documentation. Then, take a look at xo-cli --help which explain how to use it to interact with the REST API. You can list all VDIs at /rest/v0/vdis, snapshots are available at /rest/v0/vdi-snapshots. You also have the ability to list the VDIs attached to a specific VM at /rest/v0/vms/:id/vdis.
  • Accessing Resource Set and ACLs Information via API

    3
    0 Votes
    3 Posts
    291 Views
    julien-fJ
    @samuelolavo Not exposed in the REST API yet. You can use the legacy API for this: xo-cli acl.get xo-cli resourceSet.getAll
  • Fetch backup information

    11
    0 Votes
    11 Posts
    766 Views
    R
    @julien-f maybe there can we some recoverypoint endpoint? or remotes?
  • Backup job list with most recent status

    1
    0 Votes
    1 Posts
    186 Views
    No one has replied
  • Access historical CPU and memory metrics - Xen Orchestra v5

    18
    1
    0 Votes
    18 Posts
    2k Views
    olivierlambertO
    Have you read https://xapi-project.github.io/xen-api/metrics.html ? It explains the diff between getting all data and only the diff (delta). It's a must read to understand the way RRDs can be fetch.
  • APIs SDKs and Xen-ng

    22
    0 Votes
    22 Posts
    4k Views
    V
    @Danp No of course i can disable it , okay i will not struggle with it After disable HA , i could delete it , thanks
  • Issue with Two-Node HA Cluster: XAPI Failing to Log In and HA Disablement

    Solved
    6
    0 Votes
    6 Posts
    707 Views
    A
    @Danp, glusterfs. Anyway I found the problem. It was a problem with cache size and the client fuse didn't mount it. Thank you really much for helping me.
  • Encoding a URL with : and / in their queries (tags)

    Solved
    7
    0 Votes
    7 Posts
    700 Views
    olivierlambertO
    No worries @Rhodderz happy to know it works for you now!
  • Token access level

    3
    0 Votes
    3 Posts
    355 Views
    olivierlambertO
    Question for @julien-f but you already had an answer from @Danp
  • Fetching a list of available templates

    Solved
    4
    0 Votes
    4 Posts
    528 Views
    M
    @julien-f I've tried templates, but not vm-templates Thank you! It works that way. And yeah, I haven't tried to call just /rest/v0
  • Fetching a list of users?

    Solved
    4
    0 Votes
    4 Posts
    358 Views
    olivierlambertO
    Cf https://xen-orchestra.com/blog/xen-orchestra-5-92#-rest-api
  • Determine if an Host has Hypertreading enabled

    18
    0 Votes
    18 Posts
    1k Views
    R
    @olivierlambert is it possible to apply this changes allready to our XOA? it would help with the development.
  • Fetch VMS and there current hosts

    10
    0 Votes
    10 Posts
    624 Views
    julien-fJ
    After reflection I don't think I will implement /hosts/<host id>/residentVms, you can do it very easily with filter: /vms?filter=$container:<host id>.
  • Group Query

    9
    1 Votes
    9 Posts
    731 Views
    julien-fJ
    As @Danp said, changes appear first in the GitHub repo and are available for the XOAs at the next release in the latest channel. But, as it appear, we just did a new patch release (5.91.2) which also contains the REST API changes we talked about
  • Rest api timeout, how to set timeout in xo-cli

    1
    0 Votes
    1 Posts
    185 Views
    No one has replied
  • Has REST API changed (Cannot GET backup logs)?

    Solved
    7
    0 Votes
    7 Posts
    510 Views
    julien-fJ
    @DustyArmstrong Thanks for your report
  • REST API token generation via curl

    7
    0 Votes
    7 Posts
    1k Views
    julien-fJ
    @dan89 Yes, you can pass the --expires flag to change the validity of a token. But you cannot go above maxTokenValidity though you can increase it in your xo-server's config. Example: xo-cli --createToken --expiresIn 90d https://XOA.company.lan admin password
  • xo-cli as cron-job: Error [ERR_MODULE_NOT_FOUND]: Cannot find package

    3
    0 Votes
    3 Posts
    345 Views
    olivierlambertO
    Haha yeah, it's an usual mistake I'm often doing myself
  • XO Rest API Supported Queries

    Moved
    16
    0 Votes
    16 Posts
    2k Views
    julien-fJ
    @DustyArmstrong Perfect, thanks for your feedback
  • xo-cli and REST - show available fields

    Moved Solved
    3
    0 Votes
    3 Posts
    361 Views
    K
    @julien-f Thank you very much!!! GREAT!