published on Thursday, May 7, 2026 by rootlyhq
published on Thursday, May 7, 2026 by rootlyhq
Example Usage
resource "rootly_service" "elasticsearch_prod" {
name = "elasticsearch-prod"
color = "#800080"
notify_emails = ["foo@acme.com", "bar@acme.com"]
slack_aliases {
id = "S0614TZR7"
name = "Alias 1" // Any string really
}
slack_channels {
id = "C06A4RZR9"
name = "Channel 1" // Any string really
}
slack_channels {
id = "C02T4RYR2"
name = "Channel 2" // Any string really
}
}
resource "rootly_service" "customer_postgresql_prod" {
name = "customer-postgresql-prod"
color = "#800080"
notify_emails = ["foo@acme.com", "bar@acme.com"]
slack_aliases {
id = "S0614TZR7"
name = "Alias 1" // Any string really
}
slack_channels {
id = "C06A4RZR9"
name = "Channel 1" // Any string really
}
slack_channels {
id = "C02T4RYR2"
name = "Channel 2" // Any string really
}
}
Create Service Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Service(name: string, args?: ServiceArgs, opts?: CustomResourceOptions);@overload
def Service(resource_name: str,
args: Optional[ServiceArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Service(resource_name: str,
opts: Optional[ResourceOptions] = None,
alert_broadcast_channel: Optional[ServiceAlertBroadcastChannelArgs] = None,
alert_broadcast_enabled: Optional[bool] = None,
alert_urgency_id: Optional[str] = None,
alerts_email_address: Optional[str] = None,
alerts_email_enabled: Optional[bool] = None,
backstage_id: Optional[str] = None,
color: Optional[str] = None,
cortex_id: Optional[str] = None,
description: Optional[str] = None,
environment_ids: Optional[Sequence[str]] = None,
escalation_policy_id: Optional[str] = None,
external_id: Optional[str] = None,
github_repository_branch: Optional[str] = None,
github_repository_name: Optional[str] = None,
gitlab_repository_branch: Optional[str] = None,
gitlab_repository_name: Optional[str] = None,
incident_broadcast_channel: Optional[ServiceIncidentBroadcastChannelArgs] = None,
incident_broadcast_enabled: Optional[bool] = None,
kubernetes_deployment_name: Optional[str] = None,
name: Optional[str] = None,
notify_emails: Optional[Sequence[str]] = None,
opsgenie_id: Optional[str] = None,
owner_group_ids: Optional[Sequence[str]] = None,
owner_user_ids: Optional[Sequence[int]] = None,
pagerduty_id: Optional[str] = None,
position: Optional[int] = None,
properties: Optional[Sequence[ServicePropertyArgs]] = None,
public_description: Optional[str] = None,
service_ids: Optional[Sequence[str]] = None,
service_now_ci_sys_id: Optional[str] = None,
slack_aliases: Optional[Sequence[ServiceSlackAliasArgs]] = None,
slack_channels: Optional[Sequence[ServiceSlackChannelArgs]] = None,
slug: Optional[str] = None)func NewService(ctx *Context, name string, args *ServiceArgs, opts ...ResourceOption) (*Service, error)public Service(string name, ServiceArgs? args = null, CustomResourceOptions? opts = null)
public Service(String name, ServiceArgs args)
public Service(String name, ServiceArgs args, CustomResourceOptions options)
type: rootly:Service
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 ServiceArgs
- 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 ServiceArgs
- 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 ServiceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServiceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServiceArgs
- 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 serviceResource = new Rootly.Service("serviceResource", new()
{
AlertBroadcastChannel = new Rootly.Inputs.ServiceAlertBroadcastChannelArgs
{
Id = "string",
Name = "string",
},
AlertBroadcastEnabled = false,
AlertUrgencyId = "string",
AlertsEmailAddress = "string",
AlertsEmailEnabled = false,
BackstageId = "string",
Color = "string",
CortexId = "string",
Description = "string",
EnvironmentIds = new[]
{
"string",
},
EscalationPolicyId = "string",
ExternalId = "string",
GithubRepositoryBranch = "string",
GithubRepositoryName = "string",
GitlabRepositoryBranch = "string",
GitlabRepositoryName = "string",
IncidentBroadcastChannel = new Rootly.Inputs.ServiceIncidentBroadcastChannelArgs
{
Id = "string",
Name = "string",
},
IncidentBroadcastEnabled = false,
KubernetesDeploymentName = "string",
Name = "string",
NotifyEmails = new[]
{
"string",
},
OpsgenieId = "string",
OwnerGroupIds = new[]
{
"string",
},
OwnerUserIds = new[]
{
0,
},
PagerdutyId = "string",
Position = 0,
Properties = new[]
{
new Rootly.Inputs.ServicePropertyArgs
{
CatalogPropertyId = "string",
Value = "string",
},
},
PublicDescription = "string",
ServiceIds = new[]
{
"string",
},
ServiceNowCiSysId = "string",
SlackAliases = new[]
{
new Rootly.Inputs.ServiceSlackAliasArgs
{
Id = "string",
Name = "string",
},
},
SlackChannels = new[]
{
new Rootly.Inputs.ServiceSlackChannelArgs
{
Id = "string",
Name = "string",
},
},
Slug = "string",
});
example, err := rootly.NewService(ctx, "serviceResource", &rootly.ServiceArgs{
AlertBroadcastChannel: &rootly.ServiceAlertBroadcastChannelArgs{
Id: pulumi.String("string"),
Name: pulumi.String("string"),
},
AlertBroadcastEnabled: pulumi.Bool(false),
AlertUrgencyId: pulumi.String("string"),
AlertsEmailAddress: pulumi.String("string"),
AlertsEmailEnabled: pulumi.Bool(false),
BackstageId: pulumi.String("string"),
Color: pulumi.String("string"),
CortexId: pulumi.String("string"),
Description: pulumi.String("string"),
EnvironmentIds: pulumi.StringArray{
pulumi.String("string"),
},
EscalationPolicyId: pulumi.String("string"),
ExternalId: pulumi.String("string"),
GithubRepositoryBranch: pulumi.String("string"),
GithubRepositoryName: pulumi.String("string"),
GitlabRepositoryBranch: pulumi.String("string"),
GitlabRepositoryName: pulumi.String("string"),
IncidentBroadcastChannel: &rootly.ServiceIncidentBroadcastChannelArgs{
Id: pulumi.String("string"),
Name: pulumi.String("string"),
},
IncidentBroadcastEnabled: pulumi.Bool(false),
KubernetesDeploymentName: pulumi.String("string"),
Name: pulumi.String("string"),
NotifyEmails: pulumi.StringArray{
pulumi.String("string"),
},
OpsgenieId: pulumi.String("string"),
OwnerGroupIds: pulumi.StringArray{
pulumi.String("string"),
},
OwnerUserIds: pulumi.IntArray{
pulumi.Int(0),
},
PagerdutyId: pulumi.String("string"),
Position: pulumi.Int(0),
Properties: rootly.ServicePropertyArray{
&rootly.ServicePropertyArgs{
CatalogPropertyId: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
PublicDescription: pulumi.String("string"),
ServiceIds: pulumi.StringArray{
pulumi.String("string"),
},
ServiceNowCiSysId: pulumi.String("string"),
SlackAliases: rootly.ServiceSlackAliasArray{
&rootly.ServiceSlackAliasArgs{
Id: pulumi.String("string"),
Name: pulumi.String("string"),
},
},
SlackChannels: rootly.ServiceSlackChannelArray{
&rootly.ServiceSlackChannelArgs{
Id: pulumi.String("string"),
Name: pulumi.String("string"),
},
},
Slug: pulumi.String("string"),
})
var serviceResource = new Service("serviceResource", ServiceArgs.builder()
.alertBroadcastChannel(ServiceAlertBroadcastChannelArgs.builder()
.id("string")
.name("string")
.build())
.alertBroadcastEnabled(false)
.alertUrgencyId("string")
.alertsEmailAddress("string")
.alertsEmailEnabled(false)
.backstageId("string")
.color("string")
.cortexId("string")
.description("string")
.environmentIds("string")
.escalationPolicyId("string")
.externalId("string")
.githubRepositoryBranch("string")
.githubRepositoryName("string")
.gitlabRepositoryBranch("string")
.gitlabRepositoryName("string")
.incidentBroadcastChannel(ServiceIncidentBroadcastChannelArgs.builder()
.id("string")
.name("string")
.build())
.incidentBroadcastEnabled(false)
.kubernetesDeploymentName("string")
.name("string")
.notifyEmails("string")
.opsgenieId("string")
.ownerGroupIds("string")
.ownerUserIds(0)
.pagerdutyId("string")
.position(0)
.properties(ServicePropertyArgs.builder()
.catalogPropertyId("string")
.value("string")
.build())
.publicDescription("string")
.serviceIds("string")
.serviceNowCiSysId("string")
.slackAliases(ServiceSlackAliasArgs.builder()
.id("string")
.name("string")
.build())
.slackChannels(ServiceSlackChannelArgs.builder()
.id("string")
.name("string")
.build())
.slug("string")
.build());
service_resource = rootly.Service("serviceResource",
alert_broadcast_channel={
"id": "string",
"name": "string",
},
alert_broadcast_enabled=False,
alert_urgency_id="string",
alerts_email_address="string",
alerts_email_enabled=False,
backstage_id="string",
color="string",
cortex_id="string",
description="string",
environment_ids=["string"],
escalation_policy_id="string",
external_id="string",
github_repository_branch="string",
github_repository_name="string",
gitlab_repository_branch="string",
gitlab_repository_name="string",
incident_broadcast_channel={
"id": "string",
"name": "string",
},
incident_broadcast_enabled=False,
kubernetes_deployment_name="string",
name="string",
notify_emails=["string"],
opsgenie_id="string",
owner_group_ids=["string"],
owner_user_ids=[0],
pagerduty_id="string",
position=0,
properties=[{
"catalog_property_id": "string",
"value": "string",
}],
public_description="string",
service_ids=["string"],
service_now_ci_sys_id="string",
slack_aliases=[{
"id": "string",
"name": "string",
}],
slack_channels=[{
"id": "string",
"name": "string",
}],
slug="string")
const serviceResource = new rootly.Service("serviceResource", {
alertBroadcastChannel: {
id: "string",
name: "string",
},
alertBroadcastEnabled: false,
alertUrgencyId: "string",
alertsEmailAddress: "string",
alertsEmailEnabled: false,
backstageId: "string",
color: "string",
cortexId: "string",
description: "string",
environmentIds: ["string"],
escalationPolicyId: "string",
externalId: "string",
githubRepositoryBranch: "string",
githubRepositoryName: "string",
gitlabRepositoryBranch: "string",
gitlabRepositoryName: "string",
incidentBroadcastChannel: {
id: "string",
name: "string",
},
incidentBroadcastEnabled: false,
kubernetesDeploymentName: "string",
name: "string",
notifyEmails: ["string"],
opsgenieId: "string",
ownerGroupIds: ["string"],
ownerUserIds: [0],
pagerdutyId: "string",
position: 0,
properties: [{
catalogPropertyId: "string",
value: "string",
}],
publicDescription: "string",
serviceIds: ["string"],
serviceNowCiSysId: "string",
slackAliases: [{
id: "string",
name: "string",
}],
slackChannels: [{
id: "string",
name: "string",
}],
slug: "string",
});
type: rootly:Service
properties:
alertBroadcastChannel:
id: string
name: string
alertBroadcastEnabled: false
alertUrgencyId: string
alertsEmailAddress: string
alertsEmailEnabled: false
backstageId: string
color: string
cortexId: string
description: string
environmentIds:
- string
escalationPolicyId: string
externalId: string
githubRepositoryBranch: string
githubRepositoryName: string
gitlabRepositoryBranch: string
gitlabRepositoryName: string
incidentBroadcastChannel:
id: string
name: string
incidentBroadcastEnabled: false
kubernetesDeploymentName: string
name: string
notifyEmails:
- string
opsgenieId: string
ownerGroupIds:
- string
ownerUserIds:
- 0
pagerdutyId: string
position: 0
properties:
- catalogPropertyId: string
value: string
publicDescription: string
serviceIds:
- string
serviceNowCiSysId: string
slackAliases:
- id: string
name: string
slackChannels:
- id: string
name: string
slug: string
Service 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 Service resource accepts the following input properties:
- Alert
Broadcast ServiceChannel Alert Broadcast Channel - Map must contain two fields,
idandname. Slack channel to broadcast alerts to - Alert
Broadcast boolEnabled - Enable alerts to be broadcasted to a specific channel. Value must be one of true or false
- Alert
Urgency stringId - The alert urgency id of the service
- Alerts
Email stringAddress - Email generated to send alerts to
- Alerts
Email boolEnabled - Enable alerts through email. Value must be one of true or false
- Backstage
Id string - The Backstage entity id associated to this service. eg: :namespace/:kind/:entity_name
- Color string
- The hex color of the service
- Cortex
Id string - The Cortex group id associated to this service
- Description string
- The description of the service
- Environment
Ids List<string> - Environments associated with this service
- Escalation
Policy stringId - The escalation policy id of the service
- External
Id string - The external id associated to this service
- Github
Repository stringBranch - The GitHub repository branch associated to this service. eg: main
- Github
Repository stringName - The GitHub repository name associated to this service. eg: rootlyhq/my-service
- Gitlab
Repository stringBranch - The GitLab repository branch associated to this service. eg: main
- Gitlab
Repository stringName - The GitLab repository name associated to this service. eg: rootlyhq/my-service
- Incident
Broadcast ServiceChannel Incident Broadcast Channel - Map must contain two fields,
idandname. Slack channel to broadcast incidents to - Incident
Broadcast boolEnabled - Enable incidents to be broadcasted to a specific channel. Value must be one of true or false
- Kubernetes
Deployment stringName - The Kubernetes deployment name associated to this service. eg: namespace/deployment-name
- Name string
- The name of the service
- Notify
Emails List<string> - Emails attached to the service
- Opsgenie
Id string - The Opsgenie service id associated to this service
- Owner
Group List<string>Ids - Owner Teams associated with this service
- Owner
User List<int>Ids - Owner Users associated with this service
- Pagerduty
Id string - The PagerDuty service id associated to this service
- Position int
- Position of the service
- Properties
List<Service
Property> - Array of property values for this service.
- Public
Description string - The public description of the service
- Service
Ids List<string> - Services dependent on this service
- Service
Now stringCi Sys Id - The Service Now CI sys id associated to this service
- Slack
Aliases List<ServiceSlack Alias> - Slack Aliases associated with this service
- Slack
Channels List<ServiceSlack Channel> - Slack Channels associated with this service
- Slug string
- The slug of the service
- Alert
Broadcast ServiceChannel Alert Broadcast Channel Args - Map must contain two fields,
idandname. Slack channel to broadcast alerts to - Alert
Broadcast boolEnabled - Enable alerts to be broadcasted to a specific channel. Value must be one of true or false
- Alert
Urgency stringId - The alert urgency id of the service
- Alerts
Email stringAddress - Email generated to send alerts to
- Alerts
Email boolEnabled - Enable alerts through email. Value must be one of true or false
- Backstage
Id string - The Backstage entity id associated to this service. eg: :namespace/:kind/:entity_name
- Color string
- The hex color of the service
- Cortex
Id string - The Cortex group id associated to this service
- Description string
- The description of the service
- Environment
Ids []string - Environments associated with this service
- Escalation
Policy stringId - The escalation policy id of the service
- External
Id string - The external id associated to this service
- Github
Repository stringBranch - The GitHub repository branch associated to this service. eg: main
- Github
Repository stringName - The GitHub repository name associated to this service. eg: rootlyhq/my-service
- Gitlab
Repository stringBranch - The GitLab repository branch associated to this service. eg: main
- Gitlab
Repository stringName - The GitLab repository name associated to this service. eg: rootlyhq/my-service
- Incident
Broadcast ServiceChannel Incident Broadcast Channel Args - Map must contain two fields,
idandname. Slack channel to broadcast incidents to - Incident
Broadcast boolEnabled - Enable incidents to be broadcasted to a specific channel. Value must be one of true or false
- Kubernetes
Deployment stringName - The Kubernetes deployment name associated to this service. eg: namespace/deployment-name
- Name string
- The name of the service
- Notify
Emails []string - Emails attached to the service
- Opsgenie
Id string - The Opsgenie service id associated to this service
- Owner
Group []stringIds - Owner Teams associated with this service
- Owner
User []intIds - Owner Users associated with this service
- Pagerduty
Id string - The PagerDuty service id associated to this service
- Position int
- Position of the service
- Properties
[]Service
Property Args - Array of property values for this service.
- Public
Description string - The public description of the service
- Service
Ids []string - Services dependent on this service
- Service
Now stringCi Sys Id - The Service Now CI sys id associated to this service
- Slack
Aliases []ServiceSlack Alias Args - Slack Aliases associated with this service
- Slack
Channels []ServiceSlack Channel Args - Slack Channels associated with this service
- Slug string
- The slug of the service
- alert
Broadcast ServiceChannel Alert Broadcast Channel - Map must contain two fields,
idandname. Slack channel to broadcast alerts to - alert
Broadcast BooleanEnabled - Enable alerts to be broadcasted to a specific channel. Value must be one of true or false
- alert
Urgency StringId - The alert urgency id of the service
- alerts
Email StringAddress - Email generated to send alerts to
- alerts
Email BooleanEnabled - Enable alerts through email. Value must be one of true or false
- backstage
Id String - The Backstage entity id associated to this service. eg: :namespace/:kind/:entity_name
- color String
- The hex color of the service
- cortex
Id String - The Cortex group id associated to this service
- description String
- The description of the service
- environment
Ids List<String> - Environments associated with this service
- escalation
Policy StringId - The escalation policy id of the service
- external
Id String - The external id associated to this service
- github
Repository StringBranch - The GitHub repository branch associated to this service. eg: main
- github
Repository StringName - The GitHub repository name associated to this service. eg: rootlyhq/my-service
- gitlab
Repository StringBranch - The GitLab repository branch associated to this service. eg: main
- gitlab
Repository StringName - The GitLab repository name associated to this service. eg: rootlyhq/my-service
- incident
Broadcast ServiceChannel Incident Broadcast Channel - Map must contain two fields,
idandname. Slack channel to broadcast incidents to - incident
Broadcast BooleanEnabled - Enable incidents to be broadcasted to a specific channel. Value must be one of true or false
- kubernetes
Deployment StringName - The Kubernetes deployment name associated to this service. eg: namespace/deployment-name
- name String
- The name of the service
- notify
Emails List<String> - Emails attached to the service
- opsgenie
Id String - The Opsgenie service id associated to this service
- owner
Group List<String>Ids - Owner Teams associated with this service
- owner
User List<Integer>Ids - Owner Users associated with this service
- pagerduty
Id String - The PagerDuty service id associated to this service
- position Integer
- Position of the service
- properties
List<Service
Property> - Array of property values for this service.
- public
Description String - The public description of the service
- service
Ids List<String> - Services dependent on this service
- service
Now StringCi Sys Id - The Service Now CI sys id associated to this service
- slack
Aliases List<ServiceSlack Alias> - Slack Aliases associated with this service
- slack
Channels List<ServiceSlack Channel> - Slack Channels associated with this service
- slug String
- The slug of the service
- alert
Broadcast ServiceChannel Alert Broadcast Channel - Map must contain two fields,
idandname. Slack channel to broadcast alerts to - alert
Broadcast booleanEnabled - Enable alerts to be broadcasted to a specific channel. Value must be one of true or false
- alert
Urgency stringId - The alert urgency id of the service
- alerts
Email stringAddress - Email generated to send alerts to
- alerts
Email booleanEnabled - Enable alerts through email. Value must be one of true or false
- backstage
Id string - The Backstage entity id associated to this service. eg: :namespace/:kind/:entity_name
- color string
- The hex color of the service
- cortex
Id string - The Cortex group id associated to this service
- description string
- The description of the service
- environment
Ids string[] - Environments associated with this service
- escalation
Policy stringId - The escalation policy id of the service
- external
Id string - The external id associated to this service
- github
Repository stringBranch - The GitHub repository branch associated to this service. eg: main
- github
Repository stringName - The GitHub repository name associated to this service. eg: rootlyhq/my-service
- gitlab
Repository stringBranch - The GitLab repository branch associated to this service. eg: main
- gitlab
Repository stringName - The GitLab repository name associated to this service. eg: rootlyhq/my-service
- incident
Broadcast ServiceChannel Incident Broadcast Channel - Map must contain two fields,
idandname. Slack channel to broadcast incidents to - incident
Broadcast booleanEnabled - Enable incidents to be broadcasted to a specific channel. Value must be one of true or false
- kubernetes
Deployment stringName - The Kubernetes deployment name associated to this service. eg: namespace/deployment-name
- name string
- The name of the service
- notify
Emails string[] - Emails attached to the service
- opsgenie
Id string - The Opsgenie service id associated to this service
- owner
Group string[]Ids - Owner Teams associated with this service
- owner
User number[]Ids - Owner Users associated with this service
- pagerduty
Id string - The PagerDuty service id associated to this service
- position number
- Position of the service
- properties
Service
Property[] - Array of property values for this service.
- public
Description string - The public description of the service
- service
Ids string[] - Services dependent on this service
- service
Now stringCi Sys Id - The Service Now CI sys id associated to this service
- slack
Aliases ServiceSlack Alias[] - Slack Aliases associated with this service
- slack
Channels ServiceSlack Channel[] - Slack Channels associated with this service
- slug string
- The slug of the service
- alert_
broadcast_ Servicechannel Alert Broadcast Channel Args - Map must contain two fields,
idandname. Slack channel to broadcast alerts to - alert_
broadcast_ boolenabled - Enable alerts to be broadcasted to a specific channel. Value must be one of true or false
- alert_
urgency_ strid - The alert urgency id of the service
- alerts_
email_ straddress - Email generated to send alerts to
- alerts_
email_ boolenabled - Enable alerts through email. Value must be one of true or false
- backstage_
id str - The Backstage entity id associated to this service. eg: :namespace/:kind/:entity_name
- color str
- The hex color of the service
- cortex_
id str - The Cortex group id associated to this service
- description str
- The description of the service
- environment_
ids Sequence[str] - Environments associated with this service
- escalation_
policy_ strid - The escalation policy id of the service
- external_
id str - The external id associated to this service
- github_
repository_ strbranch - The GitHub repository branch associated to this service. eg: main
- github_
repository_ strname - The GitHub repository name associated to this service. eg: rootlyhq/my-service
- gitlab_
repository_ strbranch - The GitLab repository branch associated to this service. eg: main
- gitlab_
repository_ strname - The GitLab repository name associated to this service. eg: rootlyhq/my-service
- incident_
broadcast_ Servicechannel Incident Broadcast Channel Args - Map must contain two fields,
idandname. Slack channel to broadcast incidents to - incident_
broadcast_ boolenabled - Enable incidents to be broadcasted to a specific channel. Value must be one of true or false
- kubernetes_
deployment_ strname - The Kubernetes deployment name associated to this service. eg: namespace/deployment-name
- name str
- The name of the service
- notify_
emails Sequence[str] - Emails attached to the service
- opsgenie_
id str - The Opsgenie service id associated to this service
- owner_
group_ Sequence[str]ids - Owner Teams associated with this service
- owner_
user_ Sequence[int]ids - Owner Users associated with this service
- pagerduty_
id str - The PagerDuty service id associated to this service
- position int
- Position of the service
- properties
Sequence[Service
Property Args] - Array of property values for this service.
- public_
description str - The public description of the service
- service_
ids Sequence[str] - Services dependent on this service
- service_
now_ strci_ sys_ id - The Service Now CI sys id associated to this service
- slack_
aliases Sequence[ServiceSlack Alias Args] - Slack Aliases associated with this service
- slack_
channels Sequence[ServiceSlack Channel Args] - Slack Channels associated with this service
- slug str
- The slug of the service
- alert
Broadcast Property MapChannel - Map must contain two fields,
idandname. Slack channel to broadcast alerts to - alert
Broadcast BooleanEnabled - Enable alerts to be broadcasted to a specific channel. Value must be one of true or false
- alert
Urgency StringId - The alert urgency id of the service
- alerts
Email StringAddress - Email generated to send alerts to
- alerts
Email BooleanEnabled - Enable alerts through email. Value must be one of true or false
- backstage
Id String - The Backstage entity id associated to this service. eg: :namespace/:kind/:entity_name
- color String
- The hex color of the service
- cortex
Id String - The Cortex group id associated to this service
- description String
- The description of the service
- environment
Ids List<String> - Environments associated with this service
- escalation
Policy StringId - The escalation policy id of the service
- external
Id String - The external id associated to this service
- github
Repository StringBranch - The GitHub repository branch associated to this service. eg: main
- github
Repository StringName - The GitHub repository name associated to this service. eg: rootlyhq/my-service
- gitlab
Repository StringBranch - The GitLab repository branch associated to this service. eg: main
- gitlab
Repository StringName - The GitLab repository name associated to this service. eg: rootlyhq/my-service
- incident
Broadcast Property MapChannel - Map must contain two fields,
idandname. Slack channel to broadcast incidents to - incident
Broadcast BooleanEnabled - Enable incidents to be broadcasted to a specific channel. Value must be one of true or false
- kubernetes
Deployment StringName - The Kubernetes deployment name associated to this service. eg: namespace/deployment-name
- name String
- The name of the service
- notify
Emails List<String> - Emails attached to the service
- opsgenie
Id String - The Opsgenie service id associated to this service
- owner
Group List<String>Ids - Owner Teams associated with this service
- owner
User List<Number>Ids - Owner Users associated with this service
- pagerduty
Id String - The PagerDuty service id associated to this service
- position Number
- Position of the service
- properties List<Property Map>
- Array of property values for this service.
- public
Description String - The public description of the service
- service
Ids List<String> - Services dependent on this service
- service
Now StringCi Sys Id - The Service Now CI sys id associated to this service
- slack
Aliases List<Property Map> - Slack Aliases associated with this service
- slack
Channels List<Property Map> - Slack Channels associated with this service
- slug String
- The slug of the service
Outputs
All input properties are implicitly available as output properties. Additionally, the Service 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 Service Resource
Get an existing Service 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?: ServiceState, opts?: CustomResourceOptions): Service@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
alert_broadcast_channel: Optional[ServiceAlertBroadcastChannelArgs] = None,
alert_broadcast_enabled: Optional[bool] = None,
alert_urgency_id: Optional[str] = None,
alerts_email_address: Optional[str] = None,
alerts_email_enabled: Optional[bool] = None,
backstage_id: Optional[str] = None,
color: Optional[str] = None,
cortex_id: Optional[str] = None,
description: Optional[str] = None,
environment_ids: Optional[Sequence[str]] = None,
escalation_policy_id: Optional[str] = None,
external_id: Optional[str] = None,
github_repository_branch: Optional[str] = None,
github_repository_name: Optional[str] = None,
gitlab_repository_branch: Optional[str] = None,
gitlab_repository_name: Optional[str] = None,
incident_broadcast_channel: Optional[ServiceIncidentBroadcastChannelArgs] = None,
incident_broadcast_enabled: Optional[bool] = None,
kubernetes_deployment_name: Optional[str] = None,
name: Optional[str] = None,
notify_emails: Optional[Sequence[str]] = None,
opsgenie_id: Optional[str] = None,
owner_group_ids: Optional[Sequence[str]] = None,
owner_user_ids: Optional[Sequence[int]] = None,
pagerduty_id: Optional[str] = None,
position: Optional[int] = None,
properties: Optional[Sequence[ServicePropertyArgs]] = None,
public_description: Optional[str] = None,
service_ids: Optional[Sequence[str]] = None,
service_now_ci_sys_id: Optional[str] = None,
slack_aliases: Optional[Sequence[ServiceSlackAliasArgs]] = None,
slack_channels: Optional[Sequence[ServiceSlackChannelArgs]] = None,
slug: Optional[str] = None) -> Servicefunc GetService(ctx *Context, name string, id IDInput, state *ServiceState, opts ...ResourceOption) (*Service, error)public static Service Get(string name, Input<string> id, ServiceState? state, CustomResourceOptions? opts = null)public static Service get(String name, Output<String> id, ServiceState state, CustomResourceOptions options)resources: _: type: rootly:Service 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.
- Alert
Broadcast ServiceChannel Alert Broadcast Channel - Map must contain two fields,
idandname. Slack channel to broadcast alerts to - Alert
Broadcast boolEnabled - Enable alerts to be broadcasted to a specific channel. Value must be one of true or false
- Alert
Urgency stringId - The alert urgency id of the service
- Alerts
Email stringAddress - Email generated to send alerts to
- Alerts
Email boolEnabled - Enable alerts through email. Value must be one of true or false
- Backstage
Id string - The Backstage entity id associated to this service. eg: :namespace/:kind/:entity_name
- Color string
- The hex color of the service
- Cortex
Id string - The Cortex group id associated to this service
- Description string
- The description of the service
- Environment
Ids List<string> - Environments associated with this service
- Escalation
Policy stringId - The escalation policy id of the service
- External
Id string - The external id associated to this service
- Github
Repository stringBranch - The GitHub repository branch associated to this service. eg: main
- Github
Repository stringName - The GitHub repository name associated to this service. eg: rootlyhq/my-service
- Gitlab
Repository stringBranch - The GitLab repository branch associated to this service. eg: main
- Gitlab
Repository stringName - The GitLab repository name associated to this service. eg: rootlyhq/my-service
- Incident
Broadcast ServiceChannel Incident Broadcast Channel - Map must contain two fields,
idandname. Slack channel to broadcast incidents to - Incident
Broadcast boolEnabled - Enable incidents to be broadcasted to a specific channel. Value must be one of true or false
- Kubernetes
Deployment stringName - The Kubernetes deployment name associated to this service. eg: namespace/deployment-name
- Name string
- The name of the service
- Notify
Emails List<string> - Emails attached to the service
- Opsgenie
Id string - The Opsgenie service id associated to this service
- Owner
Group List<string>Ids - Owner Teams associated with this service
- Owner
User List<int>Ids - Owner Users associated with this service
- Pagerduty
Id string - The PagerDuty service id associated to this service
- Position int
- Position of the service
- Properties
List<Service
Property> - Array of property values for this service.
- Public
Description string - The public description of the service
- Service
Ids List<string> - Services dependent on this service
- Service
Now stringCi Sys Id - The Service Now CI sys id associated to this service
- Slack
Aliases List<ServiceSlack Alias> - Slack Aliases associated with this service
- Slack
Channels List<ServiceSlack Channel> - Slack Channels associated with this service
- Slug string
- The slug of the service
- Alert
Broadcast ServiceChannel Alert Broadcast Channel Args - Map must contain two fields,
idandname. Slack channel to broadcast alerts to - Alert
Broadcast boolEnabled - Enable alerts to be broadcasted to a specific channel. Value must be one of true or false
- Alert
Urgency stringId - The alert urgency id of the service
- Alerts
Email stringAddress - Email generated to send alerts to
- Alerts
Email boolEnabled - Enable alerts through email. Value must be one of true or false
- Backstage
Id string - The Backstage entity id associated to this service. eg: :namespace/:kind/:entity_name
- Color string
- The hex color of the service
- Cortex
Id string - The Cortex group id associated to this service
- Description string
- The description of the service
- Environment
Ids []string - Environments associated with this service
- Escalation
Policy stringId - The escalation policy id of the service
- External
Id string - The external id associated to this service
- Github
Repository stringBranch - The GitHub repository branch associated to this service. eg: main
- Github
Repository stringName - The GitHub repository name associated to this service. eg: rootlyhq/my-service
- Gitlab
Repository stringBranch - The GitLab repository branch associated to this service. eg: main
- Gitlab
Repository stringName - The GitLab repository name associated to this service. eg: rootlyhq/my-service
- Incident
Broadcast ServiceChannel Incident Broadcast Channel Args - Map must contain two fields,
idandname. Slack channel to broadcast incidents to - Incident
Broadcast boolEnabled - Enable incidents to be broadcasted to a specific channel. Value must be one of true or false
- Kubernetes
Deployment stringName - The Kubernetes deployment name associated to this service. eg: namespace/deployment-name
- Name string
- The name of the service
- Notify
Emails []string - Emails attached to the service
- Opsgenie
Id string - The Opsgenie service id associated to this service
- Owner
Group []stringIds - Owner Teams associated with this service
- Owner
User []intIds - Owner Users associated with this service
- Pagerduty
Id string - The PagerDuty service id associated to this service
- Position int
- Position of the service
- Properties
[]Service
Property Args - Array of property values for this service.
- Public
Description string - The public description of the service
- Service
Ids []string - Services dependent on this service
- Service
Now stringCi Sys Id - The Service Now CI sys id associated to this service
- Slack
Aliases []ServiceSlack Alias Args - Slack Aliases associated with this service
- Slack
Channels []ServiceSlack Channel Args - Slack Channels associated with this service
- Slug string
- The slug of the service
- alert
Broadcast ServiceChannel Alert Broadcast Channel - Map must contain two fields,
idandname. Slack channel to broadcast alerts to - alert
Broadcast BooleanEnabled - Enable alerts to be broadcasted to a specific channel. Value must be one of true or false
- alert
Urgency StringId - The alert urgency id of the service
- alerts
Email StringAddress - Email generated to send alerts to
- alerts
Email BooleanEnabled - Enable alerts through email. Value must be one of true or false
- backstage
Id String - The Backstage entity id associated to this service. eg: :namespace/:kind/:entity_name
- color String
- The hex color of the service
- cortex
Id String - The Cortex group id associated to this service
- description String
- The description of the service
- environment
Ids List<String> - Environments associated with this service
- escalation
Policy StringId - The escalation policy id of the service
- external
Id String - The external id associated to this service
- github
Repository StringBranch - The GitHub repository branch associated to this service. eg: main
- github
Repository StringName - The GitHub repository name associated to this service. eg: rootlyhq/my-service
- gitlab
Repository StringBranch - The GitLab repository branch associated to this service. eg: main
- gitlab
Repository StringName - The GitLab repository name associated to this service. eg: rootlyhq/my-service
- incident
Broadcast ServiceChannel Incident Broadcast Channel - Map must contain two fields,
idandname. Slack channel to broadcast incidents to - incident
Broadcast BooleanEnabled - Enable incidents to be broadcasted to a specific channel. Value must be one of true or false
- kubernetes
Deployment StringName - The Kubernetes deployment name associated to this service. eg: namespace/deployment-name
- name String
- The name of the service
- notify
Emails List<String> - Emails attached to the service
- opsgenie
Id String - The Opsgenie service id associated to this service
- owner
Group List<String>Ids - Owner Teams associated with this service
- owner
User List<Integer>Ids - Owner Users associated with this service
- pagerduty
Id String - The PagerDuty service id associated to this service
- position Integer
- Position of the service
- properties
List<Service
Property> - Array of property values for this service.
- public
Description String - The public description of the service
- service
Ids List<String> - Services dependent on this service
- service
Now StringCi Sys Id - The Service Now CI sys id associated to this service
- slack
Aliases List<ServiceSlack Alias> - Slack Aliases associated with this service
- slack
Channels List<ServiceSlack Channel> - Slack Channels associated with this service
- slug String
- The slug of the service
- alert
Broadcast ServiceChannel Alert Broadcast Channel - Map must contain two fields,
idandname. Slack channel to broadcast alerts to - alert
Broadcast booleanEnabled - Enable alerts to be broadcasted to a specific channel. Value must be one of true or false
- alert
Urgency stringId - The alert urgency id of the service
- alerts
Email stringAddress - Email generated to send alerts to
- alerts
Email booleanEnabled - Enable alerts through email. Value must be one of true or false
- backstage
Id string - The Backstage entity id associated to this service. eg: :namespace/:kind/:entity_name
- color string
- The hex color of the service
- cortex
Id string - The Cortex group id associated to this service
- description string
- The description of the service
- environment
Ids string[] - Environments associated with this service
- escalation
Policy stringId - The escalation policy id of the service
- external
Id string - The external id associated to this service
- github
Repository stringBranch - The GitHub repository branch associated to this service. eg: main
- github
Repository stringName - The GitHub repository name associated to this service. eg: rootlyhq/my-service
- gitlab
Repository stringBranch - The GitLab repository branch associated to this service. eg: main
- gitlab
Repository stringName - The GitLab repository name associated to this service. eg: rootlyhq/my-service
- incident
Broadcast ServiceChannel Incident Broadcast Channel - Map must contain two fields,
idandname. Slack channel to broadcast incidents to - incident
Broadcast booleanEnabled - Enable incidents to be broadcasted to a specific channel. Value must be one of true or false
- kubernetes
Deployment stringName - The Kubernetes deployment name associated to this service. eg: namespace/deployment-name
- name string
- The name of the service
- notify
Emails string[] - Emails attached to the service
- opsgenie
Id string - The Opsgenie service id associated to this service
- owner
Group string[]Ids - Owner Teams associated with this service
- owner
User number[]Ids - Owner Users associated with this service
- pagerduty
Id string - The PagerDuty service id associated to this service
- position number
- Position of the service
- properties
Service
Property[] - Array of property values for this service.
- public
Description string - The public description of the service
- service
Ids string[] - Services dependent on this service
- service
Now stringCi Sys Id - The Service Now CI sys id associated to this service
- slack
Aliases ServiceSlack Alias[] - Slack Aliases associated with this service
- slack
Channels ServiceSlack Channel[] - Slack Channels associated with this service
- slug string
- The slug of the service
- alert_
broadcast_ Servicechannel Alert Broadcast Channel Args - Map must contain two fields,
idandname. Slack channel to broadcast alerts to - alert_
broadcast_ boolenabled - Enable alerts to be broadcasted to a specific channel. Value must be one of true or false
- alert_
urgency_ strid - The alert urgency id of the service
- alerts_
email_ straddress - Email generated to send alerts to
- alerts_
email_ boolenabled - Enable alerts through email. Value must be one of true or false
- backstage_
id str - The Backstage entity id associated to this service. eg: :namespace/:kind/:entity_name
- color str
- The hex color of the service
- cortex_
id str - The Cortex group id associated to this service
- description str
- The description of the service
- environment_
ids Sequence[str] - Environments associated with this service
- escalation_
policy_ strid - The escalation policy id of the service
- external_
id str - The external id associated to this service
- github_
repository_ strbranch - The GitHub repository branch associated to this service. eg: main
- github_
repository_ strname - The GitHub repository name associated to this service. eg: rootlyhq/my-service
- gitlab_
repository_ strbranch - The GitLab repository branch associated to this service. eg: main
- gitlab_
repository_ strname - The GitLab repository name associated to this service. eg: rootlyhq/my-service
- incident_
broadcast_ Servicechannel Incident Broadcast Channel Args - Map must contain two fields,
idandname. Slack channel to broadcast incidents to - incident_
broadcast_ boolenabled - Enable incidents to be broadcasted to a specific channel. Value must be one of true or false
- kubernetes_
deployment_ strname - The Kubernetes deployment name associated to this service. eg: namespace/deployment-name
- name str
- The name of the service
- notify_
emails Sequence[str] - Emails attached to the service
- opsgenie_
id str - The Opsgenie service id associated to this service
- owner_
group_ Sequence[str]ids - Owner Teams associated with this service
- owner_
user_ Sequence[int]ids - Owner Users associated with this service
- pagerduty_
id str - The PagerDuty service id associated to this service
- position int
- Position of the service
- properties
Sequence[Service
Property Args] - Array of property values for this service.
- public_
description str - The public description of the service
- service_
ids Sequence[str] - Services dependent on this service
- service_
now_ strci_ sys_ id - The Service Now CI sys id associated to this service
- slack_
aliases Sequence[ServiceSlack Alias Args] - Slack Aliases associated with this service
- slack_
channels Sequence[ServiceSlack Channel Args] - Slack Channels associated with this service
- slug str
- The slug of the service
- alert
Broadcast Property MapChannel - Map must contain two fields,
idandname. Slack channel to broadcast alerts to - alert
Broadcast BooleanEnabled - Enable alerts to be broadcasted to a specific channel. Value must be one of true or false
- alert
Urgency StringId - The alert urgency id of the service
- alerts
Email StringAddress - Email generated to send alerts to
- alerts
Email BooleanEnabled - Enable alerts through email. Value must be one of true or false
- backstage
Id String - The Backstage entity id associated to this service. eg: :namespace/:kind/:entity_name
- color String
- The hex color of the service
- cortex
Id String - The Cortex group id associated to this service
- description String
- The description of the service
- environment
Ids List<String> - Environments associated with this service
- escalation
Policy StringId - The escalation policy id of the service
- external
Id String - The external id associated to this service
- github
Repository StringBranch - The GitHub repository branch associated to this service. eg: main
- github
Repository StringName - The GitHub repository name associated to this service. eg: rootlyhq/my-service
- gitlab
Repository StringBranch - The GitLab repository branch associated to this service. eg: main
- gitlab
Repository StringName - The GitLab repository name associated to this service. eg: rootlyhq/my-service
- incident
Broadcast Property MapChannel - Map must contain two fields,
idandname. Slack channel to broadcast incidents to - incident
Broadcast BooleanEnabled - Enable incidents to be broadcasted to a specific channel. Value must be one of true or false
- kubernetes
Deployment StringName - The Kubernetes deployment name associated to this service. eg: namespace/deployment-name
- name String
- The name of the service
- notify
Emails List<String> - Emails attached to the service
- opsgenie
Id String - The Opsgenie service id associated to this service
- owner
Group List<String>Ids - Owner Teams associated with this service
- owner
User List<Number>Ids - Owner Users associated with this service
- pagerduty
Id String - The PagerDuty service id associated to this service
- position Number
- Position of the service
- properties List<Property Map>
- Array of property values for this service.
- public
Description String - The public description of the service
- service
Ids List<String> - Services dependent on this service
- service
Now StringCi Sys Id - The Service Now CI sys id associated to this service
- slack
Aliases List<Property Map> - Slack Aliases associated with this service
- slack
Channels List<Property Map> - Slack Channels associated with this service
- slug String
- The slug of the service
Supporting Types
ServiceAlertBroadcastChannel, ServiceAlertBroadcastChannelArgs
ServiceIncidentBroadcastChannel, ServiceIncidentBroadcastChannelArgs
ServiceProperty, ServicePropertyArgs
- Catalog
Property stringId - Catalog property ID
- Value string
- The property value
- Catalog
Property stringId - Catalog property ID
- Value string
- The property value
- catalog
Property StringId - Catalog property ID
- value String
- The property value
- catalog
Property stringId - Catalog property ID
- value string
- The property value
- catalog_
property_ strid - Catalog property ID
- value str
- The property value
- catalog
Property StringId - Catalog property ID
- value String
- The property value
ServiceSlackAlias, ServiceSlackAliasArgs
ServiceSlackChannel, ServiceSlackChannelArgs
Import
rootly.Service can be imported using the import command.
$ pulumi import rootly:index/service:Service 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
rootlyTerraform Provider.
published on Thursday, May 7, 2026 by rootlyhq
