• Sorting out APIs and Ansible Modules

    7
    0 Votes
    7 Posts
    1k Views
    olivierlambertO
    Yes, you can use Terraform directly
  • Using API to automate VM OS Drive replacement

    9
    0 Votes
    9 Posts
    969 Views
    K
    Hi @olivierlambert , Okay, I made some progress today and have worked out the steps to remove, delete or add drives to a VM. Removed drive from the server attached to and also deleted the disk itself xo-cli vdi.delete id=<the id of the VDI> Removed drive from the server attached to, but didn't delete the disk! xo-cli vdb.delete id=<the id of the VBD> Added a drive to the server xo-cli vm.attachDisk vdi=<the id of the VDI> vm=<the id of VM> If was the last one that I was missing. I'm still not sure of the difference between the 'uuid' and 'id' fields, but will use the 'id' as this seems to be what the commands are wanting. Thanks Kent.
  • programmatically connect SR (NFS)

    Solved
    5
    0 Votes
    5 Posts
    638 Views
    olivierlambertO
    Perfect, excellent news Enjoy XCP-ng!
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Get VNC Console Stream via REST API

    4
    0 Votes
    4 Posts
    769 Views
    julien-fJ
    @Morpheus0x Your feature request has been noted and will be put in the backlog. It appears to be trivial so it should we'll try to do it soon but I cannot tell you when.
  • Xen Orchestra API and documentation - Examples

    Moved
    11
    0 Votes
    11 Posts
    3k Views
    olivierlambertO
    I think it might be easier to do so with the new REST API, what do you think @julien-f ?
  • Example - List all VM backups

    7
    0 Votes
    7 Posts
    1k Views
    K
    @cmuller Thank you! It's great to see code-sharing in the forum!
  • Inquiry about Obtaining VM Disk Space Usage via XO API or XO-CLI

    5
    0 Votes
    5 Posts
    816 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
    479 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
    1k 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
    278 Views
    No one has replied
  • Access historical CPU and memory metrics - Xen Orchestra v5

    18
    1
    0 Votes
    18 Posts
    3k 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
    5k 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
    934 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
    1k Views
    olivierlambertO
    No worries @Rhodderz happy to know it works for you now!
  • Token access level

    3
    0 Votes
    3 Posts
    478 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
    846 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
    464 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
    2k 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
    982 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>.