Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add function CheckID #157

Merged
merged 2 commits into from
Aug 30, 2024
Merged

Add function CheckID #157

merged 2 commits into from
Aug 30, 2024

Conversation

rybnico
Copy link
Contributor

@rybnico rybnico commented Aug 29, 2024

The Proxmox API endpoint /cluster/nextid takes an optional argument vmid to check if the given ID is free.
This argument is not implemented in the existing NextID function. In order not to break the existing API, I have added a new function isVMIDTaken.
This is especially useful if you want to check for a VMID without having VM.Audit privileges on the whole cluster.

cluster.go Outdated Show resolved Hide resolved
@rybnico rybnico changed the title Add function IsVMIDTaken Add function CheckID Aug 30, 2024
@luthermonson luthermonson merged commit d9fb68f into luthermonson:main Aug 30, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants