mirror of
https://github.com/luthermonson/go-proxmox.git
synced 2026-04-26 09:25:53 +03:00
[PR #157] [MERGED] Add function CheckID #182
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/go-proxmox#182
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?
📋 Pull Request Information
Original PR: https://github.com/luthermonson/go-proxmox/pull/157
Author: @rybnico
Created: 8/29/2024
Status: ✅ Merged
Merged: 8/30/2024
Merged by: @luthermonson
Base:
main← Head:is-vmid-taken📝 Commits (2)
9a5d4d2Add function IsVMIDTaken58a6719Rename IsVMIDTaken to CheckID and invert logic📊 Changes
3 files changed (+45 additions, -1 deletions)
View changed files
📝
cluster.go(+16 -0)📝
cluster_test.go(+16 -0)📝
tests/mocks/pve7x/cluster.go(+13 -1)📄 Description
The Proxmox API endpoint
/cluster/nextidtakes an optional argumentvmidto check if the given ID is free.This argument is not implemented in the existing
NextIDfunction. In order not to break the existing API, I have added a new functionisVMIDTaken.This is especially useful if you want to check for a VMID without having
VM.Auditprivileges on the whole cluster.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.