Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 449 Bytes

File metadata and controls

30 lines (20 loc) · 449 Bytes

VMmanager 6 API for GoLang

Install

go get -u github.com/mayerdev/go-vm6-api

Use

package main

import "github.com/mayerdev/go-vm6-api"

func main() {
    api := utils.NewVm6("https://vm.local", "admin@vm.local", "my_password")
    err := api.Login()

    if err != nil {
        panic(err)
    }

    res, err := vm_api.Send("GET", "v3", "vm", "host", nil)

    if err != nil {
        panic(err)
    }

    fmt.Println(res)
}