1. Packages
  2. Packages
  3. Rootly
  4. API Docs
  5. getService
Viewing docs for Rootly v3.4.0
published on Tuesday, May 12, 2026 by rootlyhq
rootly logo
Viewing docs for Rootly v3.4.0
published on Tuesday, May 12, 2026 by rootlyhq

    Example Usage

    data "rootly_service" "my-service" {
      slug = "my-service"
    }
    

    Using getService

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getService(args: GetServiceArgs, opts?: InvokeOptions): Promise<GetServiceResult>
    function getServiceOutput(args: GetServiceOutputArgs, opts?: InvokeOptions): Output<GetServiceResult>
    def get_service(alert_broadcast_enabled: Optional[bool] = None,
                    backstage_id: Optional[str] = None,
                    cortex_id: Optional[str] = None,
                    created_at: Optional[Mapping[str, str]] = None,
                    external_id: Optional[str] = None,
                    incident_broadcast_enabled: Optional[bool] = None,
                    name: Optional[str] = None,
                    slug: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetServiceResult
    def get_service_output(alert_broadcast_enabled: pulumi.Input[Optional[bool]] = None,
                    backstage_id: pulumi.Input[Optional[str]] = None,
                    cortex_id: pulumi.Input[Optional[str]] = None,
                    created_at: pulumi.Input[Optional[Mapping[str, pulumi.Input[str]]]] = None,
                    external_id: pulumi.Input[Optional[str]] = None,
                    incident_broadcast_enabled: pulumi.Input[Optional[bool]] = None,
                    name: pulumi.Input[Optional[str]] = None,
                    slug: pulumi.Input[Optional[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetServiceResult]
    func LookupService(ctx *Context, args *LookupServiceArgs, opts ...InvokeOption) (*LookupServiceResult, error)
    func LookupServiceOutput(ctx *Context, args *LookupServiceOutputArgs, opts ...InvokeOption) LookupServiceResultOutput

    > Note: This function is named LookupService in the Go SDK.

    public static class GetService 
    {
        public static Task<GetServiceResult> InvokeAsync(GetServiceArgs args, InvokeOptions? opts = null)
        public static Output<GetServiceResult> Invoke(GetServiceInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetServiceResult> getService(GetServiceArgs args, InvokeOptions options)
    public static Output<GetServiceResult> getService(GetServiceArgs args, InvokeOptions options)
    
    fn::invoke:
      function: rootly:index/getService:getService
      arguments:
        # arguments dictionary
    data "rootly_getservice" "name" {
        # arguments
    }

    The following arguments are supported:

    AlertBroadcastEnabled bool
    BackstageId string
    CortexId string
    CreatedAt Dictionary<string, string>
    Filter by date range using 'lt' and 'gt'.
    ExternalId string
    IncidentBroadcastEnabled bool
    Name string
    Slug string
    AlertBroadcastEnabled bool
    BackstageId string
    CortexId string
    CreatedAt map[string]string
    Filter by date range using 'lt' and 'gt'.
    ExternalId string
    IncidentBroadcastEnabled bool
    Name string
    Slug string
    alert_broadcast_enabled bool
    backstage_id string
    cortex_id string
    created_at map(string)
    Filter by date range using 'lt' and 'gt'.
    external_id string
    incident_broadcast_enabled bool
    name string
    slug string
    alertBroadcastEnabled Boolean
    backstageId String
    cortexId String
    createdAt Map<String,String>
    Filter by date range using 'lt' and 'gt'.
    externalId String
    incidentBroadcastEnabled Boolean
    name String
    slug String
    alertBroadcastEnabled boolean
    backstageId string
    cortexId string
    createdAt {[key: string]: string}
    Filter by date range using 'lt' and 'gt'.
    externalId string
    incidentBroadcastEnabled boolean
    name string
    slug string
    alert_broadcast_enabled bool
    backstage_id str
    cortex_id str
    created_at Mapping[str, str]
    Filter by date range using 'lt' and 'gt'.
    external_id str
    incident_broadcast_enabled bool
    name str
    slug str
    alertBroadcastEnabled Boolean
    backstageId String
    cortexId String
    createdAt Map<String>
    Filter by date range using 'lt' and 'gt'.
    externalId String
    incidentBroadcastEnabled Boolean
    name String
    slug String

    getService Result

    The following output properties are available:

    AlertBroadcastEnabled bool
    BackstageId string
    CortexId string
    ExternalId string
    Id string
    The ID of this resource.
    IncidentBroadcastEnabled bool
    Name string
    Slug string
    CreatedAt Dictionary<string, string>
    Filter by date range using 'lt' and 'gt'.
    AlertBroadcastEnabled bool
    BackstageId string
    CortexId string
    ExternalId string
    Id string
    The ID of this resource.
    IncidentBroadcastEnabled bool
    Name string
    Slug string
    CreatedAt map[string]string
    Filter by date range using 'lt' and 'gt'.
    alert_broadcast_enabled bool
    backstage_id string
    cortex_id string
    external_id string
    id string
    The ID of this resource.
    incident_broadcast_enabled bool
    name string
    slug string
    created_at map(string)
    Filter by date range using 'lt' and 'gt'.
    alertBroadcastEnabled Boolean
    backstageId String
    cortexId String
    externalId String
    id String
    The ID of this resource.
    incidentBroadcastEnabled Boolean
    name String
    slug String
    createdAt Map<String,String>
    Filter by date range using 'lt' and 'gt'.
    alertBroadcastEnabled boolean
    backstageId string
    cortexId string
    externalId string
    id string
    The ID of this resource.
    incidentBroadcastEnabled boolean
    name string
    slug string
    createdAt {[key: string]: string}
    Filter by date range using 'lt' and 'gt'.
    alert_broadcast_enabled bool
    backstage_id str
    cortex_id str
    external_id str
    id str
    The ID of this resource.
    incident_broadcast_enabled bool
    name str
    slug str
    created_at Mapping[str, str]
    Filter by date range using 'lt' and 'gt'.
    alertBroadcastEnabled Boolean
    backstageId String
    cortexId String
    externalId String
    id String
    The ID of this resource.
    incidentBroadcastEnabled Boolean
    name String
    slug String
    createdAt Map<String>
    Filter by date range using 'lt' and 'gt'.

    Package Details

    Repository
    rootly rootlyhq/pulumi-rootly
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the rootly Terraform Provider.
    rootly logo
    Viewing docs for Rootly v3.4.0
    published on Tuesday, May 12, 2026 by rootlyhq
      Try Pulumi Cloud free. Your team will thank you.