It has an API itself, which is used by the PDM web UI.Cool release and new features!
Does PDM has a API itself or does it only communicate with the PVE API?
I tried finding it like the one PVE has, but i was not able to find it yet. Any idea? Thanks for the reply by the way!It has an API itself, which is used by the PDM web UI.
There is no API viewer widget available yet, I'm afraid (but its planned).I tried finding it like the one PVE has, but i was not able to find it yet. Any idea? Thanks for the reply by the way!
Looks like it started with 0.1.12.Looks like the auth API changed a bit and I dont receive a ticket anymore but instead an empty "ticket-info".
Do you have some curl examples on how to authenticate on the 0.9 beta version?
Here is the output of the POST to /api2/json/access/ticket when using username/passsword to authenticate. Does the same with root user.
{ "CSRFPreventionToken": "68D0B2C1:2aVIv....", "ticket-info": "PDM:readonly@pdm:68D0B2C1::ticketinfo", "username": "readonly@pdm"}
I can't use the empty ticket to authenticate and ask for a resources list for example, getting following error.
authentication failed - ticket with bad signature: error decoding base64 data
Was working fine on 0.0.11 Alpha using the root user.
Yes, see the relevant issue on our BZ and my reply explain why this is:Looks like the auth API changed a bit and I dont receive a ticket anymore but instead an empty "ticket-info".
Do you have some curl examples on how to authenticate on the 0.9 beta version?
Here is the output of the POST to /api2/json/access/ticket when using username/passsword to authenticate. Does the same with root user.
{ "CSRFPreventionToken": "68D0B2C1:2aVIv....", "ticket-info": "PDM:readonly@pdm:68D0B2C1::ticketinfo", "username": "readonly@pdm"}
I can't use the empty ticket to authenticate and ask for a resources list for example, getting following error.
authentication failed - ticket with bad signature: error decoding base64 data
Was working fine on 0.0.11 Alpha using the root user.
-- https://bugzilla.proxmox.com/show_bug.cgi?id=6837Yes, it's required for HTTP-only cookies, where the code from the site itself (JS or WASM) cannot access the cookie value anymore, thus makes it safer as it e.g. provides a protection from a hypothetical cross-site scripting issue allowing another user to steal and misuse one's ticket.
We rolled that out for PBS 4 and for the PDM beta, other projects will likely also switch to this on a future release (PVE quite definitively not before the next major release though).
We plan to introduce API tokens soonish, similar to what PVE and PBS already have, and those should then be preferred over using tickets for any headless/automated/.. API access.
Set-Cookie
header from the response of the ticket API call until API tokens are available for the PDM.Cheers, I'll give that a go!Yes, see the relevant issue on our BZ and my reply explain why this is:
-- https://bugzilla.proxmox.com/show_bug.cgi?id=6837
You can still parse out the actual ticket from theSet-Cookie
header from the response of the ticket API call until API tokens are available for the PDM.
You need the xtr tool for the mo based files, it's packaged in our devel repository, for the latter see:Nice!!!
How should I test and generate translation files for PDM (like catalog-zh-CN. mo)? I know PVE can use (./po2js. pl - t pve xx. po>pve lang xx. js) to generate translation files.
I am getting the same error, Seems random to me.install went smoothly. adding my independent hosts went also well. unfortunately i get an error 400 on every refresh when i select a detail-view of a remote host. The error does not occur when i am in dashboard view.
Interesting is, that i receive all details quite a second later.
We use essential cookies to make this site work, and optional cookies to enhance your experience.