rootly.Service
Explore with Pulumi AI
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Rootly = Pulumi.Rootly;
return await Deployment.RunAsync(() =>
{
var elasticsearchProd = new Rootly.Service("elasticsearchProd", new()
{
Color = "#800080",
NotifyEmails = new[]
{
"foo@acme.com",
"bar@acme.com",
},
SlackAliases = new[]
{
new Rootly.Inputs.ServiceSlackAliasArgs
{
Id = "S0614TZR7",
Name = "Alias 1",
},
},
SlackChannels = new[]
{
new Rootly.Inputs.ServiceSlackChannelArgs
{
Id = "C06A4RZR9",
Name = "Channel 1",
},
new Rootly.Inputs.ServiceSlackChannelArgs
{
Id = "C02T4RYR2",
Name = "Channel 2",
},
},
});
var customerPostgresqlProd = new Rootly.Service("customerPostgresqlProd", new()
{
Color = "#800080",
NotifyEmails = new[]
{
"foo@acme.com",
"bar@acme.com",
},
SlackAliases = new[]
{
new Rootly.Inputs.ServiceSlackAliasArgs
{
Id = "S0614TZR7",
Name = "Alias 1",
},
},
SlackChannels = new[]
{
new Rootly.Inputs.ServiceSlackChannelArgs
{
Id = "C06A4RZR9",
Name = "Channel 1",
},
new Rootly.Inputs.ServiceSlackChannelArgs
{
Id = "C02T4RYR2",
Name = "Channel 2",
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-rootly/sdk/go/rootly"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := rootly.NewService(ctx, "elasticsearchProd", &rootly.ServiceArgs{
Color: pulumi.String("#800080"),
NotifyEmails: pulumi.StringArray{
pulumi.String("foo@acme.com"),
pulumi.String("bar@acme.com"),
},
SlackAliases: rootly.ServiceSlackAliasArray{
&rootly.ServiceSlackAliasArgs{
Id: pulumi.String("S0614TZR7"),
Name: pulumi.String("Alias 1"),
},
},
SlackChannels: rootly.ServiceSlackChannelArray{
&rootly.ServiceSlackChannelArgs{
Id: pulumi.String("C06A4RZR9"),
Name: pulumi.String("Channel 1"),
},
&rootly.ServiceSlackChannelArgs{
Id: pulumi.String("C02T4RYR2"),
Name: pulumi.String("Channel 2"),
},
},
})
if err != nil {
return err
}
_, err = rootly.NewService(ctx, "customerPostgresqlProd", &rootly.ServiceArgs{
Color: pulumi.String("#800080"),
NotifyEmails: pulumi.StringArray{
pulumi.String("foo@acme.com"),
pulumi.String("bar@acme.com"),
},
SlackAliases: rootly.ServiceSlackAliasArray{
&rootly.ServiceSlackAliasArgs{
Id: pulumi.String("S0614TZR7"),
Name: pulumi.String("Alias 1"),
},
},
SlackChannels: rootly.ServiceSlackChannelArray{
&rootly.ServiceSlackChannelArgs{
Id: pulumi.String("C06A4RZR9"),
Name: pulumi.String("Channel 1"),
},
&rootly.ServiceSlackChannelArgs{
Id: pulumi.String("C02T4RYR2"),
Name: pulumi.String("Channel 2"),
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.rootly.Service;
import com.pulumi.rootly.ServiceArgs;
import com.pulumi.rootly.inputs.ServiceSlackAliasArgs;
import com.pulumi.rootly.inputs.ServiceSlackChannelArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var elasticsearchProd = new Service("elasticsearchProd", ServiceArgs.builder()
.color("#800080")
.notifyEmails(
"foo@acme.com",
"bar@acme.com")
.slackAliases(ServiceSlackAliasArgs.builder()
.id("S0614TZR7")
.name("Alias 1")
.build())
.slackChannels(
ServiceSlackChannelArgs.builder()
.id("C06A4RZR9")
.name("Channel 1")
.build(),
ServiceSlackChannelArgs.builder()
.id("C02T4RYR2")
.name("Channel 2")
.build())
.build());
var customerPostgresqlProd = new Service("customerPostgresqlProd", ServiceArgs.builder()
.color("#800080")
.notifyEmails(
"foo@acme.com",
"bar@acme.com")
.slackAliases(ServiceSlackAliasArgs.builder()
.id("S0614TZR7")
.name("Alias 1")
.build())
.slackChannels(
ServiceSlackChannelArgs.builder()
.id("C06A4RZR9")
.name("Channel 1")
.build(),
ServiceSlackChannelArgs.builder()
.id("C02T4RYR2")
.name("Channel 2")
.build())
.build());
}
}
import pulumi
import pulumi_rootly as rootly
elasticsearch_prod = rootly.Service("elasticsearchProd",
color="#800080",
notify_emails=[
"foo@acme.com",
"bar@acme.com",
],
slack_aliases=[rootly.ServiceSlackAliasArgs(
id="S0614TZR7",
name="Alias 1",
)],
slack_channels=[
rootly.ServiceSlackChannelArgs(
id="C06A4RZR9",
name="Channel 1",
),
rootly.ServiceSlackChannelArgs(
id="C02T4RYR2",
name="Channel 2",
),
])
customer_postgresql_prod = rootly.Service("customerPostgresqlProd",
color="#800080",
notify_emails=[
"foo@acme.com",
"bar@acme.com",
],
slack_aliases=[rootly.ServiceSlackAliasArgs(
id="S0614TZR7",
name="Alias 1",
)],
slack_channels=[
rootly.ServiceSlackChannelArgs(
id="C06A4RZR9",
name="Channel 1",
),
rootly.ServiceSlackChannelArgs(
id="C02T4RYR2",
name="Channel 2",
),
])
import * as pulumi from "@pulumi/pulumi";
import * as rootly from "@pulumi/rootly";
const elasticsearchProd = new rootly.Service("elasticsearchProd", {
color: "#800080",
notifyEmails: [
"foo@acme.com",
"bar@acme.com",
],
slackAliases: [{
id: "S0614TZR7",
name: "Alias 1",
}],
slackChannels: [
{
id: "C06A4RZR9",
name: "Channel 1",
},
{
id: "C02T4RYR2",
name: "Channel 2",
},
],
});
const customerPostgresqlProd = new rootly.Service("customerPostgresqlProd", {
color: "#800080",
notifyEmails: [
"foo@acme.com",
"bar@acme.com",
],
slackAliases: [{
id: "S0614TZR7",
name: "Alias 1",
}],
slackChannels: [
{
id: "C06A4RZR9",
name: "Channel 1",
},
{
id: "C02T4RYR2",
name: "Channel 2",
},
],
});
resources:
elasticsearchProd:
type: rootly:Service
properties:
color: '#800080'
notifyEmails:
- foo@acme.com
- bar@acme.com
slackAliases:
- id: S0614TZR7
name: Alias 1
slackChannels:
- id: C06A4RZR9
name: Channel 1
- id: C02T4RYR2
name: Channel 2
customerPostgresqlProd:
type: rootly:Service
properties:
color: '#800080'
notifyEmails:
- foo@acme.com
- bar@acme.com
slackAliases:
- id: S0614TZR7
name: Alias 1
slackChannels:
- id: C06A4RZR9
name: Channel 1
- id: C02T4RYR2
name: Channel 2
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,
backstage_id: Optional[str] = None,
color: Optional[str] = None,
description: Optional[str] = None,
environment_ids: Optional[Sequence[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,
name: Optional[str] = None,
notify_emails: Optional[Sequence[str]] = None,
opsgenie_id: Optional[str] = None,
owners_group_ids: Optional[Sequence[str]] = None,
owners_user_ids: Optional[Sequence[int]] = None,
pagerduty_id: Optional[str] = None,
position: Optional[int] = None,
public_description: Optional[str] = None,
service_ids: Optional[Sequence[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()
{
BackstageId = "string",
Color = "string",
Description = "string",
EnvironmentIds = new[]
{
"string",
},
GithubRepositoryBranch = "string",
GithubRepositoryName = "string",
GitlabRepositoryBranch = "string",
GitlabRepositoryName = "string",
Name = "string",
NotifyEmails = new[]
{
"string",
},
OpsgenieId = "string",
OwnersGroupIds = new[]
{
"string",
},
OwnersUserIds = new[]
{
0,
},
PagerdutyId = "string",
Position = 0,
PublicDescription = "string",
ServiceIds = new[]
{
"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{
BackstageId: pulumi.String("string"),
Color: pulumi.String("string"),
Description: pulumi.String("string"),
EnvironmentIds: pulumi.StringArray{
pulumi.String("string"),
},
GithubRepositoryBranch: pulumi.String("string"),
GithubRepositoryName: pulumi.String("string"),
GitlabRepositoryBranch: pulumi.String("string"),
GitlabRepositoryName: pulumi.String("string"),
Name: pulumi.String("string"),
NotifyEmails: pulumi.StringArray{
pulumi.String("string"),
},
OpsgenieId: pulumi.String("string"),
OwnersGroupIds: pulumi.StringArray{
pulumi.String("string"),
},
OwnersUserIds: pulumi.IntArray{
pulumi.Int(0),
},
PagerdutyId: pulumi.String("string"),
Position: pulumi.Int(0),
PublicDescription: pulumi.String("string"),
ServiceIds: pulumi.StringArray{
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()
.backstageId("string")
.color("string")
.description("string")
.environmentIds("string")
.githubRepositoryBranch("string")
.githubRepositoryName("string")
.gitlabRepositoryBranch("string")
.gitlabRepositoryName("string")
.name("string")
.notifyEmails("string")
.opsgenieId("string")
.ownersGroupIds("string")
.ownersUserIds(0)
.pagerdutyId("string")
.position(0)
.publicDescription("string")
.serviceIds("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",
backstage_id="string",
color="string",
description="string",
environment_ids=["string"],
github_repository_branch="string",
github_repository_name="string",
gitlab_repository_branch="string",
gitlab_repository_name="string",
name="string",
notify_emails=["string"],
opsgenie_id="string",
owners_group_ids=["string"],
owners_user_ids=[0],
pagerduty_id="string",
position=0,
public_description="string",
service_ids=["string"],
slack_aliases=[{
"id": "string",
"name": "string",
}],
slack_channels=[{
"id": "string",
"name": "string",
}],
slug="string")
const serviceResource = new rootly.Service("serviceResource", {
backstageId: "string",
color: "string",
description: "string",
environmentIds: ["string"],
githubRepositoryBranch: "string",
githubRepositoryName: "string",
gitlabRepositoryBranch: "string",
gitlabRepositoryName: "string",
name: "string",
notifyEmails: ["string"],
opsgenieId: "string",
ownersGroupIds: ["string"],
ownersUserIds: [0],
pagerdutyId: "string",
position: 0,
publicDescription: "string",
serviceIds: ["string"],
slackAliases: [{
id: "string",
name: "string",
}],
slackChannels: [{
id: "string",
name: "string",
}],
slug: "string",
});
type: rootly:Service
properties:
backstageId: string
color: string
description: string
environmentIds:
- string
githubRepositoryBranch: string
githubRepositoryName: string
gitlabRepositoryBranch: string
gitlabRepositoryName: string
name: string
notifyEmails:
- string
opsgenieId: string
ownersGroupIds:
- string
ownersUserIds:
- 0
pagerdutyId: string
position: 0
publicDescription: string
serviceIds:
- 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:
- Backstage
Id string - The Backstage entity id associated to this service. eg: :namespace/:kind/:entity_name
- Color string
- The hex color of the service
- Description string
- The description of the service
- Environment
Ids List<string> - Environments associated with 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
- 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
- Owners
Group List<string>Ids - Owner Teams associated with this service
- Owners
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
- Public
Description string - The public description of the service
- Service
Ids List<string> - Services dependent on 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
- Backstage
Id string - The Backstage entity id associated to this service. eg: :namespace/:kind/:entity_name
- Color string
- The hex color of the service
- Description string
- The description of the service
- Environment
Ids []string - Environments associated with 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
- 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
- Owners
Group []stringIds - Owner Teams associated with this service
- Owners
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
- Public
Description string - The public description of the service
- Service
Ids []string - Services dependent on 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
- backstage
Id String - The Backstage entity id associated to this service. eg: :namespace/:kind/:entity_name
- color String
- The hex color of the service
- description String
- The description of the service
- environment
Ids List<String> - Environments associated with 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
- 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
- owners
Group List<String>Ids - Owner Teams associated with this service
- owners
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
- public
Description String - The public description of the service
- service
Ids List<String> - Services dependent on 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
- backstage
Id string - The Backstage entity id associated to this service. eg: :namespace/:kind/:entity_name
- color string
- The hex color of the service
- description string
- The description of the service
- environment
Ids string[] - Environments associated with 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
- 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
- owners
Group string[]Ids - Owner Teams associated with this service
- owners
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
- public
Description string - The public description of the service
- service
Ids string[] - Services dependent on 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
- backstage_
id str - The Backstage entity id associated to this service. eg: :namespace/:kind/:entity_name
- color str
- The hex color of the service
- description str
- The description of the service
- environment_
ids Sequence[str] - Environments associated with 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
- 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
- owners_
group_ Sequence[str]ids - Owner Teams associated with this service
- owners_
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
- public_
description str - The public description of the service
- service_
ids Sequence[str] - Services dependent on 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
- backstage
Id String - The Backstage entity id associated to this service. eg: :namespace/:kind/:entity_name
- color String
- The hex color of the service
- description String
- The description of the service
- environment
Ids List<String> - Environments associated with 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
- 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
- owners
Group List<String>Ids - Owner Teams associated with this service
- owners
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
- public
Description String - The public description of the service
- service
Ids List<String> - Services dependent on 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,
backstage_id: Optional[str] = None,
color: Optional[str] = None,
description: Optional[str] = None,
environment_ids: Optional[Sequence[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,
name: Optional[str] = None,
notify_emails: Optional[Sequence[str]] = None,
opsgenie_id: Optional[str] = None,
owners_group_ids: Optional[Sequence[str]] = None,
owners_user_ids: Optional[Sequence[int]] = None,
pagerduty_id: Optional[str] = None,
position: Optional[int] = None,
public_description: Optional[str] = None,
service_ids: Optional[Sequence[str]] = None,
slack_aliases: Optional[Sequence[ServiceSlackAliasArgs]] = None,
slack_channels: Optional[Sequence[ServiceSlackChannelArgs]] = None,
slug: Optional[str] = None) -> Service
func 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)
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.
- Backstage
Id string - The Backstage entity id associated to this service. eg: :namespace/:kind/:entity_name
- Color string
- The hex color of the service
- Description string
- The description of the service
- Environment
Ids List<string> - Environments associated with 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
- 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
- Owners
Group List<string>Ids - Owner Teams associated with this service
- Owners
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
- Public
Description string - The public description of the service
- Service
Ids List<string> - Services dependent on 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
- Backstage
Id string - The Backstage entity id associated to this service. eg: :namespace/:kind/:entity_name
- Color string
- The hex color of the service
- Description string
- The description of the service
- Environment
Ids []string - Environments associated with 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
- 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
- Owners
Group []stringIds - Owner Teams associated with this service
- Owners
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
- Public
Description string - The public description of the service
- Service
Ids []string - Services dependent on 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
- backstage
Id String - The Backstage entity id associated to this service. eg: :namespace/:kind/:entity_name
- color String
- The hex color of the service
- description String
- The description of the service
- environment
Ids List<String> - Environments associated with 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
- 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
- owners
Group List<String>Ids - Owner Teams associated with this service
- owners
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
- public
Description String - The public description of the service
- service
Ids List<String> - Services dependent on 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
- backstage
Id string - The Backstage entity id associated to this service. eg: :namespace/:kind/:entity_name
- color string
- The hex color of the service
- description string
- The description of the service
- environment
Ids string[] - Environments associated with 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
- 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
- owners
Group string[]Ids - Owner Teams associated with this service
- owners
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
- public
Description string - The public description of the service
- service
Ids string[] - Services dependent on 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
- backstage_
id str - The Backstage entity id associated to this service. eg: :namespace/:kind/:entity_name
- color str
- The hex color of the service
- description str
- The description of the service
- environment_
ids Sequence[str] - Environments associated with 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
- 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
- owners_
group_ Sequence[str]ids - Owner Teams associated with this service
- owners_
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
- public_
description str - The public description of the service
- service_
ids Sequence[str] - Services dependent on 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
- backstage
Id String - The Backstage entity id associated to this service. eg: :namespace/:kind/:entity_name
- color String
- The hex color of the service
- description String
- The description of the service
- environment
Ids List<String> - Environments associated with 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
- 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
- owners
Group List<String>Ids - Owner Teams associated with this service
- owners
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
- public
Description String - The public description of the service
- service
Ids List<String> - Services dependent on 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
ServiceSlackAlias, ServiceSlackAliasArgs
ServiceSlackChannel, ServiceSlackChannelArgs
Package Details
- Repository
- rootly rootlyhq/pulumi-rootly
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rootly
Terraform Provider.