Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 464 Bytes

File metadata and controls

30 lines (25 loc) · 464 Bytes
package main

import (
	"context"
	sfc "github.com/sfcompute/sfc-go"
	"log"
)

func main() {
	ctx := context.Background()

	s := sfc.New(
		sfc.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
	)

	res, err := s.InstanceSKUs.List(ctx, nil, []string{
		"my-resource-name",
	})
	if err != nil {
		log.Fatal(err)
	}
	if res.ListAvailabilityResponse != nil {
		// handle response
	}
}