Rotations
Overview
Available Operations
getScheduleRotations - List Schedule Rotations
delete - Delete Rotation
getById - Get Schedule Rotation by ID
getParticipants - Get Rotation Participants
updateParticipants - Update Rotation Participants
getScheduleRotations
List Schedule Rotations
Example Usage
import { SquadcastSDK } from "@solarwinds/squadcast-sdk-typescript";
const squadcastSDK = new SquadcastSDK({
refreshTokenAuth: "<YOUR_REFRESH_TOKEN_AUTH_HERE>",
});
async function run() {
const result = await squadcastSDK.rotations.getScheduleRotations({
scheduleID: "<id>",
});
console.log(result);
}
run();Standalone function
The standalone function version of this method:
Parameters
options
RequestOptions
➖
Used to set various options for making HTTP requests.
options.fetchOptions
➖
Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
Response
Errors
errors.CommonV4Error
400, 401, 402, 403, 404, 409, 422
application/json
errors.CommonV4Error
500, 502, 503, 504
application/json
errors.SDKDefaultError
4XX, 5XX
*/*
delete
Delete Rotation
Example Usage
Standalone function
The standalone function version of this method:
Parameters
options
RequestOptions
➖
Used to set various options for making HTTP requests.
options.fetchOptions
➖
Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
Response
Promise<Uint8Array>
Errors
errors.CommonV4Error
400, 401, 402, 403, 404, 409, 422
application/json
errors.CommonV4Error
500, 502, 503, 504
application/json
errors.SDKDefaultError
4XX, 5XX
*/*
getById
Get Schedule Rotation by ID
Example Usage
Standalone function
The standalone function version of this method:
Parameters
request
✔️
The request object to use for the request.
options
RequestOptions
➖
Used to set various options for making HTTP requests.
options.fetchOptions
➖
Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
Response
Errors
errors.CommonV4Error
400, 401, 402, 403, 404, 409, 422
application/json
errors.CommonV4Error
500, 502, 503, 504
application/json
errors.SDKDefaultError
4XX, 5XX
*/*
getParticipants
Get Rotation Participants
Example Usage
Standalone function
The standalone function version of this method:
Parameters
request
✔️
The request object to use for the request.
options
RequestOptions
➖
Used to set various options for making HTTP requests.
options.fetchOptions
➖
Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
Response
Errors
errors.CommonV4Error
400, 401, 402, 403, 404, 409, 422
application/json
errors.CommonV4Error
500, 502, 503, 504
application/json
errors.SDKDefaultError
4XX, 5XX
*/*
updateParticipants
Update Rotation Participants
Example Usage
Standalone function
The standalone function version of this method:
Parameters
request
✔️
The request object to use for the request.
options
RequestOptions
➖
Used to set various options for making HTTP requests.
options.fetchOptions
➖
Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
Response
Errors
errors.CommonV4Error
400, 401, 402, 403, 404, 409, 422
application/json
errors.CommonV4Error
500, 502, 503, 504
application/json
errors.SDKDefaultError
4XX, 5XX
*/*
Last updated