[PR #39] [MERGED] Expose GetVmAgentNetworkInterfaces #174

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

📋 Pull Request Information

Original PR: https://github.com/Telmate/proxmox-api-go/pull/39
Author: @ghost
Created: 7/17/2019
Status: Merged
Merged: 7/17/2019
Merged by: @ggongaware

Base: masterHead: feature/getNetworkInterfaces


📝 Commits (1)

  • 0e93c01 expose GetVmAgentNetworkInterfaces for usage

📊 Changes

1 file changed (+9 additions, -0 deletions)

View changed files

📝 main.go (+9 -0)

📄 Description

Can we expose the already existing getVmAgentNetworkInterfaces for usage?

The already existing functinality in GetVmAgentNetworkInterfaces returns the network interfaces of the VM by help of the Qemu agent (if enabled).

This change only exposes the method for usage. Example output:

$ ./proxmox-api-go getInterfaces 116 | jq -r
{
  "data": {
    "result": [
      {
        "hardware-address": "00:00:00:00:00:00",
        "ip-addresses": [
          {
            "ip-address": "127.0.0.1",
            "ip-address-type": "ipv4",
            "prefix": 8
          },
          {
            "ip-address": "::1",
            "ip-address-type": "ipv6",
            "prefix": 128
          }
        ],
        "name": "lo"
      },
      {
        "hardware-address": "02:0c:21:fc:c7:9b",
        "ip-addresses": [
          {
            "ip-address": "192.168.0.123",
            "ip-address-type": "ipv4",
            "prefix": 24
          },
          {
            "ip-address": "fe80::c:21ff:fefc:c79b",
            "ip-address-type": "ipv6",
            "prefix": 64
          }
        ],
        "name": "eth0"
      }
    ]
  }
}

🔄 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/39 **Author:** [@ghost](https://github.com/ghost) **Created:** 7/17/2019 **Status:** ✅ Merged **Merged:** 7/17/2019 **Merged by:** [@ggongaware](https://github.com/ggongaware) **Base:** `master` ← **Head:** `feature/getNetworkInterfaces` --- ### 📝 Commits (1) - [`0e93c01`](https://github.com/Telmate/proxmox-api-go/commit/0e93c01038fda8bf47643b0893b4cd74d4512599) expose GetVmAgentNetworkInterfaces for usage ### 📊 Changes **1 file changed** (+9 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `main.go` (+9 -0) </details> ### 📄 Description Can we expose the already existing getVmAgentNetworkInterfaces for usage? The already existing functinality in GetVmAgentNetworkInterfaces returns the network interfaces of the VM by help of the Qemu agent (if enabled). This change only exposes the method for usage. Example output: ``` $ ./proxmox-api-go getInterfaces 116 | jq -r { "data": { "result": [ { "hardware-address": "00:00:00:00:00:00", "ip-addresses": [ { "ip-address": "127.0.0.1", "ip-address-type": "ipv4", "prefix": 8 }, { "ip-address": "::1", "ip-address-type": "ipv6", "prefix": 128 } ], "name": "lo" }, { "hardware-address": "02:0c:21:fc:c7:9b", "ip-addresses": [ { "ip-address": "192.168.0.123", "ip-address-type": "ipv4", "prefix": 24 }, { "ip-address": "fe80::c:21ff:fefc:c79b", "ip-address-type": "ipv6", "prefix": 64 } ], "name": "eth0" } ] } } ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 00:40:58 +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#174
No description provided.