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

rootly.Service

Explore with Pulumi AI

rootly logo
Rootly v1.5.0 published on Thursday, Apr 25, 2024 by Rootly

    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:

    BackstageId 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
    EnvironmentIds List<string>
    Environments associated with this service
    GithubRepositoryBranch string
    The GitHub repository branch associated to this service. eg: main
    GithubRepositoryName string
    The GitHub repository name associated to this service. eg: rootlyhq/my-service
    GitlabRepositoryBranch string
    The Gitlab repository branch associated to this service. eg: main
    GitlabRepositoryName string
    The Gitlab repository name associated to this service. eg: rootlyhq/my-service
    Name string
    The name of the service
    NotifyEmails List<string>
    Emails attached to the service
    OpsgenieId string
    The Opsgenie service id associated to this service
    OwnersGroupIds List<string>
    Owner Teams associated with this service
    OwnersUserIds List<int>
    Owner Users associated with this service
    PagerdutyId string
    The PagerDuty service id associated to this service
    Position int
    Position of the service
    PublicDescription string
    The public description of the service
    ServiceIds List<string>
    Services dependent on this service
    SlackAliases List<ServiceSlackAlias>
    Slack Aliases associated with this service
    SlackChannels List<ServiceSlackChannel>
    Slack Channels associated with this service
    Slug string
    The slug of the service
    BackstageId 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
    EnvironmentIds []string
    Environments associated with this service
    GithubRepositoryBranch string
    The GitHub repository branch associated to this service. eg: main
    GithubRepositoryName string
    The GitHub repository name associated to this service. eg: rootlyhq/my-service
    GitlabRepositoryBranch string
    The Gitlab repository branch associated to this service. eg: main
    GitlabRepositoryName string
    The Gitlab repository name associated to this service. eg: rootlyhq/my-service
    Name string
    The name of the service
    NotifyEmails []string
    Emails attached to the service
    OpsgenieId string
    The Opsgenie service id associated to this service
    OwnersGroupIds []string
    Owner Teams associated with this service
    OwnersUserIds []int
    Owner Users associated with this service
    PagerdutyId string
    The PagerDuty service id associated to this service
    Position int
    Position of the service
    PublicDescription string
    The public description of the service
    ServiceIds []string
    Services dependent on this service
    SlackAliases []ServiceSlackAliasArgs
    Slack Aliases associated with this service
    SlackChannels []ServiceSlackChannelArgs
    Slack Channels associated with this service
    Slug string
    The slug of the service
    backstageId 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
    environmentIds List<String>
    Environments associated with this service
    githubRepositoryBranch String
    The GitHub repository branch associated to this service. eg: main
    githubRepositoryName String
    The GitHub repository name associated to this service. eg: rootlyhq/my-service
    gitlabRepositoryBranch String
    The Gitlab repository branch associated to this service. eg: main
    gitlabRepositoryName String
    The Gitlab repository name associated to this service. eg: rootlyhq/my-service
    name String
    The name of the service
    notifyEmails List<String>
    Emails attached to the service
    opsgenieId String
    The Opsgenie service id associated to this service
    ownersGroupIds List<String>
    Owner Teams associated with this service
    ownersUserIds List<Integer>
    Owner Users associated with this service
    pagerdutyId String
    The PagerDuty service id associated to this service
    position Integer
    Position of the service
    publicDescription String
    The public description of the service
    serviceIds List<String>
    Services dependent on this service
    slackAliases List<ServiceSlackAlias>
    Slack Aliases associated with this service
    slackChannels List<ServiceSlackChannel>
    Slack Channels associated with this service
    slug String
    The slug of the service
    backstageId 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
    environmentIds string[]
    Environments associated with this service
    githubRepositoryBranch string
    The GitHub repository branch associated to this service. eg: main
    githubRepositoryName string
    The GitHub repository name associated to this service. eg: rootlyhq/my-service
    gitlabRepositoryBranch string
    The Gitlab repository branch associated to this service. eg: main
    gitlabRepositoryName string
    The Gitlab repository name associated to this service. eg: rootlyhq/my-service
    name string
    The name of the service
    notifyEmails string[]
    Emails attached to the service
    opsgenieId string
    The Opsgenie service id associated to this service
    ownersGroupIds string[]
    Owner Teams associated with this service
    ownersUserIds number[]
    Owner Users associated with this service
    pagerdutyId string
    The PagerDuty service id associated to this service
    position number
    Position of the service
    publicDescription string
    The public description of the service
    serviceIds string[]
    Services dependent on this service
    slackAliases ServiceSlackAlias[]
    Slack Aliases associated with this service
    slackChannels ServiceSlackChannel[]
    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_branch str
    The GitHub repository branch associated to this service. eg: main
    github_repository_name str
    The GitHub repository name associated to this service. eg: rootlyhq/my-service
    gitlab_repository_branch str
    The Gitlab repository branch associated to this service. eg: main
    gitlab_repository_name str
    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_ids Sequence[str]
    Owner Teams associated with this service
    owners_user_ids Sequence[int]
    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[ServiceSlackAliasArgs]
    Slack Aliases associated with this service
    slack_channels Sequence[ServiceSlackChannelArgs]
    Slack Channels associated with this service
    slug str
    The slug of the service
    backstageId 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
    environmentIds List<String>
    Environments associated with this service
    githubRepositoryBranch String
    The GitHub repository branch associated to this service. eg: main
    githubRepositoryName String
    The GitHub repository name associated to this service. eg: rootlyhq/my-service
    gitlabRepositoryBranch String
    The Gitlab repository branch associated to this service. eg: main
    gitlabRepositoryName String
    The Gitlab repository name associated to this service. eg: rootlyhq/my-service
    name String
    The name of the service
    notifyEmails List<String>
    Emails attached to the service
    opsgenieId String
    The Opsgenie service id associated to this service
    ownersGroupIds List<String>
    Owner Teams associated with this service
    ownersUserIds List<Number>
    Owner Users associated with this service
    pagerdutyId String
    The PagerDuty service id associated to this service
    position Number
    Position of the service
    publicDescription String
    The public description of the service
    serviceIds List<String>
    Services dependent on this service
    slackAliases List<Property Map>
    Slack Aliases associated with this service
    slackChannels 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.
    The following state arguments are supported:
    BackstageId 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
    EnvironmentIds List<string>
    Environments associated with this service
    GithubRepositoryBranch string
    The GitHub repository branch associated to this service. eg: main
    GithubRepositoryName string
    The GitHub repository name associated to this service. eg: rootlyhq/my-service
    GitlabRepositoryBranch string
    The Gitlab repository branch associated to this service. eg: main
    GitlabRepositoryName string
    The Gitlab repository name associated to this service. eg: rootlyhq/my-service
    Name string
    The name of the service
    NotifyEmails List<string>
    Emails attached to the service
    OpsgenieId string
    The Opsgenie service id associated to this service
    OwnersGroupIds List<string>
    Owner Teams associated with this service
    OwnersUserIds List<int>
    Owner Users associated with this service
    PagerdutyId string
    The PagerDuty service id associated to this service
    Position int
    Position of the service
    PublicDescription string
    The public description of the service
    ServiceIds List<string>
    Services dependent on this service
    SlackAliases List<ServiceSlackAlias>
    Slack Aliases associated with this service
    SlackChannels List<ServiceSlackChannel>
    Slack Channels associated with this service
    Slug string
    The slug of the service
    BackstageId 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
    EnvironmentIds []string
    Environments associated with this service
    GithubRepositoryBranch string
    The GitHub repository branch associated to this service. eg: main
    GithubRepositoryName string
    The GitHub repository name associated to this service. eg: rootlyhq/my-service
    GitlabRepositoryBranch string
    The Gitlab repository branch associated to this service. eg: main
    GitlabRepositoryName string
    The Gitlab repository name associated to this service. eg: rootlyhq/my-service
    Name string
    The name of the service
    NotifyEmails []string
    Emails attached to the service
    OpsgenieId string
    The Opsgenie service id associated to this service
    OwnersGroupIds []string
    Owner Teams associated with this service
    OwnersUserIds []int
    Owner Users associated with this service
    PagerdutyId string
    The PagerDuty service id associated to this service
    Position int
    Position of the service
    PublicDescription string
    The public description of the service
    ServiceIds []string
    Services dependent on this service
    SlackAliases []ServiceSlackAliasArgs
    Slack Aliases associated with this service
    SlackChannels []ServiceSlackChannelArgs
    Slack Channels associated with this service
    Slug string
    The slug of the service
    backstageId 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
    environmentIds List<String>
    Environments associated with this service
    githubRepositoryBranch String
    The GitHub repository branch associated to this service. eg: main
    githubRepositoryName String
    The GitHub repository name associated to this service. eg: rootlyhq/my-service
    gitlabRepositoryBranch String
    The Gitlab repository branch associated to this service. eg: main
    gitlabRepositoryName String
    The Gitlab repository name associated to this service. eg: rootlyhq/my-service
    name String
    The name of the service
    notifyEmails List<String>
    Emails attached to the service
    opsgenieId String
    The Opsgenie service id associated to this service
    ownersGroupIds List<String>
    Owner Teams associated with this service
    ownersUserIds List<Integer>
    Owner Users associated with this service
    pagerdutyId String
    The PagerDuty service id associated to this service
    position Integer
    Position of the service
    publicDescription String
    The public description of the service
    serviceIds List<String>
    Services dependent on this service
    slackAliases List<ServiceSlackAlias>
    Slack Aliases associated with this service
    slackChannels List<ServiceSlackChannel>
    Slack Channels associated with this service
    slug String
    The slug of the service
    backstageId 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
    environmentIds string[]
    Environments associated with this service
    githubRepositoryBranch string
    The GitHub repository branch associated to this service. eg: main
    githubRepositoryName string
    The GitHub repository name associated to this service. eg: rootlyhq/my-service
    gitlabRepositoryBranch string
    The Gitlab repository branch associated to this service. eg: main
    gitlabRepositoryName string
    The Gitlab repository name associated to this service. eg: rootlyhq/my-service
    name string
    The name of the service
    notifyEmails string[]
    Emails attached to the service
    opsgenieId string
    The Opsgenie service id associated to this service
    ownersGroupIds string[]
    Owner Teams associated with this service
    ownersUserIds number[]
    Owner Users associated with this service
    pagerdutyId string
    The PagerDuty service id associated to this service
    position number
    Position of the service
    publicDescription string
    The public description of the service
    serviceIds string[]
    Services dependent on this service
    slackAliases ServiceSlackAlias[]
    Slack Aliases associated with this service
    slackChannels ServiceSlackChannel[]
    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_branch str
    The GitHub repository branch associated to this service. eg: main
    github_repository_name str
    The GitHub repository name associated to this service. eg: rootlyhq/my-service
    gitlab_repository_branch str
    The Gitlab repository branch associated to this service. eg: main
    gitlab_repository_name str
    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_ids Sequence[str]
    Owner Teams associated with this service
    owners_user_ids Sequence[int]
    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[ServiceSlackAliasArgs]
    Slack Aliases associated with this service
    slack_channels Sequence[ServiceSlackChannelArgs]
    Slack Channels associated with this service
    slug str
    The slug of the service
    backstageId 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
    environmentIds List<String>
    Environments associated with this service
    githubRepositoryBranch String
    The GitHub repository branch associated to this service. eg: main
    githubRepositoryName String
    The GitHub repository name associated to this service. eg: rootlyhq/my-service
    gitlabRepositoryBranch String
    The Gitlab repository branch associated to this service. eg: main
    gitlabRepositoryName String
    The Gitlab repository name associated to this service. eg: rootlyhq/my-service
    name String
    The name of the service
    notifyEmails List<String>
    Emails attached to the service
    opsgenieId String
    The Opsgenie service id associated to this service
    ownersGroupIds List<String>
    Owner Teams associated with this service
    ownersUserIds List<Number>
    Owner Users associated with this service
    pagerdutyId String
    The PagerDuty service id associated to this service
    position Number
    Position of the service
    publicDescription String
    The public description of the service
    serviceIds List<String>
    Services dependent on this service
    slackAliases List<Property Map>
    Slack Aliases associated with this service
    slackChannels List<Property Map>
    Slack Channels associated with this service
    slug String
    The slug of the service

    Supporting Types

    ServiceSlackAlias, ServiceSlackAliasArgs

    Id string
    Name string
    Id string
    Name string
    id String
    name String
    id string
    name string
    id str
    name str
    id String
    name String

    ServiceSlackChannel, ServiceSlackChannelArgs

    Id string
    Name string
    Id string
    Name string
    id String
    name String
    id string
    name string
    id str
    name str
    id String
    name String

    Package Details

    Repository
    rootly rootlyhq/pulumi-rootly
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the rootly Terraform Provider.
    rootly logo
    Rootly v1.5.0 published on Thursday, Apr 25, 2024 by Rootly