OpenAPI/Swagger REST API Spec

JalfResi

New Member
Jun 26, 2020
2
1
3
46
Hi! First time user of Proxmox. Looking to automate and store my infrastructure changes as code using Terraform. Found a Proxmox Terraform plugin, but it only covers basic details, not the full suite of options available via the REST API. I was looking into adding to it when I noticed that the Proxmox REST API is very large, and was hoping to automate creation of a Go library using something like OpenAPI/Swagger, but I can't locate a spec definition anywhere. The REST API viewer is very useful but I dont want to have to port the entire API (and deal with changes) without some kind of way of automating the grunt work for client libraries.

So questions:
- Is there an OpenAPI/Swagger style spec for the REST API anywhere?
- If not, is there any plans to add one in a future release? (it looks like the API viewer is auto generated, so there maybe possible hooks there)
- Or alternatively, anyone know of a good, uptodate golang (or even better, terraform) package that covers the REST API?

Thanks everyone!
 
Unfortunately there is no official OpenAPI/Swagger Specification for Proxmox. As far as I can tell the second problem with the API viewer is, that it lacks some kind of versioning. After a recent update to a newer (minor!) Proxmox version, some endpoints are behaving strangely and no longer providing some information they provided beforehand. So most likely there were some breaking changes that were not documented properly.
 
Hmmm thats very frustrating. Makes it very difficult to write software to integrate with Proxmox if the API is in a format that makes it difficult.
 
  • Like
Reactions: florian-n

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!