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)
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()
{
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",
});
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"),
})
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());
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=[rootly.TeamSlackAliasArgs(
id="string",
name="string",
)],
slack_channels=[rootly.TeamSlackChannelArgs(
id="string",
name="string",
)],
slug="string",
user_ids=[0],
victor_ops_id="string")
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",
});
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
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
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
- Notify
Emails List<string> - Emails to attach to the team
- Opsgenie
Id string - The Opsgenie group id associated to this team
- Pagerduty
Id string - The PagerDuty group id associated to this team
- Pagertree
Id string - The PagerTree group id associated to this team
- Position int
- Position of the team
- Slack
Aliases List<TeamSlack Alias> - Slack Aliases associated with this service
- Slack
Channels List<TeamSlack Channel> - Slack Channels associated with this service
- Slug string
- User
Ids List<int> - The User ID's members of this team
- Victor
Ops stringId - 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
- Notify
Emails []string - Emails to attach to the team
- Opsgenie
Id string - The Opsgenie group id associated to this team
- Pagerduty
Id string - The PagerDuty group id associated to this team
- Pagertree
Id string - The PagerTree group id associated to this team
- Position int
- Position of the team
- Slack
Aliases []TeamSlack Alias Args - Slack Aliases associated with this service
- Slack
Channels []TeamSlack Channel Args - Slack Channels associated with this service
- Slug string
- User
Ids []int - The User ID's members of this team
- Victor
Ops stringId - 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
- notify
Emails List<String> - Emails to attach to the team
- opsgenie
Id String - The Opsgenie group id associated to this team
- pagerduty
Id String - The PagerDuty group id associated to this team
- pagertree
Id String - The PagerTree group id associated to this team
- position Integer
- Position of the team
- slack
Aliases List<TeamSlack Alias> - Slack Aliases associated with this service
- slack
Channels List<TeamSlack Channel> - Slack Channels associated with this service
- slug String
- user
Ids List<Integer> - The User ID's members of this team
- victor
Ops StringId - 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
- notify
Emails string[] - Emails to attach to the team
- opsgenie
Id string - The Opsgenie group id associated to this team
- pagerduty
Id string - The PagerDuty group id associated to this team
- pagertree
Id string - The PagerTree group id associated to this team
- position number
- Position of the team
- slack
Aliases TeamSlack Alias[] - Slack Aliases associated with this service
- slack
Channels TeamSlack Channel[] - Slack Channels associated with this service
- slug string
- user
Ids number[] - The User ID's members of this team
- victor
Ops stringId - 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[TeamSlack Alias Args] - Slack Aliases associated with this service
- slack_
channels Sequence[TeamSlack Channel Args] - Slack Channels associated with this service
- slug str
- user_
ids Sequence[int] - The User ID's members of this team
- victor_
ops_ strid - 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
- notify
Emails List<String> - Emails to attach to the team
- opsgenie
Id String - The Opsgenie group id associated to this team
- pagerduty
Id String - The PagerDuty group id associated to this team
- pagertree
Id String - The PagerTree group id associated to this team
- position Number
- Position of the team
- slack
Aliases List<Property Map> - Slack Aliases associated with this service
- slack
Channels List<Property Map> - Slack Channels associated with this service
- slug String
- user
Ids List<Number> - The User ID's members of this team
- victor
Ops StringId - 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)
Resource lookup is not supported in YAML
- 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.
- Color string
- The hex color of the team
- Description string
- The description of the team
- Name string
- The name of the team
- Notify
Emails List<string> - Emails to attach to the team
- Opsgenie
Id string - The Opsgenie group id associated to this team
- Pagerduty
Id string - The PagerDuty group id associated to this team
- Pagertree
Id string - The PagerTree group id associated to this team
- Position int
- Position of the team
- Slack
Aliases List<TeamSlack Alias> - Slack Aliases associated with this service
- Slack
Channels List<TeamSlack Channel> - Slack Channels associated with this service
- Slug string
- User
Ids List<int> - The User ID's members of this team
- Victor
Ops stringId - 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
- Notify
Emails []string - Emails to attach to the team
- Opsgenie
Id string - The Opsgenie group id associated to this team
- Pagerduty
Id string - The PagerDuty group id associated to this team
- Pagertree
Id string - The PagerTree group id associated to this team
- Position int
- Position of the team
- Slack
Aliases []TeamSlack Alias Args - Slack Aliases associated with this service
- Slack
Channels []TeamSlack Channel Args - Slack Channels associated with this service
- Slug string
- User
Ids []int - The User ID's members of this team
- Victor
Ops stringId - 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
- notify
Emails List<String> - Emails to attach to the team
- opsgenie
Id String - The Opsgenie group id associated to this team
- pagerduty
Id String - The PagerDuty group id associated to this team
- pagertree
Id String - The PagerTree group id associated to this team
- position Integer
- Position of the team
- slack
Aliases List<TeamSlack Alias> - Slack Aliases associated with this service
- slack
Channels List<TeamSlack Channel> - Slack Channels associated with this service
- slug String
- user
Ids List<Integer> - The User ID's members of this team
- victor
Ops StringId - 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
- notify
Emails string[] - Emails to attach to the team
- opsgenie
Id string - The Opsgenie group id associated to this team
- pagerduty
Id string - The PagerDuty group id associated to this team
- pagertree
Id string - The PagerTree group id associated to this team
- position number
- Position of the team
- slack
Aliases TeamSlack Alias[] - Slack Aliases associated with this service
- slack
Channels TeamSlack Channel[] - Slack Channels associated with this service
- slug string
- user
Ids number[] - The User ID's members of this team
- victor
Ops stringId - 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[TeamSlack Alias Args] - Slack Aliases associated with this service
- slack_
channels Sequence[TeamSlack Channel Args] - Slack Channels associated with this service
- slug str
- user_
ids Sequence[int] - The User ID's members of this team
- victor_
ops_ strid - 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
- notify
Emails List<String> - Emails to attach to the team
- opsgenie
Id String - The Opsgenie group id associated to this team
- pagerduty
Id String - The PagerDuty group id associated to this team
- pagertree
Id String - The PagerTree group id associated to this team
- position Number
- Position of the team
- slack
Aliases List<Property Map> - Slack Aliases associated with this service
- slack
Channels List<Property Map> - Slack Channels associated with this service
- slug String
- user
Ids List<Number> - The User ID's members of this team
- victor
Ops StringId - The VictorOps group id associated to this team
Supporting Types
TeamSlackAlias, TeamSlackAliasArgs
TeamSlackChannel, TeamSlackChannelArgs
Package Details
- Repository
- rootly rootlyhq/pulumi-rootly
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rootly
Terraform Provider.