1. Packages
  2. Packages
  3. Rootly
  4. API Docs
  5. getSla
Viewing docs for Rootly v3.3.0
published on Thursday, May 7, 2026 by rootlyhq
rootly logo
Viewing docs for Rootly v3.3.0
published on Thursday, May 7, 2026 by rootlyhq

    Example Usage

    # Look up an SLA by name
    data "rootly_sla" "critical" {
      name = "Critical Incident SLA"
    }
    
    # Look up an SLA by slug
    data "rootly_sla" "standard" {
      slug = "standard-follow-up-sla"
    }
    
    # Use the SLA ID in other resources
    output "critical_sla_id" {
      value = data.rootly_sla.critical.id
    }
    

    Using getSla

    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 getSla(args: GetSlaArgs, opts?: InvokeOptions): Promise<GetSlaResult>
    function getSlaOutput(args: GetSlaOutputArgs, opts?: InvokeOptions): Output<GetSlaResult>
    def get_sla(created_at: Optional[Mapping[str, str]] = None,
                name: Optional[str] = None,
                slug: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetSlaResult
    def get_sla_output(created_at: pulumi.Input[Optional[Mapping[str, pulumi.Input[str]]]] = None,
                name: pulumi.Input[Optional[str]] = None,
                slug: pulumi.Input[Optional[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetSlaResult]
    func LookupSla(ctx *Context, args *LookupSlaArgs, opts ...InvokeOption) (*LookupSlaResult, error)
    func LookupSlaOutput(ctx *Context, args *LookupSlaOutputArgs, opts ...InvokeOption) LookupSlaResultOutput

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

    public static class GetSla 
    {
        public static Task<GetSlaResult> InvokeAsync(GetSlaArgs args, InvokeOptions? opts = null)
        public static Output<GetSlaResult> Invoke(GetSlaInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSlaResult> getSla(GetSlaArgs args, InvokeOptions options)
    public static Output<GetSlaResult> getSla(GetSlaArgs args, InvokeOptions options)
    
    fn::invoke:
      function: rootly:index/getSla:getSla
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CreatedAt Dictionary<string, string>
    Filter by date range using 'lt' and 'gt'.
    Name string
    Slug string
    CreatedAt map[string]string
    Filter by date range using 'lt' and 'gt'.
    Name string
    Slug string
    createdAt Map<String,String>
    Filter by date range using 'lt' and 'gt'.
    name String
    slug String
    createdAt {[key: string]: string}
    Filter by date range using 'lt' and 'gt'.
    name string
    slug string
    created_at Mapping[str, str]
    Filter by date range using 'lt' and 'gt'.
    name str
    slug str
    createdAt Map<String>
    Filter by date range using 'lt' and 'gt'.
    name String
    slug String

    getSla Result

    The following output properties are available:

    Id string
    The ID of this resource.
    Name string
    Slug string
    CreatedAt Dictionary<string, string>
    Filter by date range using 'lt' and 'gt'.
    Id string
    The ID of this resource.
    Name string
    Slug string
    CreatedAt map[string]string
    Filter by date range using 'lt' and 'gt'.
    id String
    The ID of this resource.
    name String
    slug String
    createdAt Map<String,String>
    Filter by date range using 'lt' and 'gt'.
    id string
    The ID of this resource.
    name string
    slug string
    createdAt {[key: string]: string}
    Filter by date range using 'lt' and 'gt'.
    id str
    The ID of this resource.
    name str
    slug str
    created_at Mapping[str, str]
    Filter by date range using 'lt' and 'gt'.
    id String
    The ID of this resource.
    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.3.0
    published on Thursday, May 7, 2026 by rootlyhq
      Try Pulumi Cloud free. Your team will thank you.