circle-info
Squadcast is now SolarWinds Incident Response

Teams.Members

Overview

Available Operations

  • list - Get All Team Members

  • add - Add Team Member

list

Returns all the team members of the organization. Requires access_token as a Bearer {{token}} in the Authorization header with read scope.

Example Usage

from squadcast_sdk import SquadcastSDK


with SquadcastSDK(
    bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as ss_client:

    res = ss_client.teams.members.list(team_id="<id>")

    # Handle response
    print(res)

Parameters

Parameter
Type
Required
Description

team_id

str

✔️

N/A

retries

Configuration to override the default retry behavior of the client.

Response

models.TeamsGetAllTeamMembersResponse

Errors

Error Type
Status Code
Content Type

errors.BadRequestError

400

application/json

errors.UnauthorizedError

401

application/json

errors.PaymentRequiredError

402

application/json

errors.ForbiddenError

403

application/json

errors.NotFoundError

404

application/json

errors.ConflictError

409

application/json

errors.UnprocessableEntityError

422

application/json

errors.InternalServerError

500

application/json

errors.BadGatewayError

502

application/json

errors.ServiceUnavailableError

503

application/json

errors.GatewayTimeoutError

504

application/json

errors.SDKDefaultError

4XX, 5XX

*/*

add

Add team member to the team. Requires access_token as a Bearer {{token}} in the Authorization header with user-write scope.

Example Usage

Parameters

Parameter
Type
Required
Description

team_id

str

✔️

N/A

user_id

str

✔️

N/A

role_ids

List[str]

✔️

this field is required if you are using RBAC permission model

role

Optional[str]

this field is required if you are using OBAC permission model

retries

Configuration to override the default retry behavior of the client.

Response

models.TeamsAddTeamMemberResponse

Errors

Error Type
Status Code
Content Type

errors.BadRequestError

400

application/json

errors.UnauthorizedError

401

application/json

errors.PaymentRequiredError

402

application/json

errors.ForbiddenError

403

application/json

errors.NotFoundError

404

application/json

errors.ConflictError

409

application/json

errors.UnprocessableEntityError

422

application/json

errors.InternalServerError

500

application/json

errors.BadGatewayError

502

application/json

errors.ServiceUnavailableError

503

application/json

errors.GatewayTimeoutError

504

application/json

errors.SDKDefaultError

4XX, 5XX

*/*

Last updated