Team
Team is an input used to reference teams that exist in Port.
๐ก Common team usageโ
The team input type can be used to reference any team that exists in Port, for example:
- The service owning team
 - The current on-call
 - The lead maintainers
 
In the live demo self-service hub page, we can see the scaffold new service action whose Owning Team input is a user input. ๐ฌ
API definitionโ
- Basic
 - Array
 
{
  "myTeamInput": {
    "title": "My team input",
    "icon": "My icon",
    "description": "My team input",
    "type": "string",
    "format": "team",
    "default": "my-team"
  }
}
{
  "myTeamArrayInput": {
    "title": "My team array input",
    "icon": "My icon",
    "description": "My team array input",
    "type": "array",
    "items": {
      "type": "string",
      "format": "team"
    }
  }
}
Check out Port's API reference to learn more.
Terraform definitionโ
- Basic
 - Array
 
resource "port_action" "myAction" {
  # ...action properties
  user_properties = {
    string_props = {
      myTeamInput = {
        title       = "My team input"
        description = "My team input"
        format      = "team"
        default     = "my-team"
      }
    }
  }
}
resource "port_action" "myAction" {
  # ...action properties
  user_properties = {
    array_props = {
      myTeamArrayInput = {
        title       = "My team array input"
        description = "My team array input"
        format      = "team"
      }
    }
  }
}