1. Packages
  2. Packages
  3. Rootly
  4. API Docs
  5. Team
Viewing docs for Rootly v3.3.0
published on Thursday, May 7, 2026 by rootlyhq
rootly logo
Viewing docs for Rootly v3.3.0
published on Thursday, May 7, 2026 by rootlyhq

    Example Usage

    data "rootly_user" "john" {
      email = "demo@rootly.com"
    }
    
    data "rootly_user" "jane" {
      email = "demo1@rootly.com"
    }
    
    resource "rootly_team" "sre" {
      name     = "SREs On-Call"
      user_ids = [data.rootly_user.john.id, data.rootly_user.jane.id]
    }
    

    Create Team Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Team(name: string, args?: TeamArgs, opts?: CustomResourceOptions);
    @overload
    def Team(resource_name: str,
             args: Optional[TeamArgs] = None,
             opts: Optional[ResourceOptions] = None)
    
    @overload
    def Team(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             admin_ids: Optional[Sequence[int]] = None,
             alert_broadcast_channel: Optional[TeamAlertBroadcastChannelArgs] = None,
             alert_broadcast_enabled: Optional[bool] = None,
             alert_urgency_id: Optional[str] = None,
             auto_add_members_when_attached: Optional[bool] = None,
             backstage_id: Optional[str] = None,
             color: Optional[str] = None,
             cortex_id: Optional[str] = None,
             description: Optional[str] = None,
             external_id: Optional[str] = None,
             incident_broadcast_channel: Optional[TeamIncidentBroadcastChannelArgs] = None,
             incident_broadcast_enabled: Optional[bool] = None,
             name: Optional[str] = None,
             notify_emails: Optional[Sequence[str]] = None,
             opsgenie_id: Optional[str] = None,
             pagerduty_id: Optional[str] = None,
             pagerduty_service_id: Optional[str] = None,
             pagertree_id: Optional[str] = None,
             position: Optional[int] = None,
             properties: Optional[Sequence[TeamPropertyArgs]] = None,
             service_now_ci_sys_id: Optional[str] = None,
             slack_aliases: Optional[Sequence[TeamSlackAliasArgs]] = None,
             slack_channels: Optional[Sequence[TeamSlackChannelArgs]] = None,
             slug: Optional[str] = None,
             user_ids: Optional[Sequence[int]] = None,
             victor_ops_id: Optional[str] = None)
    func NewTeam(ctx *Context, name string, args *TeamArgs, opts ...ResourceOption) (*Team, error)
    public Team(string name, TeamArgs? args = null, CustomResourceOptions? opts = null)
    public Team(String name, TeamArgs args)
    public Team(String name, TeamArgs args, CustomResourceOptions options)
    
    type: rootly:Team
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args TeamArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args TeamArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args TeamArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TeamArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TeamArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var teamResource = new Rootly.Team("teamResource", new()
    {
        AdminIds = new[]
        {
            0,
        },
        AlertBroadcastChannel = new Rootly.Inputs.TeamAlertBroadcastChannelArgs
        {
            Id = "string",
            Name = "string",
        },
        AlertBroadcastEnabled = false,
        AlertUrgencyId = "string",
        AutoAddMembersWhenAttached = false,
        BackstageId = "string",
        Color = "string",
        CortexId = "string",
        Description = "string",
        ExternalId = "string",
        IncidentBroadcastChannel = new Rootly.Inputs.TeamIncidentBroadcastChannelArgs
        {
            Id = "string",
            Name = "string",
        },
        IncidentBroadcastEnabled = false,
        Name = "string",
        NotifyEmails = new[]
        {
            "string",
        },
        OpsgenieId = "string",
        PagerdutyId = "string",
        PagerdutyServiceId = "string",
        PagertreeId = "string",
        Position = 0,
        Properties = new[]
        {
            new Rootly.Inputs.TeamPropertyArgs
            {
                CatalogPropertyId = "string",
                Value = "string",
            },
        },
        ServiceNowCiSysId = "string",
        SlackAliases = new[]
        {
            new Rootly.Inputs.TeamSlackAliasArgs
            {
                Id = "string",
                Name = "string",
            },
        },
        SlackChannels = new[]
        {
            new Rootly.Inputs.TeamSlackChannelArgs
            {
                Id = "string",
                Name = "string",
            },
        },
        Slug = "string",
        UserIds = new[]
        {
            0,
        },
        VictorOpsId = "string",
    });
    
    example, err := rootly.NewTeam(ctx, "teamResource", &rootly.TeamArgs{
    	AdminIds: pulumi.IntArray{
    		pulumi.Int(0),
    	},
    	AlertBroadcastChannel: &rootly.TeamAlertBroadcastChannelArgs{
    		Id:   pulumi.String("string"),
    		Name: pulumi.String("string"),
    	},
    	AlertBroadcastEnabled:      pulumi.Bool(false),
    	AlertUrgencyId:             pulumi.String("string"),
    	AutoAddMembersWhenAttached: pulumi.Bool(false),
    	BackstageId:                pulumi.String("string"),
    	Color:                      pulumi.String("string"),
    	CortexId:                   pulumi.String("string"),
    	Description:                pulumi.String("string"),
    	ExternalId:                 pulumi.String("string"),
    	IncidentBroadcastChannel: &rootly.TeamIncidentBroadcastChannelArgs{
    		Id:   pulumi.String("string"),
    		Name: pulumi.String("string"),
    	},
    	IncidentBroadcastEnabled: pulumi.Bool(false),
    	Name:                     pulumi.String("string"),
    	NotifyEmails: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	OpsgenieId:         pulumi.String("string"),
    	PagerdutyId:        pulumi.String("string"),
    	PagerdutyServiceId: pulumi.String("string"),
    	PagertreeId:        pulumi.String("string"),
    	Position:           pulumi.Int(0),
    	Properties: rootly.TeamPropertyArray{
    		&rootly.TeamPropertyArgs{
    			CatalogPropertyId: pulumi.String("string"),
    			Value:             pulumi.String("string"),
    		},
    	},
    	ServiceNowCiSysId: pulumi.String("string"),
    	SlackAliases: rootly.TeamSlackAliasArray{
    		&rootly.TeamSlackAliasArgs{
    			Id:   pulumi.String("string"),
    			Name: pulumi.String("string"),
    		},
    	},
    	SlackChannels: rootly.TeamSlackChannelArray{
    		&rootly.TeamSlackChannelArgs{
    			Id:   pulumi.String("string"),
    			Name: pulumi.String("string"),
    		},
    	},
    	Slug: pulumi.String("string"),
    	UserIds: pulumi.IntArray{
    		pulumi.Int(0),
    	},
    	VictorOpsId: pulumi.String("string"),
    })
    
    var teamResource = new Team("teamResource", TeamArgs.builder()
        .adminIds(0)
        .alertBroadcastChannel(TeamAlertBroadcastChannelArgs.builder()
            .id("string")
            .name("string")
            .build())
        .alertBroadcastEnabled(false)
        .alertUrgencyId("string")
        .autoAddMembersWhenAttached(false)
        .backstageId("string")
        .color("string")
        .cortexId("string")
        .description("string")
        .externalId("string")
        .incidentBroadcastChannel(TeamIncidentBroadcastChannelArgs.builder()
            .id("string")
            .name("string")
            .build())
        .incidentBroadcastEnabled(false)
        .name("string")
        .notifyEmails("string")
        .opsgenieId("string")
        .pagerdutyId("string")
        .pagerdutyServiceId("string")
        .pagertreeId("string")
        .position(0)
        .properties(TeamPropertyArgs.builder()
            .catalogPropertyId("string")
            .value("string")
            .build())
        .serviceNowCiSysId("string")
        .slackAliases(TeamSlackAliasArgs.builder()
            .id("string")
            .name("string")
            .build())
        .slackChannels(TeamSlackChannelArgs.builder()
            .id("string")
            .name("string")
            .build())
        .slug("string")
        .userIds(0)
        .victorOpsId("string")
        .build());
    
    team_resource = rootly.Team("teamResource",
        admin_ids=[0],
        alert_broadcast_channel={
            "id": "string",
            "name": "string",
        },
        alert_broadcast_enabled=False,
        alert_urgency_id="string",
        auto_add_members_when_attached=False,
        backstage_id="string",
        color="string",
        cortex_id="string",
        description="string",
        external_id="string",
        incident_broadcast_channel={
            "id": "string",
            "name": "string",
        },
        incident_broadcast_enabled=False,
        name="string",
        notify_emails=["string"],
        opsgenie_id="string",
        pagerduty_id="string",
        pagerduty_service_id="string",
        pagertree_id="string",
        position=0,
        properties=[{
            "catalog_property_id": "string",
            "value": "string",
        }],
        service_now_ci_sys_id="string",
        slack_aliases=[{
            "id": "string",
            "name": "string",
        }],
        slack_channels=[{
            "id": "string",
            "name": "string",
        }],
        slug="string",
        user_ids=[0],
        victor_ops_id="string")
    
    const teamResource = new rootly.Team("teamResource", {
        adminIds: [0],
        alertBroadcastChannel: {
            id: "string",
            name: "string",
        },
        alertBroadcastEnabled: false,
        alertUrgencyId: "string",
        autoAddMembersWhenAttached: false,
        backstageId: "string",
        color: "string",
        cortexId: "string",
        description: "string",
        externalId: "string",
        incidentBroadcastChannel: {
            id: "string",
            name: "string",
        },
        incidentBroadcastEnabled: false,
        name: "string",
        notifyEmails: ["string"],
        opsgenieId: "string",
        pagerdutyId: "string",
        pagerdutyServiceId: "string",
        pagertreeId: "string",
        position: 0,
        properties: [{
            catalogPropertyId: "string",
            value: "string",
        }],
        serviceNowCiSysId: "string",
        slackAliases: [{
            id: "string",
            name: "string",
        }],
        slackChannels: [{
            id: "string",
            name: "string",
        }],
        slug: "string",
        userIds: [0],
        victorOpsId: "string",
    });
    
    type: rootly:Team
    properties:
        adminIds:
            - 0
        alertBroadcastChannel:
            id: string
            name: string
        alertBroadcastEnabled: false
        alertUrgencyId: string
        autoAddMembersWhenAttached: false
        backstageId: string
        color: string
        cortexId: string
        description: string
        externalId: string
        incidentBroadcastChannel:
            id: string
            name: string
        incidentBroadcastEnabled: false
        name: string
        notifyEmails:
            - string
        opsgenieId: string
        pagerdutyId: string
        pagerdutyServiceId: string
        pagertreeId: string
        position: 0
        properties:
            - catalogPropertyId: string
              value: string
        serviceNowCiSysId: string
        slackAliases:
            - id: string
              name: string
        slackChannels:
            - id: string
              name: string
        slug: string
        userIds:
            - 0
        victorOpsId: string
    

    Team Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Team resource accepts the following input properties:

    AdminIds List<int>
    The user ids of the admins of this team. These users must also be present in userIds attribute.
    AlertBroadcastChannel TeamAlertBroadcastChannel
    Map must contain two fields, id and name. Slack channel to broadcast alerts to
    AlertBroadcastEnabled bool
    Enable alerts to be broadcasted to a specific channel. Value must be one of true or false
    AlertUrgencyId string
    The alert urgency id of the team
    AutoAddMembersWhenAttached bool
    Auto add members to incident channel when team is attached. Value must be one of true or false
    BackstageId string
    The Backstage entity id associated to this team. eg: :namespace/:kind/:entity_name
    Color string
    The hex color of the team
    CortexId string
    The Cortex group id associated to this team
    Description string
    The description of the team
    ExternalId string
    The external id associated to this team
    IncidentBroadcastChannel TeamIncidentBroadcastChannel
    Map must contain two fields, id and name. Slack channel to broadcast incidents to
    IncidentBroadcastEnabled bool
    Enable incidents to be broadcasted to a specific channel. Value must be one of true or false
    Name string
    The name of the team
    NotifyEmails List<string>
    Emails to attach to the team
    OpsgenieId string
    The Opsgenie group id associated to this team
    PagerdutyId string
    The PagerDuty group id associated to this team
    PagerdutyServiceId string
    The PagerDuty service id associated to this team
    PagertreeId string
    The PagerTree group id associated to this team
    Position int
    Position of the team
    Properties List<TeamProperty>
    Array of property values for this team.
    ServiceNowCiSysId string
    The Service Now CI sys id associated to this team
    SlackAliases List<TeamSlackAlias>
    Slack Aliases associated with this team
    SlackChannels List<TeamSlackChannel>
    Slack Channels associated with this team
    Slug string
    UserIds List<int>
    The user ids of the members of this team.
    VictorOpsId string
    The VictorOps group id associated to this team
    AdminIds []int
    The user ids of the admins of this team. These users must also be present in userIds attribute.
    AlertBroadcastChannel TeamAlertBroadcastChannelArgs
    Map must contain two fields, id and name. Slack channel to broadcast alerts to
    AlertBroadcastEnabled bool
    Enable alerts to be broadcasted to a specific channel. Value must be one of true or false
    AlertUrgencyId string
    The alert urgency id of the team
    AutoAddMembersWhenAttached bool
    Auto add members to incident channel when team is attached. Value must be one of true or false
    BackstageId string
    The Backstage entity id associated to this team. eg: :namespace/:kind/:entity_name
    Color string
    The hex color of the team
    CortexId string
    The Cortex group id associated to this team
    Description string
    The description of the team
    ExternalId string
    The external id associated to this team
    IncidentBroadcastChannel TeamIncidentBroadcastChannelArgs
    Map must contain two fields, id and name. Slack channel to broadcast incidents to
    IncidentBroadcastEnabled bool
    Enable incidents to be broadcasted to a specific channel. Value must be one of true or false
    Name string
    The name of the team
    NotifyEmails []string
    Emails to attach to the team
    OpsgenieId string
    The Opsgenie group id associated to this team
    PagerdutyId string
    The PagerDuty group id associated to this team
    PagerdutyServiceId string
    The PagerDuty service id associated to this team
    PagertreeId string
    The PagerTree group id associated to this team
    Position int
    Position of the team
    Properties []TeamPropertyArgs
    Array of property values for this team.
    ServiceNowCiSysId string
    The Service Now CI sys id associated to this team
    SlackAliases []TeamSlackAliasArgs
    Slack Aliases associated with this team
    SlackChannels []TeamSlackChannelArgs
    Slack Channels associated with this team
    Slug string
    UserIds []int
    The user ids of the members of this team.
    VictorOpsId string
    The VictorOps group id associated to this team
    adminIds List<Integer>
    The user ids of the admins of this team. These users must also be present in userIds attribute.
    alertBroadcastChannel TeamAlertBroadcastChannel
    Map must contain two fields, id and name. Slack channel to broadcast alerts to
    alertBroadcastEnabled Boolean
    Enable alerts to be broadcasted to a specific channel. Value must be one of true or false
    alertUrgencyId String
    The alert urgency id of the team
    autoAddMembersWhenAttached Boolean
    Auto add members to incident channel when team is attached. Value must be one of true or false
    backstageId String
    The Backstage entity id associated to this team. eg: :namespace/:kind/:entity_name
    color String
    The hex color of the team
    cortexId String
    The Cortex group id associated to this team
    description String
    The description of the team
    externalId String
    The external id associated to this team
    incidentBroadcastChannel TeamIncidentBroadcastChannel
    Map must contain two fields, id and name. Slack channel to broadcast incidents to
    incidentBroadcastEnabled Boolean
    Enable incidents to be broadcasted to a specific channel. Value must be one of true or false
    name String
    The name of the team
    notifyEmails List<String>
    Emails to attach to the team
    opsgenieId String
    The Opsgenie group id associated to this team
    pagerdutyId String
    The PagerDuty group id associated to this team
    pagerdutyServiceId String
    The PagerDuty service id associated to this team
    pagertreeId String
    The PagerTree group id associated to this team
    position Integer
    Position of the team
    properties List<TeamProperty>
    Array of property values for this team.
    serviceNowCiSysId String
    The Service Now CI sys id associated to this team
    slackAliases List<TeamSlackAlias>
    Slack Aliases associated with this team
    slackChannels List<TeamSlackChannel>
    Slack Channels associated with this team
    slug String
    userIds List<Integer>
    The user ids of the members of this team.
    victorOpsId String
    The VictorOps group id associated to this team
    adminIds number[]
    The user ids of the admins of this team. These users must also be present in userIds attribute.
    alertBroadcastChannel TeamAlertBroadcastChannel
    Map must contain two fields, id and name. Slack channel to broadcast alerts to
    alertBroadcastEnabled boolean
    Enable alerts to be broadcasted to a specific channel. Value must be one of true or false
    alertUrgencyId string
    The alert urgency id of the team
    autoAddMembersWhenAttached boolean
    Auto add members to incident channel when team is attached. Value must be one of true or false
    backstageId string
    The Backstage entity id associated to this team. eg: :namespace/:kind/:entity_name
    color string
    The hex color of the team
    cortexId string
    The Cortex group id associated to this team
    description string
    The description of the team
    externalId string
    The external id associated to this team
    incidentBroadcastChannel TeamIncidentBroadcastChannel
    Map must contain two fields, id and name. Slack channel to broadcast incidents to
    incidentBroadcastEnabled boolean
    Enable incidents to be broadcasted to a specific channel. Value must be one of true or false
    name string
    The name of the team
    notifyEmails string[]
    Emails to attach to the team
    opsgenieId string
    The Opsgenie group id associated to this team
    pagerdutyId string
    The PagerDuty group id associated to this team
    pagerdutyServiceId string
    The PagerDuty service id associated to this team
    pagertreeId string
    The PagerTree group id associated to this team
    position number
    Position of the team
    properties TeamProperty[]
    Array of property values for this team.
    serviceNowCiSysId string
    The Service Now CI sys id associated to this team
    slackAliases TeamSlackAlias[]
    Slack Aliases associated with this team
    slackChannels TeamSlackChannel[]
    Slack Channels associated with this team
    slug string
    userIds number[]
    The user ids of the members of this team.
    victorOpsId string
    The VictorOps group id associated to this team
    admin_ids Sequence[int]
    The user ids of the admins of this team. These users must also be present in userIds attribute.
    alert_broadcast_channel TeamAlertBroadcastChannelArgs
    Map must contain two fields, id and name. Slack channel to broadcast alerts to
    alert_broadcast_enabled bool
    Enable alerts to be broadcasted to a specific channel. Value must be one of true or false
    alert_urgency_id str
    The alert urgency id of the team
    auto_add_members_when_attached bool
    Auto add members to incident channel when team is attached. Value must be one of true or false
    backstage_id str
    The Backstage entity id associated to this team. eg: :namespace/:kind/:entity_name
    color str
    The hex color of the team
    cortex_id str
    The Cortex group id associated to this team
    description str
    The description of the team
    external_id str
    The external id associated to this team
    incident_broadcast_channel TeamIncidentBroadcastChannelArgs
    Map must contain two fields, id and name. Slack channel to broadcast incidents to
    incident_broadcast_enabled bool
    Enable incidents to be broadcasted to a specific channel. Value must be one of true or false
    name str
    The name of the team
    notify_emails Sequence[str]
    Emails to attach to the team
    opsgenie_id str
    The Opsgenie group id associated to this team
    pagerduty_id str
    The PagerDuty group id associated to this team
    pagerduty_service_id str
    The PagerDuty service id associated to this team
    pagertree_id str
    The PagerTree group id associated to this team
    position int
    Position of the team
    properties Sequence[TeamPropertyArgs]
    Array of property values for this team.
    service_now_ci_sys_id str
    The Service Now CI sys id associated to this team
    slack_aliases Sequence[TeamSlackAliasArgs]
    Slack Aliases associated with this team
    slack_channels Sequence[TeamSlackChannelArgs]
    Slack Channels associated with this team
    slug str
    user_ids Sequence[int]
    The user ids of the members of this team.
    victor_ops_id str
    The VictorOps group id associated to this team
    adminIds List<Number>
    The user ids of the admins of this team. These users must also be present in userIds attribute.
    alertBroadcastChannel Property Map
    Map must contain two fields, id and name. Slack channel to broadcast alerts to
    alertBroadcastEnabled Boolean
    Enable alerts to be broadcasted to a specific channel. Value must be one of true or false
    alertUrgencyId String
    The alert urgency id of the team
    autoAddMembersWhenAttached Boolean
    Auto add members to incident channel when team is attached. Value must be one of true or false
    backstageId String
    The Backstage entity id associated to this team. eg: :namespace/:kind/:entity_name
    color String
    The hex color of the team
    cortexId String
    The Cortex group id associated to this team
    description String
    The description of the team
    externalId String
    The external id associated to this team
    incidentBroadcastChannel Property Map
    Map must contain two fields, id and name. Slack channel to broadcast incidents to
    incidentBroadcastEnabled Boolean
    Enable incidents to be broadcasted to a specific channel. Value must be one of true or false
    name String
    The name of the team
    notifyEmails List<String>
    Emails to attach to the team
    opsgenieId String
    The Opsgenie group id associated to this team
    pagerdutyId String
    The PagerDuty group id associated to this team
    pagerdutyServiceId String
    The PagerDuty service id associated to this team
    pagertreeId String
    The PagerTree group id associated to this team
    position Number
    Position of the team
    properties List<Property Map>
    Array of property values for this team.
    serviceNowCiSysId String
    The Service Now CI sys id associated to this team
    slackAliases List<Property Map>
    Slack Aliases associated with this team
    slackChannels List<Property Map>
    Slack Channels associated with this team
    slug String
    userIds List<Number>
    The user ids of the members of this team.
    victorOpsId String
    The VictorOps group id associated to this team

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Team resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Team Resource

    Get an existing Team resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: TeamState, opts?: CustomResourceOptions): Team
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            admin_ids: Optional[Sequence[int]] = None,
            alert_broadcast_channel: Optional[TeamAlertBroadcastChannelArgs] = None,
            alert_broadcast_enabled: Optional[bool] = None,
            alert_urgency_id: Optional[str] = None,
            auto_add_members_when_attached: Optional[bool] = None,
            backstage_id: Optional[str] = None,
            color: Optional[str] = None,
            cortex_id: Optional[str] = None,
            description: Optional[str] = None,
            external_id: Optional[str] = None,
            incident_broadcast_channel: Optional[TeamIncidentBroadcastChannelArgs] = None,
            incident_broadcast_enabled: Optional[bool] = None,
            name: Optional[str] = None,
            notify_emails: Optional[Sequence[str]] = None,
            opsgenie_id: Optional[str] = None,
            pagerduty_id: Optional[str] = None,
            pagerduty_service_id: Optional[str] = None,
            pagertree_id: Optional[str] = None,
            position: Optional[int] = None,
            properties: Optional[Sequence[TeamPropertyArgs]] = None,
            service_now_ci_sys_id: Optional[str] = None,
            slack_aliases: Optional[Sequence[TeamSlackAliasArgs]] = None,
            slack_channels: Optional[Sequence[TeamSlackChannelArgs]] = None,
            slug: Optional[str] = None,
            user_ids: Optional[Sequence[int]] = None,
            victor_ops_id: Optional[str] = None) -> Team
    func GetTeam(ctx *Context, name string, id IDInput, state *TeamState, opts ...ResourceOption) (*Team, error)
    public static Team Get(string name, Input<string> id, TeamState? state, CustomResourceOptions? opts = null)
    public static Team get(String name, Output<String> id, TeamState state, CustomResourceOptions options)
    resources:  _:    type: rootly:Team    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AdminIds List<int>
    The user ids of the admins of this team. These users must also be present in userIds attribute.
    AlertBroadcastChannel TeamAlertBroadcastChannel
    Map must contain two fields, id and name. Slack channel to broadcast alerts to
    AlertBroadcastEnabled bool
    Enable alerts to be broadcasted to a specific channel. Value must be one of true or false
    AlertUrgencyId string
    The alert urgency id of the team
    AutoAddMembersWhenAttached bool
    Auto add members to incident channel when team is attached. Value must be one of true or false
    BackstageId string
    The Backstage entity id associated to this team. eg: :namespace/:kind/:entity_name
    Color string
    The hex color of the team
    CortexId string
    The Cortex group id associated to this team
    Description string
    The description of the team
    ExternalId string
    The external id associated to this team
    IncidentBroadcastChannel TeamIncidentBroadcastChannel
    Map must contain two fields, id and name. Slack channel to broadcast incidents to
    IncidentBroadcastEnabled bool
    Enable incidents to be broadcasted to a specific channel. Value must be one of true or false
    Name string
    The name of the team
    NotifyEmails List<string>
    Emails to attach to the team
    OpsgenieId string
    The Opsgenie group id associated to this team
    PagerdutyId string
    The PagerDuty group id associated to this team
    PagerdutyServiceId string
    The PagerDuty service id associated to this team
    PagertreeId string
    The PagerTree group id associated to this team
    Position int
    Position of the team
    Properties List<TeamProperty>
    Array of property values for this team.
    ServiceNowCiSysId string
    The Service Now CI sys id associated to this team
    SlackAliases List<TeamSlackAlias>
    Slack Aliases associated with this team
    SlackChannels List<TeamSlackChannel>
    Slack Channels associated with this team
    Slug string
    UserIds List<int>
    The user ids of the members of this team.
    VictorOpsId string
    The VictorOps group id associated to this team
    AdminIds []int
    The user ids of the admins of this team. These users must also be present in userIds attribute.
    AlertBroadcastChannel TeamAlertBroadcastChannelArgs
    Map must contain two fields, id and name. Slack channel to broadcast alerts to
    AlertBroadcastEnabled bool
    Enable alerts to be broadcasted to a specific channel. Value must be one of true or false
    AlertUrgencyId string
    The alert urgency id of the team
    AutoAddMembersWhenAttached bool
    Auto add members to incident channel when team is attached. Value must be one of true or false
    BackstageId string
    The Backstage entity id associated to this team. eg: :namespace/:kind/:entity_name
    Color string
    The hex color of the team
    CortexId string
    The Cortex group id associated to this team
    Description string
    The description of the team
    ExternalId string
    The external id associated to this team
    IncidentBroadcastChannel TeamIncidentBroadcastChannelArgs
    Map must contain two fields, id and name. Slack channel to broadcast incidents to
    IncidentBroadcastEnabled bool
    Enable incidents to be broadcasted to a specific channel. Value must be one of true or false
    Name string
    The name of the team
    NotifyEmails []string
    Emails to attach to the team
    OpsgenieId string
    The Opsgenie group id associated to this team
    PagerdutyId string
    The PagerDuty group id associated to this team
    PagerdutyServiceId string
    The PagerDuty service id associated to this team
    PagertreeId string
    The PagerTree group id associated to this team
    Position int
    Position of the team
    Properties []TeamPropertyArgs
    Array of property values for this team.
    ServiceNowCiSysId string
    The Service Now CI sys id associated to this team
    SlackAliases []TeamSlackAliasArgs
    Slack Aliases associated with this team
    SlackChannels []TeamSlackChannelArgs
    Slack Channels associated with this team
    Slug string
    UserIds []int
    The user ids of the members of this team.
    VictorOpsId string
    The VictorOps group id associated to this team
    adminIds List<Integer>
    The user ids of the admins of this team. These users must also be present in userIds attribute.
    alertBroadcastChannel TeamAlertBroadcastChannel
    Map must contain two fields, id and name. Slack channel to broadcast alerts to
    alertBroadcastEnabled Boolean
    Enable alerts to be broadcasted to a specific channel. Value must be one of true or false
    alertUrgencyId String
    The alert urgency id of the team
    autoAddMembersWhenAttached Boolean
    Auto add members to incident channel when team is attached. Value must be one of true or false
    backstageId String
    The Backstage entity id associated to this team. eg: :namespace/:kind/:entity_name
    color String
    The hex color of the team
    cortexId String
    The Cortex group id associated to this team
    description String
    The description of the team
    externalId String
    The external id associated to this team
    incidentBroadcastChannel TeamIncidentBroadcastChannel
    Map must contain two fields, id and name. Slack channel to broadcast incidents to
    incidentBroadcastEnabled Boolean
    Enable incidents to be broadcasted to a specific channel. Value must be one of true or false
    name String
    The name of the team
    notifyEmails List<String>
    Emails to attach to the team
    opsgenieId String
    The Opsgenie group id associated to this team
    pagerdutyId String
    The PagerDuty group id associated to this team
    pagerdutyServiceId String
    The PagerDuty service id associated to this team
    pagertreeId String
    The PagerTree group id associated to this team
    position Integer
    Position of the team
    properties List<TeamProperty>
    Array of property values for this team.
    serviceNowCiSysId String
    The Service Now CI sys id associated to this team
    slackAliases List<TeamSlackAlias>
    Slack Aliases associated with this team
    slackChannels List<TeamSlackChannel>
    Slack Channels associated with this team
    slug String
    userIds List<Integer>
    The user ids of the members of this team.
    victorOpsId String
    The VictorOps group id associated to this team
    adminIds number[]
    The user ids of the admins of this team. These users must also be present in userIds attribute.
    alertBroadcastChannel TeamAlertBroadcastChannel
    Map must contain two fields, id and name. Slack channel to broadcast alerts to
    alertBroadcastEnabled boolean
    Enable alerts to be broadcasted to a specific channel. Value must be one of true or false
    alertUrgencyId string
    The alert urgency id of the team
    autoAddMembersWhenAttached boolean
    Auto add members to incident channel when team is attached. Value must be one of true or false
    backstageId string
    The Backstage entity id associated to this team. eg: :namespace/:kind/:entity_name
    color string
    The hex color of the team
    cortexId string
    The Cortex group id associated to this team
    description string
    The description of the team
    externalId string
    The external id associated to this team
    incidentBroadcastChannel TeamIncidentBroadcastChannel
    Map must contain two fields, id and name. Slack channel to broadcast incidents to
    incidentBroadcastEnabled boolean
    Enable incidents to be broadcasted to a specific channel. Value must be one of true or false
    name string
    The name of the team
    notifyEmails string[]
    Emails to attach to the team
    opsgenieId string
    The Opsgenie group id associated to this team
    pagerdutyId string
    The PagerDuty group id associated to this team
    pagerdutyServiceId string
    The PagerDuty service id associated to this team
    pagertreeId string
    The PagerTree group id associated to this team
    position number
    Position of the team
    properties TeamProperty[]
    Array of property values for this team.
    serviceNowCiSysId string
    The Service Now CI sys id associated to this team
    slackAliases TeamSlackAlias[]
    Slack Aliases associated with this team
    slackChannels TeamSlackChannel[]
    Slack Channels associated with this team
    slug string
    userIds number[]
    The user ids of the members of this team.
    victorOpsId string
    The VictorOps group id associated to this team
    admin_ids Sequence[int]
    The user ids of the admins of this team. These users must also be present in userIds attribute.
    alert_broadcast_channel TeamAlertBroadcastChannelArgs
    Map must contain two fields, id and name. Slack channel to broadcast alerts to
    alert_broadcast_enabled bool
    Enable alerts to be broadcasted to a specific channel. Value must be one of true or false
    alert_urgency_id str
    The alert urgency id of the team
    auto_add_members_when_attached bool
    Auto add members to incident channel when team is attached. Value must be one of true or false
    backstage_id str
    The Backstage entity id associated to this team. eg: :namespace/:kind/:entity_name
    color str
    The hex color of the team
    cortex_id str
    The Cortex group id associated to this team
    description str
    The description of the team
    external_id str
    The external id associated to this team
    incident_broadcast_channel TeamIncidentBroadcastChannelArgs
    Map must contain two fields, id and name. Slack channel to broadcast incidents to
    incident_broadcast_enabled bool
    Enable incidents to be broadcasted to a specific channel. Value must be one of true or false
    name str
    The name of the team
    notify_emails Sequence[str]
    Emails to attach to the team
    opsgenie_id str
    The Opsgenie group id associated to this team
    pagerduty_id str
    The PagerDuty group id associated to this team
    pagerduty_service_id str
    The PagerDuty service id associated to this team
    pagertree_id str
    The PagerTree group id associated to this team
    position int
    Position of the team
    properties Sequence[TeamPropertyArgs]
    Array of property values for this team.
    service_now_ci_sys_id str
    The Service Now CI sys id associated to this team
    slack_aliases Sequence[TeamSlackAliasArgs]
    Slack Aliases associated with this team
    slack_channels Sequence[TeamSlackChannelArgs]
    Slack Channels associated with this team
    slug str
    user_ids Sequence[int]
    The user ids of the members of this team.
    victor_ops_id str
    The VictorOps group id associated to this team
    adminIds List<Number>
    The user ids of the admins of this team. These users must also be present in userIds attribute.
    alertBroadcastChannel Property Map
    Map must contain two fields, id and name. Slack channel to broadcast alerts to
    alertBroadcastEnabled Boolean
    Enable alerts to be broadcasted to a specific channel. Value must be one of true or false
    alertUrgencyId String
    The alert urgency id of the team
    autoAddMembersWhenAttached Boolean
    Auto add members to incident channel when team is attached. Value must be one of true or false
    backstageId String
    The Backstage entity id associated to this team. eg: :namespace/:kind/:entity_name
    color String
    The hex color of the team
    cortexId String
    The Cortex group id associated to this team
    description String
    The description of the team
    externalId String
    The external id associated to this team
    incidentBroadcastChannel Property Map
    Map must contain two fields, id and name. Slack channel to broadcast incidents to
    incidentBroadcastEnabled Boolean
    Enable incidents to be broadcasted to a specific channel. Value must be one of true or false
    name String
    The name of the team
    notifyEmails List<String>
    Emails to attach to the team
    opsgenieId String
    The Opsgenie group id associated to this team
    pagerdutyId String
    The PagerDuty group id associated to this team
    pagerdutyServiceId String
    The PagerDuty service id associated to this team
    pagertreeId String
    The PagerTree group id associated to this team
    position Number
    Position of the team
    properties List<Property Map>
    Array of property values for this team.
    serviceNowCiSysId String
    The Service Now CI sys id associated to this team
    slackAliases List<Property Map>
    Slack Aliases associated with this team
    slackChannels List<Property Map>
    Slack Channels associated with this team
    slug String
    userIds List<Number>
    The user ids of the members of this team.
    victorOpsId String
    The VictorOps group id associated to this team

    Supporting Types

    TeamAlertBroadcastChannel, TeamAlertBroadcastChannelArgs

    Id string
    Slack channel ID
    Name string
    Slack channel name
    Id string
    Slack channel ID
    Name string
    Slack channel name
    id String
    Slack channel ID
    name String
    Slack channel name
    id string
    Slack channel ID
    name string
    Slack channel name
    id str
    Slack channel ID
    name str
    Slack channel name
    id String
    Slack channel ID
    name String
    Slack channel name

    TeamIncidentBroadcastChannel, TeamIncidentBroadcastChannelArgs

    Id string
    Slack channel ID
    Name string
    Slack channel name
    Id string
    Slack channel ID
    Name string
    Slack channel name
    id String
    Slack channel ID
    name String
    Slack channel name
    id string
    Slack channel ID
    name string
    Slack channel name
    id str
    Slack channel ID
    name str
    Slack channel name
    id String
    Slack channel ID
    name String
    Slack channel name

    TeamProperty, TeamPropertyArgs

    CatalogPropertyId string
    Catalog property ID
    Value string
    The property value
    CatalogPropertyId string
    Catalog property ID
    Value string
    The property value
    catalogPropertyId String
    Catalog property ID
    value String
    The property value
    catalogPropertyId string
    Catalog property ID
    value string
    The property value
    catalog_property_id str
    Catalog property ID
    value str
    The property value
    catalogPropertyId String
    Catalog property ID
    value String
    The property value

    TeamSlackAlias, TeamSlackAliasArgs

    Id string
    Slack alias ID
    Name string
    Slack alias name
    Id string
    Slack alias ID
    Name string
    Slack alias name
    id String
    Slack alias ID
    name String
    Slack alias name
    id string
    Slack alias ID
    name string
    Slack alias name
    id str
    Slack alias ID
    name str
    Slack alias name
    id String
    Slack alias ID
    name String
    Slack alias name

    TeamSlackChannel, TeamSlackChannelArgs

    Id string
    Slack channel ID
    Name string
    Slack channel name
    Id string
    Slack channel ID
    Name string
    Slack channel name
    id String
    Slack channel ID
    name String
    Slack channel name
    id string
    Slack channel ID
    name string
    Slack channel name
    id str
    Slack channel ID
    name str
    Slack channel name
    id String
    Slack channel ID
    name String
    Slack channel name

    Import

    rootly.Team can be imported using the import command.

    $ pulumi import rootly:index/team:Team primary a816421c-6ceb-481a-87c4-585e47451f24
    

    Or using an import block.

    Locate the resource id in the web app, or retrieve it by listing resources through the API if it’s not visible in the web app.

    HCL can be generated from the import block using the -generate-config-out flag.

    pulumi preview -generate-config-out=generated.tf
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    rootly rootlyhq/pulumi-rootly
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the rootly Terraform Provider.
    rootly logo
    Viewing docs for Rootly v3.3.0
    published on Thursday, May 7, 2026 by rootlyhq
      Try Pulumi Cloud free. Your team will thank you.