Skip to content

pve-sdk-go is the Proxmox VE API SDK for the Go programming language.

License

Notifications You must be signed in to change notification settings

qcu266/pve-sdk-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Proxmox VE API SDK for Go

pve-sdk-go is the Proxmox VE API SDK for the Go programming language.

All api_op_* code are generated by pve api schema

Example

package main

import (
	"context"
	"crypto/tls"
	"fmt"
	"log"

	"github.com/qcu266/pve-sdk-go/pve"
)

func main() {
	auth, err := pve.AuthOptionsFromEnv()
	if err != nil {
		log.Fatal(err)
	}

	client := pve.New(auth,
		pve.WithTLSOptions(&tls.Config{
			InsecureSkipVerify: true,
		}),
	)

	response, err := client.VersionVersion(context.TODO(), nil)

	fmt.Println("Proxmox VE version:", response.Version, response.Release, response.Repoid)
}

About

pve-sdk-go is the Proxmox VE API SDK for the Go programming language.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published