spotlight_team

The spotlight_team resource, and the team resource of the API: a group inside a workspace that has lines, skills, harness profiles, integrations, hooks and chats.

KindEndpointTerraformAddress
team/api/v1/resources/workspaces/{workspaceId}/teamsspotlight_team<key>

See Resource API for the operations, headers and errors every kind shares.

Example

resource "spotlight_team" "core" {
  workspace_id = spotlight_workspace.acme.id
  key          = "core"
  name         = "Core"
}

Fields

FieldTypeDefaultDescription
keystringrequiredNames the team within its workspace, and prefixes the address of everything it has. Lowercase words joined by dashes, at most 64 characters. Immutable: an update that changes it is rejected; Terraform replaces the resource.
namestringrequiredWhat the team is called. 1 to 100 characters.
workspaceIdstringread-onlyThe workspace that has the team.

Rules

OperationRule
createNeeds configure. The team has nothing in it.
updateNeeds configure. Changes name only.
deleteNeeds configure. Fails with 409 in-use while the team has any line, skill, harness profile, integration or hook.
listEvery team of the workspace.
importGET /api/v1/resources/workspaces/{workspaceId}/teams/import?address=<key>

An in-use error names what is left, as in Team core is not empty. It still has: line delivery. See Roles and permissions for who has each permission.

A team created through the resource API or Terraform has no lines. The first team of a workspace created in the web app starts with two; see A workspace created in the web app.

In Terraform

  • spotlight_team creates, updates and deletes a team. Its import id is <workspace id>/<key>.
  • The data source spotlight_team reads a team without managing it. See Provider.

On this page