mirror of
https://github.com/proxmoxer/proxmoxer.git
synced 2026-04-25 07:06:00 +03:00
[GH-ISSUE #42] PBS Support #21
Labels
No labels
backend:https
backend:local
backend:openssh
backend:ssh_paramiko
pull-request
status:ansible-issue
status:help-wanted
status:info-needed
status:proxmox-issue
status:review-needed
type:bug 🐞
type:dependency ⛓️
type:docs 📝
type:enhancement ⏫
type:maintenance 🛠️
type:meta
type:question ❓
type:request ✋
type:testing 🧪
version:1.x
version:latest
version:py2
version:py3
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/proxmoxer#21
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tuxis-ie on GitHub (Dec 4, 2020).
Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/42
Is anyone working on PBS support already?
@jhollowe commented on GitHub (Dec 4, 2020):
Is there official API documentation for PBS? I looked a little while ago and didn't find anything. It should be super easy to add support if it follows the same basic API spec for auth and stuff.
@tuxis-ie commented on GitHub (Dec 5, 2020):
No, not yet.
Some testing by me shows that for https-as-a-user, the otp-json part is not supposed to be sent. The authentication-header is called PBS-etc instead of PVE-etc, but I did not manage to get that working (although I'm not sure if I understand the proxmoxer-code enough :))
@jhollowe commented on GitHub (Dec 20, 2020):
As long as it uses some of the same authentication and layout methods (which from looking into the PBS integrations into the other Proxmox services looks likely), it should be incredibly easy to add PBS support. #34 should make it so we can just add "PBS" to
SUPPORTED_SERVICESand it should just work. We will of course need to do testing to ensure what parts are and are not compatible.@jhollowe commented on GitHub (Dec 20, 2020):
Just found more info as well confirming API Token support in PBS: https://pbs.proxmox.com/docs/user-management.html#api-tokens
@jhollowe commented on GitHub (Dec 20, 2020):
It looks like there are a few things not working yet (waiting on a response about API Tokens), but basic HTTPS username/password auth and standard queries seem to be working by adding "PBS" to
SUPPORTED_SERVICESincore.pyin the develop branch.@jhollowe commented on GitHub (May 20, 2021):
@tuxis-ie Can you try running the code in #43 and report back if it works as expected?
You can clone the PR branch, and in its directory run
pip install .to use the branch as the installed version of proxmoxer. You can then import proxmoxer as normal and test its functionality with PBS.@wmorgue commented on GitHub (May 21, 2021):
Hi @jhollowe and thank you for the good work 👍🏻
I tested some API calls with
service-generalizebranch. The screenshot below shows which methods work or don't work.The other methods fall with the same error. Python 3.9.5.
PBS Version API — https://pbs.proxmox.com/docs/api-viewer/index.html#/version
@jhollowe commented on GitHub (May 22, 2021):
hrm, using PBS 1.1-1, I get the following:
Can you confirm that the API is returning JSON for the version endpoint? if you log into PBS in your browser and then go to
https://<your_ip>:8007/api2/json/version, what is the text that appears?@wmorgue commented on GitHub (May 22, 2021):
@jhollowe damn, i forgot write
service="PBS"intoProxmoxAPIclass 😅Works without errors. Yep, also web JSON works or
127.0.0.1:82/api2/json/version.Thank you 👍🏻