Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
cloudstack
✓ github.com/xanzy/go-cloudstack
List storage pools in a CloudStack environment.
package main
import (
"log"
"github.com/xanzy/go-cloudstack/cloudstack"
)
func main() {
client := cloudstack.NewAsyncClient("https://cloudstack.example.com", "api-key", "secret-key", false)
pools, err := client.StoragePool.ListStoragePools()
if err != nil {
log.Fatal(err)
}
log.Printf("Storage pools: %+v", pools)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
2.4.1+incompatiblelatest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.