Skip to content

6connect/golangclient

Repository files navigation

golangclient

GoLang client for 6connect ProVision

In case that you require more functionality for 3rd party projects, please contact us.

Example Usage

client, err := provisionclient.NewClient("https://url.to.6connect.com", "example.user@example.com", "password", true)
if err != nil {
  fmt.Println("ERROR")
}

netblocks, err := client.IPAM.GetNetblocks(&map[string]string{
			"cidr": "192.168.192.176/28",
		})
    
record, err := client.DNS.AddZoneRecord(provisionclient.DNSRecord{
		ParentID:    "428964",
		Name:        "Golang TXT Record",
		RecordType:  "TXT",
		RecordHost:  "golang.example.com.",
		RecordValue: "Created from GOLANGCLIENT",
		RecordTTL:   3600,
	})

About

Golang SDK Client

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages