[PR #172] [MERGED] get generic /cluster/resources #285

Closed
opened 2026-02-28 00:41:37 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Telmate/proxmox-api-go/pull/172
Author: @thorntonmc
Created: 4/27/2022
Status: Merged
Merged: 4/28/2022
Merged by: @mleone87

Base: masterHead: master


📝 Commits (5)

  • fd45952 get generic /cluster/resources
  • 62d7aa0 allow resource query to get multiple types
  • 4924d67 fail if json marshalling errs
  • 15d5c88 caution behavior of /cluster/resources
  • b8921fc add additional cli invocations

📊 Changes

3 files changed (+28 additions, -1 deletions)

View changed files

📝 README.md (+4 -0)
📝 main.go (+11 -0)
📝 proxmox/client.go (+13 -1)

📄 Description

This adds the ability to fetch /cluster/resources without ?type=vm being appended to it. This way, we have flexibility in what types we retrieve, such as storage.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Telmate/proxmox-api-go/pull/172 **Author:** [@thorntonmc](https://github.com/thorntonmc) **Created:** 4/27/2022 **Status:** ✅ Merged **Merged:** 4/28/2022 **Merged by:** [@mleone87](https://github.com/mleone87) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (5) - [`fd45952`](https://github.com/Telmate/proxmox-api-go/commit/fd45952f2b459924e3da77192eb9ab12c1473692) get generic /cluster/resources - [`62d7aa0`](https://github.com/Telmate/proxmox-api-go/commit/62d7aa0ee2f55d0c26607d9fc9ca8297c401f1a4) allow resource query to get multiple types - [`4924d67`](https://github.com/Telmate/proxmox-api-go/commit/4924d6742e236bb2a22ac0b25076df72bf761591) fail if json marshalling errs - [`15d5c88`](https://github.com/Telmate/proxmox-api-go/commit/15d5c88398c18658b30015d8e01f4711a1225bae) caution behavior of /cluster/resources - [`b8921fc`](https://github.com/Telmate/proxmox-api-go/commit/b8921fc3006f6a515e5659c786b3032cd9d7499b) add additional cli invocations ### 📊 Changes **3 files changed** (+28 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+4 -0) 📝 `main.go` (+11 -0) 📝 `proxmox/client.go` (+13 -1) </details> ### 📄 Description This adds the ability to fetch `/cluster/resources` without `?type=vm` being appended to it. This way, we have flexibility in what types we retrieve, such as storage. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 00:41:37 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/proxmox-api-go#285
No description provided.