1. Registry
  2. Packages
  3. Zenduty Provider
  4. API Docs
  5. getSla
Viewing docs for zenduty 2.0.0
published on Friday, Aug 14, 2026 by zenduty
Viewing docs for zenduty 2.0.0
published on Friday, Aug 14, 2026 by zenduty

    zenduty.Sla lists the SLAs of a team.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as zenduty from "@pulumi/zenduty";
    
    const teamSlas = zenduty.getSla({
        teamId: exampleteam.id,
    });
    export const slaNames = teamSlas.then(teamSlas => teamSlas.slas.map(__item => __item.name));
    
    import pulumi
    import pulumi_zenduty as zenduty
    
    team_slas = zenduty.get_sla(team_id=exampleteam["id"])
    pulumi.export("slaNames", [__item.name for __item in team_slas.slas])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/zenduty/v2/zenduty"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
    teamSlas, err := zenduty.LookupSla(ctx, &zenduty.LookupSlaArgs{
    TeamId: exampleteam.Id,
    }, nil);
    if err != nil {
    return err
    }
    ctx.Export("slaNames", pulumi.StringArray(%!v(PANIC=Format method: fatal: A failure has occurred: unlowered splat expression @ example.pp:5,11-32)))
    return nil
    })
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Zenduty = Pulumi.Zenduty;
    
    return await Deployment.RunAsync(() => 
    {
        var teamSlas = Zenduty.GetSla.Invoke(new()
        {
            TeamId = exampleteam.Id,
        });
    
        return new Dictionary<string, object?>
        {
            ["slaNames"] = teamSlas.Apply(getSlaResult => getSlaResult.Slas).Select(__item => __item.Name).ToList(),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.zenduty.ZendutyFunctions;
    import com.pulumi.zenduty.inputs.GetSlaArgs;
    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) {
            final var teamSlas = ZendutyFunctions.getSla(GetSlaArgs.builder()
                .teamId(exampleteam.id())
                .build());
    
            ctx.export("slaNames", teamSlas.slas().stream().map(element -> element.name()).collect(toList()));
        }
    }
    
    Example coming soon!
    
    Example coming soon!
    

    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?: InvokeOutputOptions): Output<GetSlaResult>
    def get_sla(id: Optional[str] = None,
                team_id: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetSlaResult
    def get_sla_output(id: pulumi.Input[Optional[str]] = None,
                team_id: pulumi.Input[Optional[str]] = None,
                opts: Optional[InvokeOutputOptions] = 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 Output<GetSlaResult> Invoke(GetSlaInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetSlaResult> getSla(GetSlaArgs args, InvokeOptions options)
    public static Output<GetSlaResult> getSla(GetSlaArgs args, InvokeOptions options)
    public static Output<GetSlaResult> getSla(GetSlaArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: zenduty:index/getSla:getSla
      arguments:
        # arguments dictionary
    data "zenduty_get_sla" "name" {
        # arguments
    }

    The following arguments are supported:

    TeamId string
    The unique_id of the team whose SLAs to list.
    Id string
    TeamId string
    The unique_id of the team whose SLAs to list.
    Id string
    team_id string
    The unique_id of the team whose SLAs to list.
    id string
    teamId String
    The unique_id of the team whose SLAs to list.
    id String
    teamId string
    The unique_id of the team whose SLAs to list.
    id string
    team_id str
    The unique_id of the team whose SLAs to list.
    id str
    teamId String
    The unique_id of the team whose SLAs to list.
    id String

    getSla Result

    The following output properties are available:

    Id string
    Slas List<GetSlaSla>
    The list of SLAs, each with:
    TeamId string
    Id string
    Slas []GetSlaSla
    The list of SLAs, each with:
    TeamId string
    id string
    slas list(object)
    The list of SLAs, each with:
    team_id string
    id String
    slas List<GetSlaSla>
    The list of SLAs, each with:
    teamId String
    id string
    slas GetSlaSla[]
    The list of SLAs, each with:
    teamId string
    id str
    slas Sequence[GetSlaSla]
    The list of SLAs, each with:
    team_id str
    id String
    slas List<Property Map>
    The list of SLAs, each with:
    teamId String

    Supporting Types

    GetSlaSla

    AcknowledgeTime double
    Seconds before the acknowledgement SLA is breached.
    CreationDate string
    When the SLA was created.
    IsActive bool
    Whether the SLA is active.
    Name string
    The name of the SLA.
    ResolveTime double
    Seconds before the resolution SLA is breached.
    UniqueId string
    The unique_id of the SLA.
    AcknowledgeTime float64
    Seconds before the acknowledgement SLA is breached.
    CreationDate string
    When the SLA was created.
    IsActive bool
    Whether the SLA is active.
    Name string
    The name of the SLA.
    ResolveTime float64
    Seconds before the resolution SLA is breached.
    UniqueId string
    The unique_id of the SLA.
    acknowledge_time number
    Seconds before the acknowledgement SLA is breached.
    creation_date string
    When the SLA was created.
    is_active bool
    Whether the SLA is active.
    name string
    The name of the SLA.
    resolve_time number
    Seconds before the resolution SLA is breached.
    unique_id string
    The unique_id of the SLA.
    acknowledgeTime Double
    Seconds before the acknowledgement SLA is breached.
    creationDate String
    When the SLA was created.
    isActive Boolean
    Whether the SLA is active.
    name String
    The name of the SLA.
    resolveTime Double
    Seconds before the resolution SLA is breached.
    uniqueId String
    The unique_id of the SLA.
    acknowledgeTime number
    Seconds before the acknowledgement SLA is breached.
    creationDate string
    When the SLA was created.
    isActive boolean
    Whether the SLA is active.
    name string
    The name of the SLA.
    resolveTime number
    Seconds before the resolution SLA is breached.
    uniqueId string
    The unique_id of the SLA.
    acknowledge_time float
    Seconds before the acknowledgement SLA is breached.
    creation_date str
    When the SLA was created.
    is_active bool
    Whether the SLA is active.
    name str
    The name of the SLA.
    resolve_time float
    Seconds before the resolution SLA is breached.
    unique_id str
    The unique_id of the SLA.
    acknowledgeTime Number
    Seconds before the acknowledgement SLA is breached.
    creationDate String
    When the SLA was created.
    isActive Boolean
    Whether the SLA is active.
    name String
    The name of the SLA.
    resolveTime Number
    Seconds before the resolution SLA is breached.
    uniqueId String
    The unique_id of the SLA.

    Package Details

    Repository
    zenduty zenduty/terraform-provider-zenduty
    License
    Notes
    This Pulumi package is based on the zenduty Terraform Provider.
    Viewing docs for zenduty 2.0.0
    published on Friday, Aug 14, 2026 by zenduty

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial