Community Return to multiportal.io
Skip to content

API & Automation

3 Topics 4 Posts

REST API, scripting, Terraform, Ansible, and integrations

  • Create virtual datacenter via API

    1
    2
    0 Votes
    1 Posts
    52 Views
    C
    Environment MultiPortal Version: 1.2.1 Proxmox VE Version: 9.2.6 Deployment Type: HA Cluster Description When we create a virtual datacenter via the API, the “reseller” and “tenant” variables in the Proxmox resource pool do not appear to be populated. However, when a datacenter is created via the GUI, the reseller and tenant names do appear there. Datacenter Name (GUI): Reseller_XYZ.Kunde_ABC.vdc.9672ec9c-4199-43b0-b258-f2ce4135673c [image: 1789050383346-c9b07b78-ffda-4468-94d9-79dc8577eca3-image.jpeg] Datacenter Name (API): reseller.tenant.vdc.bbfa10c2-7c52-4d6e-986f-d6c0c156fd80 [image: 1789050397348-670ac32b-19c1-4eed-8c5d-9bf26def9e41-image.jpeg] I also checked the swagger documentation but couldn’t find a way to change this behavior. Expected Behavior The ressource pool on Promox includes the reseller and tenant names also when created via api. Actual Behavior The ressource pool on Proxmox only includes the id of the virtual datacenter, and doesn’t include the showname of the reseller and tenant when created via api.
  • 0 Votes
    2 Posts
    48 Views
    StellS
    Interesting suggestion, are you able to DM me the name of the ITSM solution?
  • No API Endpoints for Guest Agent Information and Snapshot Creation

    1
    0 Votes
    1 Posts
    1k Views
    F
    Environment MultiPortal Version: v1.2.1 Proxmox VE Version: 9.1.1 Deployment Type: Single Node Description There is no documented way (in the Swagger API or somewhere else) to obtain the Guest Agent Information like the current IP Adress of a VM. I have found a Workaround by analysing the GET Requests my Browser does but this does not seem like a viable and futureproof solution. I have also found out that there is no way to create/list/revert/delete Snapshots of a VM via the API. I have done the same thing with the workaround via the get requests (even tho its a little bit harder to do) but its also no futureproof solution. It would be good to have api endpints for this (or they already exist and I havent found them yet), especially for deployment automations and data retrieval. Expected Behavior API Endpoints for Snapshot Management and Guest Agent Information Actual Behavior No Documented API endpoints in the Swagger API Documentation or somewhere else. No good way to implement it other than using the endpoints the browser uses and reverse enginnering those. Thank you in advance for the Help! Kind Regards, Fabio