1. Packages
  2. Rootly
  3. API Docs
  4. Team
Rootly v1.5.0 published on Thursday, Apr 25, 2024 by Rootly

rootly.Team

Explore with Pulumi AI

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,
         color: Optional[str] = None,
         description: Optional[str] = None,
         name: Optional[str] = None,
         notify_emails: Optional[Sequence[str]] = None,
         opsgenie_id: Optional[str] = None,
         pagerduty_id: Optional[str] = None,
         pagertree_id: Optional[str] = None,
         position: Optional[int] = 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. String
The unique name of the resource.
args This property is required. 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()
{
    Color = "string",
    Description = "string",
    Name = "string",
    NotifyEmails = new[]
    {
        "string",
    },
    OpsgenieId = "string",
    PagerdutyId = "string",
    PagertreeId = "string",
    Position = 0,
    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",
});
Copy
example, err := rootly.NewTeam(ctx, "teamResource", &rootly.TeamArgs{
	Color:       pulumi.String("string"),
	Description: pulumi.String("string"),
	Name:        pulumi.String("string"),
	NotifyEmails: pulumi.StringArray{
		pulumi.String("string"),
	},
	OpsgenieId:  pulumi.String("string"),
	PagerdutyId: pulumi.String("string"),
	PagertreeId: pulumi.String("string"),
	Position:    pulumi.Int(0),
	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"),
})
Copy
var teamResource = new Team("teamResource", TeamArgs.builder()
    .color("string")
    .description("string")
    .name("string")
    .notifyEmails("string")
    .opsgenieId("string")
    .pagerdutyId("string")
    .pagertreeId("string")
    .position(0)
    .slackAliases(TeamSlackAliasArgs.builder()
        .id("string")
        .name("string")
        .build())
    .slackChannels(TeamSlackChannelArgs.builder()
        .id("string")
        .name("string")
        .build())
    .slug("string")
    .userIds(0)
    .victorOpsId("string")
    .build());
Copy
team_resource = rootly.Team("teamResource",
    color="string",
    description="string",
    name="string",
    notify_emails=["string"],
    opsgenie_id="string",
    pagerduty_id="string",
    pagertree_id="string",
    position=0,
    slack_aliases=[{
        "id": "string",
        "name": "string",
    }],
    slack_channels=[{
        "id": "string",
        "name": "string",
    }],
    slug="string",
    user_ids=[0],
    victor_ops_id="string")
Copy
const teamResource = new rootly.Team("teamResource", {
    color: "string",
    description: "string",
    name: "string",
    notifyEmails: ["string"],
    opsgenieId: "string",
    pagerdutyId: "string",
    pagertreeId: "string",
    position: 0,
    slackAliases: [{
        id: "string",
        name: "string",
    }],
    slackChannels: [{
        id: "string",
        name: "string",
    }],
    slug: "string",
    userIds: [0],
    victorOpsId: "string",
});
Copy
type: rootly:Team
properties:
    color: string
    description: string
    name: string
    notifyEmails:
        - string
    opsgenieId: string
    pagerdutyId: string
    pagertreeId: string
    position: 0
    slackAliases:
        - id: string
          name: string
    slackChannels:
        - id: string
          name: string
    slug: string
    userIds:
        - 0
    victorOpsId: string
Copy

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:

Color string
The hex color of the team
Description string
The description of the team
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
PagertreeId string
The PagerTree group id associated to this team
Position int
Position of the team
SlackAliases List<TeamSlackAlias>
Slack Aliases associated with this service
SlackChannels List<TeamSlackChannel>
Slack Channels associated with this service
Slug string
UserIds List<int>
The User ID's members of this team
VictorOpsId string
The VictorOps group id associated to this team
Color string
The hex color of the team
Description string
The description of the team
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
PagertreeId string
The PagerTree group id associated to this team
Position int
Position of the team
SlackAliases []TeamSlackAliasArgs
Slack Aliases associated with this service
SlackChannels []TeamSlackChannelArgs
Slack Channels associated with this service
Slug string
UserIds []int
The User ID's members of this team
VictorOpsId string
The VictorOps group id associated to this team
color String
The hex color of the team
description String
The description of the team
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
pagertreeId String
The PagerTree group id associated to this team
position Integer
Position of the team
slackAliases List<TeamSlackAlias>
Slack Aliases associated with this service
slackChannels List<TeamSlackChannel>
Slack Channels associated with this service
slug String
userIds List<Integer>
The User ID's members of this team
victorOpsId String
The VictorOps group id associated to this team
color string
The hex color of the team
description string
The description of the team
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
pagertreeId string
The PagerTree group id associated to this team
position number
Position of the team
slackAliases TeamSlackAlias[]
Slack Aliases associated with this service
slackChannels TeamSlackChannel[]
Slack Channels associated with this service
slug string
userIds number[]
The User ID's members of this team
victorOpsId string
The VictorOps group id associated to this team
color str
The hex color of the team
description str
The description of the team
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
pagertree_id str
The PagerTree group id associated to this team
position int
Position of the team
slack_aliases Sequence[TeamSlackAliasArgs]
Slack Aliases associated with this service
slack_channels Sequence[TeamSlackChannelArgs]
Slack Channels associated with this service
slug str
user_ids Sequence[int]
The User ID's members of this team
victor_ops_id str
The VictorOps group id associated to this team
color String
The hex color of the team
description String
The description of the team
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
pagertreeId String
The PagerTree group id associated to this team
position Number
Position of the team
slackAliases List<Property Map>
Slack Aliases associated with this service
slackChannels List<Property Map>
Slack Channels associated with this service
slug String
userIds List<Number>
The User ID's 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,
        color: Optional[str] = None,
        description: Optional[str] = None,
        name: Optional[str] = None,
        notify_emails: Optional[Sequence[str]] = None,
        opsgenie_id: Optional[str] = None,
        pagerduty_id: Optional[str] = None,
        pagertree_id: Optional[str] = None,
        position: Optional[int] = 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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Color string
The hex color of the team
Description string
The description of the team
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
PagertreeId string
The PagerTree group id associated to this team
Position int
Position of the team
SlackAliases List<TeamSlackAlias>
Slack Aliases associated with this service
SlackChannels List<TeamSlackChannel>
Slack Channels associated with this service
Slug string
UserIds List<int>
The User ID's members of this team
VictorOpsId string
The VictorOps group id associated to this team
Color string
The hex color of the team
Description string
The description of the team
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
PagertreeId string
The PagerTree group id associated to this team
Position int
Position of the team
SlackAliases []TeamSlackAliasArgs
Slack Aliases associated with this service
SlackChannels []TeamSlackChannelArgs
Slack Channels associated with this service
Slug string
UserIds []int
The User ID's members of this team
VictorOpsId string
The VictorOps group id associated to this team
color String
The hex color of the team
description String
The description of the team
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
pagertreeId String
The PagerTree group id associated to this team
position Integer
Position of the team
slackAliases List<TeamSlackAlias>
Slack Aliases associated with this service
slackChannels List<TeamSlackChannel>
Slack Channels associated with this service
slug String
userIds List<Integer>
The User ID's members of this team
victorOpsId String
The VictorOps group id associated to this team
color string
The hex color of the team
description string
The description of the team
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
pagertreeId string
The PagerTree group id associated to this team
position number
Position of the team
slackAliases TeamSlackAlias[]
Slack Aliases associated with this service
slackChannels TeamSlackChannel[]
Slack Channels associated with this service
slug string
userIds number[]
The User ID's members of this team
victorOpsId string
The VictorOps group id associated to this team
color str
The hex color of the team
description str
The description of the team
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
pagertree_id str
The PagerTree group id associated to this team
position int
Position of the team
slack_aliases Sequence[TeamSlackAliasArgs]
Slack Aliases associated with this service
slack_channels Sequence[TeamSlackChannelArgs]
Slack Channels associated with this service
slug str
user_ids Sequence[int]
The User ID's members of this team
victor_ops_id str
The VictorOps group id associated to this team
color String
The hex color of the team
description String
The description of the team
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
pagertreeId String
The PagerTree group id associated to this team
position Number
Position of the team
slackAliases List<Property Map>
Slack Aliases associated with this service
slackChannels List<Property Map>
Slack Channels associated with this service
slug String
userIds List<Number>
The User ID's members of this team
victorOpsId String
The VictorOps group id associated to this team

Supporting Types

TeamSlackAlias
, TeamSlackAliasArgs

Id This property is required. string
Name This property is required. string
Id This property is required. string
Name This property is required. string
id This property is required. String
name This property is required. String
id This property is required. string
name This property is required. string
id This property is required. str
name This property is required. str
id This property is required. String
name This property is required. String

TeamSlackChannel
, TeamSlackChannelArgs

Id This property is required. string
Name This property is required. string
Id This property is required. string
Name This property is required. string
id This property is required. String
name This property is required. String
id This property is required. string
name This property is required. string
id This property is required. str
name This property is required. str
id This property is required. String
name This property is required. String

Package Details

Repository
rootly rootlyhq/pulumi-rootly
License
Apache-2.0
Notes
This Pulumi package is based on the rootly Terraform Provider.