Schedules.Rotations
Overview
Available Operations
List - List Schedule Rotations
List
List Schedule Rotations
Example Usage
package main
import(
"context"
"os"
squadcastsdk "github.com/solarwinds/squadcast-sdk-go"
"log"
)
func main() {
ctx := context.Background()
s := squadcastsdk.New(
squadcastsdk.WithSecurity(os.Getenv("SQUADCASTSDK_REFRESH_TOKEN_AUTH")),
)
res, err := s.Schedules.Rotations.List(ctx, "<id>")
if err != nil {
log.Fatal(err)
}
if res.Object != nil {
// handle response
}
}Parameters
Parameter
Type
Required
Description
scheduleID
string
✔️
N/A
Response
Errors
Error Type
Status Code
Content Type
apierrors.CommonV4Error
400, 401, 402, 403, 404, 409, 422
application/json
apierrors.CommonV4Error
500, 502, 503, 504
application/json
apierrors.APIError
4XX, 5XX
*/*
Last updated