mirror of
https://github.com/proxmoxer/proxmoxer.git
synced 2026-04-25 07:06:00 +03:00
[GH-ISSUE #47] I don't know how to read lxc config #20
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#20
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 @nklamann on GitHub (Feb 22, 2021).
Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/47
Hello all,
want to extract the existing configuration of a PVE Node for documentation purposes.
I have no trouble to display some metadata of the lxc. But how do I get the config ?
In pvesh it looks like this:
pvesh get /nodes/xxx/lxc/200/config/In python I do:
the dictionary
lxcdoes not contain a 'config' and I did not manage to extract this information in any way i tried.How shall this be done ?
Thanks for reading !
Norbert
@jhollowe commented on GitHub (Feb 28, 2021):
From looking at the API documentation, it looks like you just need to add config to your query. Also, make sure you have the VM.Audit permission for everything.
For example:
@nklamann commented on GitHub (Mar 1, 2021):
Thanks a lot . That didi it . I was confused after reading in the README:
proxmox.get('nodes/%s/openvz' % node['node'])threw me off the railsThanks again !