You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm receiving the following error when trying to pull any Resource. Get "https://<ipaddress>/mgmt/tm/ltm/virtual": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
I'm fairly new to golang so this could very well be something on my side.
BigIP Version - 13.1.0.8
go-bigip version - latest commit
Code
package main
import (
"fmt"
"github.com/scottdware/go-bigip"
)
func main() {
config := bigip.ConfigOptions{
APICallTimeout: 10000,
}
f5 := bigip.NewSession("https://<ipaddress>", "user", "password", &config)
vservers, err := f5.VirtualServers()
if err != nil {
fmt.Println("THERE WAS AN ERROR")
fmt.Println(err)
}
fmt.Println(vservers)
test, err := f5.GetVirtualServer("VS_NAME")
if err != nil {
fmt.Println("THERE WAS AN ERROR")
fmt.Println(err)
}
fmt.Println(test)
for _, vs := range vservers.VirtualServers {
fmt.Printf("Name: %s\n", vs.Name)
}
}
The text was updated successfully, but these errors were encountered:
I'm receiving the following error when trying to pull any Resource.
Get "https://<ipaddress>/mgmt/tm/ltm/virtual": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
I'm fairly new to golang so this could very well be something on my side.
Code
The text was updated successfully, but these errors were encountered: