1. Registry
  2. Packages
  3. Zenduty Provider
  4. API Docs
  5. Sla
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

    Provides a Zenduty SLAs Resource. This allows SLAs to be created, updated, and deleted.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as zenduty from "@pulumi/zenduty";
    
    const exampleteam = new zenduty.Teams("exampleteam", {name: "exmaple team"});
    const user1 = zenduty.getUser({
        email: "demouser@gmail.com",
    });
    
    import pulumi
    import pulumi_zenduty as zenduty
    
    exampleteam = zenduty.Teams("exampleteam", name="exmaple team")
    user1 = zenduty.get_user(email="demouser@gmail.com")
    
    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 {
    		_, err := zenduty.NewTeams(ctx, "exampleteam", &zenduty.TeamsArgs{
    			Name: pulumi.String("exmaple team"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = zenduty.LookupUser(ctx, &zenduty.LookupUserArgs{
    			Email: "demouser@gmail.com",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Zenduty = Pulumi.Zenduty;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleteam = new Zenduty.Teams("exampleteam", new()
        {
            Name = "exmaple team",
        });
    
        var user1 = Zenduty.GetUser.Invoke(new()
        {
            Email = "demouser@gmail.com",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.zenduty.Teams;
    import com.pulumi.zenduty.TeamsArgs;
    import com.pulumi.zenduty.ZendutyFunctions;
    import com.pulumi.zenduty.inputs.GetUserArgs;
    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 exampleteam = new Teams("exampleteam", TeamsArgs.builder()
                .name("exmaple team")
                .build());
    
            final var user1 = ZendutyFunctions.getUser(GetUserArgs.builder()
                .email("demouser@gmail.com")
                .build());
    
        }
    }
    
    resources:
      exampleteam:
        type: zenduty:Teams
        properties:
          name: exmaple team
    variables:
      user1:
        fn::invoke:
          function: zenduty:getUser
          arguments:
            email: demouser@gmail.com
    
    Example coming soon!
    
    import * as pulumi from "@pulumi/pulumi";
    import * as zenduty from "@pulumi/zenduty";
    
    const exampleSla = new zenduty.Sla("example_sla", {
        name: "demo sla",
        description: "this is a demo sla",
        teamId: exampleteam.id,
        acknowledgeTime: 5,
        resolveTime: 10,
        escalations: [
            {
                time: 30,
                type: 1,
                responders: [{
                    user: user1.users[0].username,
                }],
            },
            {
                time: -10,
                type: 2,
                responders: [{
                    user: user1.users[0].username,
                }],
            },
        ],
    });
    
    import pulumi
    import pulumi_zenduty as zenduty
    
    example_sla = zenduty.Sla("example_sla",
        name="demo sla",
        description="this is a demo sla",
        team_id=exampleteam["id"],
        acknowledge_time=5,
        resolve_time=10,
        escalations=[
            {
                "time": 30,
                "type": 1,
                "responders": [{
                    "user": user1["users"][0]["username"],
                }],
            },
            {
                "time": -10,
                "type": 2,
                "responders": [{
                    "user": user1["users"][0]["username"],
                }],
            },
        ])
    
    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 {
    		_, err := zenduty.NewSla(ctx, "example_sla", &zenduty.SlaArgs{
    			Name:            pulumi.String("demo sla"),
    			Description:     pulumi.String("this is a demo sla"),
    			TeamId:          pulumi.Any(exampleteam.Id),
    			AcknowledgeTime: pulumi.Float64(5),
    			ResolveTime:     pulumi.Float64(10),
    			Escalations: zenduty.SlaEscalationArray{
    				&zenduty.SlaEscalationArgs{
    					Time: pulumi.Float64(30),
    					Type: pulumi.Float64(1),
    					Responders: zenduty.SlaEscalationResponderArray{
    						&zenduty.SlaEscalationResponderArgs{
    							User: pulumi.Any(user1.Users[0].Username),
    						},
    					},
    				},
    				&zenduty.SlaEscalationArgs{
    					Time: pulumi.Float64(-10),
    					Type: pulumi.Float64(2),
    					Responders: zenduty.SlaEscalationResponderArray{
    						&zenduty.SlaEscalationResponderArgs{
    							User: pulumi.Any(user1.Users[0].Username),
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Zenduty = Pulumi.Zenduty;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleSla = new Zenduty.Sla("example_sla", new()
        {
            Name = "demo sla",
            Description = "this is a demo sla",
            TeamId = exampleteam.Id,
            AcknowledgeTime = 5,
            ResolveTime = 10,
            Escalations = new[]
            {
                new Zenduty.Inputs.SlaEscalationArgs
                {
                    Time = 30,
                    Type = 1,
                    Responders = new[]
                    {
                        new Zenduty.Inputs.SlaEscalationResponderArgs
                        {
                            User = user1.Users[0].Username,
                        },
                    },
                },
                new Zenduty.Inputs.SlaEscalationArgs
                {
                    Time = -10,
                    Type = 2,
                    Responders = new[]
                    {
                        new Zenduty.Inputs.SlaEscalationResponderArgs
                        {
                            User = user1.Users[0].Username,
                        },
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.zenduty.Sla;
    import com.pulumi.zenduty.SlaArgs;
    import com.pulumi.zenduty.inputs.SlaEscalationArgs;
    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 exampleSla = new Sla("exampleSla", SlaArgs.builder()
                .name("demo sla")
                .description("this is a demo sla")
                .teamId(exampleteam.id())
                .acknowledgeTime(5.0)
                .resolveTime(10.0)
                .escalations(            
                    SlaEscalationArgs.builder()
                        .time(30.0)
                        .type(1.0)
                        .responders(SlaEscalationResponderArgs.builder()
                            .user(user1.users()[0].username())
                            .build())
                        .build(),
                    SlaEscalationArgs.builder()
                        .time(-10.0)
                        .type(2.0)
                        .responders(SlaEscalationResponderArgs.builder()
                            .user(user1.users()[0].username())
                            .build())
                        .build())
                .build());
    
        }
    }
    
    resources:
      exampleSla:
        type: zenduty:Sla
        name: example_sla
        properties:
          name: demo sla
          description: this is a demo sla
          teamId: ${exampleteam.id}
          acknowledgeTime: 5
          resolveTime: 10
          escalations:
            - time: 30
              type: 1
              responders:
                - user: ${user1.users[0].username}
            - time: -10
              type: 2
              responders:
                - user: ${user1.users[0].username}
    
    Example coming soon!
    

    Create Sla Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Sla(name: string, args: SlaArgs, opts?: CustomResourceOptions);
    @overload
    def Sla(resource_name: str,
            args: SlaArgs,
            opts: Optional[ResourceOptions] = None)
    
    @overload
    def Sla(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            team_id: Optional[str] = None,
            acknowledge_time: Optional[float] = None,
            conditions: Optional[str] = None,
            description: Optional[str] = None,
            escalations: Optional[Sequence[SlaEscalationArgs]] = None,
            is_active: Optional[bool] = None,
            name: Optional[str] = None,
            resolve_time: Optional[float] = None,
            sla_id: Optional[str] = None)
    func NewSla(ctx *Context, name string, args SlaArgs, opts ...ResourceOption) (*Sla, error)
    public Sla(string name, SlaArgs args, CustomResourceOptions? opts = null)
    public Sla(String name, SlaArgs args)
    public Sla(String name, SlaArgs args, CustomResourceOptions options)
    
    type: zenduty:Sla
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "zenduty_sla" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args SlaArgs
    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 SlaArgs
    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 SlaArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SlaArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SlaArgs
    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 slaResource = new Zenduty.Sla("slaResource", new()
    {
        TeamId = "string",
        AcknowledgeTime = 0.0,
        Conditions = "string",
        Description = "string",
        Escalations = new[]
        {
            new Zenduty.Inputs.SlaEscalationArgs
            {
                Time = 0.0,
                Type = 0.0,
                Responders = new[]
                {
                    new Zenduty.Inputs.SlaEscalationResponderArgs
                    {
                        Schedule = "string",
                        User = "string",
                    },
                },
                UniqueId = "string",
            },
        },
        IsActive = false,
        Name = "string",
        ResolveTime = 0.0,
        SlaId = "string",
    });
    
    example, err := zenduty.NewSla(ctx, "slaResource", &zenduty.SlaArgs{
    	TeamId:          pulumi.String("string"),
    	AcknowledgeTime: pulumi.Float64(0),
    	Conditions:      pulumi.String("string"),
    	Description:     pulumi.String("string"),
    	Escalations: zenduty.SlaEscalationArray{
    		&zenduty.SlaEscalationArgs{
    			Time: pulumi.Float64(0),
    			Type: pulumi.Float64(0),
    			Responders: zenduty.SlaEscalationResponderArray{
    				&zenduty.SlaEscalationResponderArgs{
    					Schedule: pulumi.String("string"),
    					User:     pulumi.String("string"),
    				},
    			},
    			UniqueId: pulumi.String("string"),
    		},
    	},
    	IsActive:    pulumi.Bool(false),
    	Name:        pulumi.String("string"),
    	ResolveTime: pulumi.Float64(0),
    	SlaId:       pulumi.String("string"),
    })
    
    resource "zenduty_sla" "slaResource" {
      lifecycle {
        create_before_destroy = true
      }
      team_id          = "string"
      acknowledge_time = 0
      conditions       = "string"
      description      = "string"
      escalations {
        time = 0
        type = 0
        responders {
          schedule = "string"
          user     = "string"
        }
        unique_id = "string"
      }
      is_active    = false
      name         = "string"
      resolve_time = 0
      sla_id       = "string"
    }
    
    var slaResource = new Sla("slaResource", SlaArgs.builder()
        .teamId("string")
        .acknowledgeTime(0.0)
        .conditions("string")
        .description("string")
        .escalations(SlaEscalationArgs.builder()
            .time(0.0)
            .type(0.0)
            .responders(SlaEscalationResponderArgs.builder()
                .schedule("string")
                .user("string")
                .build())
            .uniqueId("string")
            .build())
        .isActive(false)
        .name("string")
        .resolveTime(0.0)
        .slaId("string")
        .build());
    
    sla_resource = zenduty.Sla("slaResource",
        team_id="string",
        acknowledge_time=float(0),
        conditions="string",
        description="string",
        escalations=[{
            "time": float(0),
            "type": float(0),
            "responders": [{
                "schedule": "string",
                "user": "string",
            }],
            "unique_id": "string",
        }],
        is_active=False,
        name="string",
        resolve_time=float(0),
        sla_id="string")
    
    const slaResource = new zenduty.Sla("slaResource", {
        teamId: "string",
        acknowledgeTime: 0,
        conditions: "string",
        description: "string",
        escalations: [{
            time: 0,
            type: 0,
            responders: [{
                schedule: "string",
                user: "string",
            }],
            uniqueId: "string",
        }],
        isActive: false,
        name: "string",
        resolveTime: 0,
        slaId: "string",
    });
    
    type: zenduty:Sla
    properties:
        acknowledgeTime: 0
        conditions: string
        description: string
        escalations:
            - responders:
                - schedule: string
                  user: string
              time: 0
              type: 0
              uniqueId: string
        isActive: false
        name: string
        resolveTime: 0
        slaId: string
        teamId: string
    

    Sla 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 Sla resource accepts the following input properties:

    TeamId string
    The unique_id of team to create the sla in.
    AcknowledgeTime double
    time in seconds to trigger SLA if not acknowledged. 0 (the API default) disables the acknowledge target.
    Conditions string
    SLA conditions as a JSON object string. Formatting-only differences are ignored.
    Description string
    The description of the sla
    Escalations List<SlaEscalation>
    Reminders when an SLA is breached or about to breach. May be omitted for SLAs without escalations. (see below for nested schema)
    IsActive bool
    Whether the SLA is active. Defaults to true.
    Name string
    The name of the sla.
    ResolveTime double
    Time in seconds to trigger SLA if not resolved. 0 (the API default) disables the resolve target.
    SlaId string
    The ID of the Zenduty SlA.
    TeamId string
    The unique_id of team to create the sla in.
    AcknowledgeTime float64
    time in seconds to trigger SLA if not acknowledged. 0 (the API default) disables the acknowledge target.
    Conditions string
    SLA conditions as a JSON object string. Formatting-only differences are ignored.
    Description string
    The description of the sla
    Escalations []SlaEscalationArgs
    Reminders when an SLA is breached or about to breach. May be omitted for SLAs without escalations. (see below for nested schema)
    IsActive bool
    Whether the SLA is active. Defaults to true.
    Name string
    The name of the sla.
    ResolveTime float64
    Time in seconds to trigger SLA if not resolved. 0 (the API default) disables the resolve target.
    SlaId string
    The ID of the Zenduty SlA.
    team_id string
    The unique_id of team to create the sla in.
    acknowledge_time number
    time in seconds to trigger SLA if not acknowledged. 0 (the API default) disables the acknowledge target.
    conditions string
    SLA conditions as a JSON object string. Formatting-only differences are ignored.
    description string
    The description of the sla
    escalations list(object)
    Reminders when an SLA is breached or about to breach. May be omitted for SLAs without escalations. (see below for nested schema)
    is_active bool
    Whether the SLA is active. Defaults to true.
    name string
    The name of the sla.
    resolve_time number
    Time in seconds to trigger SLA if not resolved. 0 (the API default) disables the resolve target.
    sla_id string
    The ID of the Zenduty SlA.
    teamId String
    The unique_id of team to create the sla in.
    acknowledgeTime Double
    time in seconds to trigger SLA if not acknowledged. 0 (the API default) disables the acknowledge target.
    conditions String
    SLA conditions as a JSON object string. Formatting-only differences are ignored.
    description String
    The description of the sla
    escalations List<SlaEscalation>
    Reminders when an SLA is breached or about to breach. May be omitted for SLAs without escalations. (see below for nested schema)
    isActive Boolean
    Whether the SLA is active. Defaults to true.
    name String
    The name of the sla.
    resolveTime Double
    Time in seconds to trigger SLA if not resolved. 0 (the API default) disables the resolve target.
    slaId String
    The ID of the Zenduty SlA.
    teamId string
    The unique_id of team to create the sla in.
    acknowledgeTime number
    time in seconds to trigger SLA if not acknowledged. 0 (the API default) disables the acknowledge target.
    conditions string
    SLA conditions as a JSON object string. Formatting-only differences are ignored.
    description string
    The description of the sla
    escalations SlaEscalation[]
    Reminders when an SLA is breached or about to breach. May be omitted for SLAs without escalations. (see below for nested schema)
    isActive boolean
    Whether the SLA is active. Defaults to true.
    name string
    The name of the sla.
    resolveTime number
    Time in seconds to trigger SLA if not resolved. 0 (the API default) disables the resolve target.
    slaId string
    The ID of the Zenduty SlA.
    team_id str
    The unique_id of team to create the sla in.
    acknowledge_time float
    time in seconds to trigger SLA if not acknowledged. 0 (the API default) disables the acknowledge target.
    conditions str
    SLA conditions as a JSON object string. Formatting-only differences are ignored.
    description str
    The description of the sla
    escalations Sequence[SlaEscalationArgs]
    Reminders when an SLA is breached or about to breach. May be omitted for SLAs without escalations. (see below for nested schema)
    is_active bool
    Whether the SLA is active. Defaults to true.
    name str
    The name of the sla.
    resolve_time float
    Time in seconds to trigger SLA if not resolved. 0 (the API default) disables the resolve target.
    sla_id str
    The ID of the Zenduty SlA.
    teamId String
    The unique_id of team to create the sla in.
    acknowledgeTime Number
    time in seconds to trigger SLA if not acknowledged. 0 (the API default) disables the acknowledge target.
    conditions String
    SLA conditions as a JSON object string. Formatting-only differences are ignored.
    description String
    The description of the sla
    escalations List<Property Map>
    Reminders when an SLA is breached or about to breach. May be omitted for SLAs without escalations. (see below for nested schema)
    isActive Boolean
    Whether the SLA is active. Defaults to true.
    name String
    The name of the sla.
    resolveTime Number
    Time in seconds to trigger SLA if not resolved. 0 (the API default) disables the resolve target.
    slaId String
    The ID of the Zenduty SlA.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Sla 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 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 Sla Resource

    Get an existing Sla 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?: SlaState, opts?: CustomResourceOptions): Sla
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            acknowledge_time: Optional[float] = None,
            conditions: Optional[str] = None,
            description: Optional[str] = None,
            escalations: Optional[Sequence[SlaEscalationArgs]] = None,
            is_active: Optional[bool] = None,
            name: Optional[str] = None,
            resolve_time: Optional[float] = None,
            sla_id: Optional[str] = None,
            team_id: Optional[str] = None) -> Sla
    func GetSla(ctx *Context, name string, id IDInput, state *SlaState, opts ...ResourceOption) (*Sla, error)
    public static Sla Get(string name, Input<string> id, SlaState? state, CustomResourceOptions? opts = null)
    public static Sla get(String name, Output<String> id, SlaState state, CustomResourceOptions options)
    resources:  _:    type: zenduty:Sla    get:      id: ${id}
    import {
      to = zenduty_sla.example
      id = "${id}"
    }
    
    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:
    AcknowledgeTime double
    time in seconds to trigger SLA if not acknowledged. 0 (the API default) disables the acknowledge target.
    Conditions string
    SLA conditions as a JSON object string. Formatting-only differences are ignored.
    Description string
    The description of the sla
    Escalations List<SlaEscalation>
    Reminders when an SLA is breached or about to breach. May be omitted for SLAs without escalations. (see below for nested schema)
    IsActive bool
    Whether the SLA is active. Defaults to true.
    Name string
    The name of the sla.
    ResolveTime double
    Time in seconds to trigger SLA if not resolved. 0 (the API default) disables the resolve target.
    SlaId string
    The ID of the Zenduty SlA.
    TeamId string
    The unique_id of team to create the sla in.
    AcknowledgeTime float64
    time in seconds to trigger SLA if not acknowledged. 0 (the API default) disables the acknowledge target.
    Conditions string
    SLA conditions as a JSON object string. Formatting-only differences are ignored.
    Description string
    The description of the sla
    Escalations []SlaEscalationArgs
    Reminders when an SLA is breached or about to breach. May be omitted for SLAs without escalations. (see below for nested schema)
    IsActive bool
    Whether the SLA is active. Defaults to true.
    Name string
    The name of the sla.
    ResolveTime float64
    Time in seconds to trigger SLA if not resolved. 0 (the API default) disables the resolve target.
    SlaId string
    The ID of the Zenduty SlA.
    TeamId string
    The unique_id of team to create the sla in.
    acknowledge_time number
    time in seconds to trigger SLA if not acknowledged. 0 (the API default) disables the acknowledge target.
    conditions string
    SLA conditions as a JSON object string. Formatting-only differences are ignored.
    description string
    The description of the sla
    escalations list(object)
    Reminders when an SLA is breached or about to breach. May be omitted for SLAs without escalations. (see below for nested schema)
    is_active bool
    Whether the SLA is active. Defaults to true.
    name string
    The name of the sla.
    resolve_time number
    Time in seconds to trigger SLA if not resolved. 0 (the API default) disables the resolve target.
    sla_id string
    The ID of the Zenduty SlA.
    team_id string
    The unique_id of team to create the sla in.
    acknowledgeTime Double
    time in seconds to trigger SLA if not acknowledged. 0 (the API default) disables the acknowledge target.
    conditions String
    SLA conditions as a JSON object string. Formatting-only differences are ignored.
    description String
    The description of the sla
    escalations List<SlaEscalation>
    Reminders when an SLA is breached or about to breach. May be omitted for SLAs without escalations. (see below for nested schema)
    isActive Boolean
    Whether the SLA is active. Defaults to true.
    name String
    The name of the sla.
    resolveTime Double
    Time in seconds to trigger SLA if not resolved. 0 (the API default) disables the resolve target.
    slaId String
    The ID of the Zenduty SlA.
    teamId String
    The unique_id of team to create the sla in.
    acknowledgeTime number
    time in seconds to trigger SLA if not acknowledged. 0 (the API default) disables the acknowledge target.
    conditions string
    SLA conditions as a JSON object string. Formatting-only differences are ignored.
    description string
    The description of the sla
    escalations SlaEscalation[]
    Reminders when an SLA is breached or about to breach. May be omitted for SLAs without escalations. (see below for nested schema)
    isActive boolean
    Whether the SLA is active. Defaults to true.
    name string
    The name of the sla.
    resolveTime number
    Time in seconds to trigger SLA if not resolved. 0 (the API default) disables the resolve target.
    slaId string
    The ID of the Zenduty SlA.
    teamId string
    The unique_id of team to create the sla in.
    acknowledge_time float
    time in seconds to trigger SLA if not acknowledged. 0 (the API default) disables the acknowledge target.
    conditions str
    SLA conditions as a JSON object string. Formatting-only differences are ignored.
    description str
    The description of the sla
    escalations Sequence[SlaEscalationArgs]
    Reminders when an SLA is breached or about to breach. May be omitted for SLAs without escalations. (see below for nested schema)
    is_active bool
    Whether the SLA is active. Defaults to true.
    name str
    The name of the sla.
    resolve_time float
    Time in seconds to trigger SLA if not resolved. 0 (the API default) disables the resolve target.
    sla_id str
    The ID of the Zenduty SlA.
    team_id str
    The unique_id of team to create the sla in.
    acknowledgeTime Number
    time in seconds to trigger SLA if not acknowledged. 0 (the API default) disables the acknowledge target.
    conditions String
    SLA conditions as a JSON object string. Formatting-only differences are ignored.
    description String
    The description of the sla
    escalations List<Property Map>
    Reminders when an SLA is breached or about to breach. May be omitted for SLAs without escalations. (see below for nested schema)
    isActive Boolean
    Whether the SLA is active. Defaults to true.
    name String
    The name of the sla.
    resolveTime Number
    Time in seconds to trigger SLA if not resolved. 0 (the API default) disables the resolve target.
    slaId String
    The ID of the Zenduty SlA.
    teamId String
    The unique_id of team to create the sla in.

    Supporting Types

    SlaEscalation, SlaEscalationArgs

    Time double
    This field specifies the time duration in seconds when notifications should be sent. If time is positive, it means notifications will be sent x seconds after the SLA breach, and if it's negative, notifications will be sent x seconds before the breach.
    Type double
    It is an integer field that determines the type of notification behavior. 1 signifies that notifications are sent when the SLA breach is acknowledged, while 2 indicates notifications for resolution SLA breaches.
    Responders List<SlaEscalationResponder>

    users or schedules who need to be paged when an SLA is breached. (see below for nested schema)

    UniqueId string
    Time float64
    This field specifies the time duration in seconds when notifications should be sent. If time is positive, it means notifications will be sent x seconds after the SLA breach, and if it's negative, notifications will be sent x seconds before the breach.
    Type float64
    It is an integer field that determines the type of notification behavior. 1 signifies that notifications are sent when the SLA breach is acknowledged, while 2 indicates notifications for resolution SLA breaches.
    Responders []SlaEscalationResponder

    users or schedules who need to be paged when an SLA is breached. (see below for nested schema)

    UniqueId string
    time number
    This field specifies the time duration in seconds when notifications should be sent. If time is positive, it means notifications will be sent x seconds after the SLA breach, and if it's negative, notifications will be sent x seconds before the breach.
    type number
    It is an integer field that determines the type of notification behavior. 1 signifies that notifications are sent when the SLA breach is acknowledged, while 2 indicates notifications for resolution SLA breaches.
    responders list(object)

    users or schedules who need to be paged when an SLA is breached. (see below for nested schema)

    unique_id string
    time Double
    This field specifies the time duration in seconds when notifications should be sent. If time is positive, it means notifications will be sent x seconds after the SLA breach, and if it's negative, notifications will be sent x seconds before the breach.
    type Double
    It is an integer field that determines the type of notification behavior. 1 signifies that notifications are sent when the SLA breach is acknowledged, while 2 indicates notifications for resolution SLA breaches.
    responders List<SlaEscalationResponder>

    users or schedules who need to be paged when an SLA is breached. (see below for nested schema)

    uniqueId String
    time number
    This field specifies the time duration in seconds when notifications should be sent. If time is positive, it means notifications will be sent x seconds after the SLA breach, and if it's negative, notifications will be sent x seconds before the breach.
    type number
    It is an integer field that determines the type of notification behavior. 1 signifies that notifications are sent when the SLA breach is acknowledged, while 2 indicates notifications for resolution SLA breaches.
    responders SlaEscalationResponder[]

    users or schedules who need to be paged when an SLA is breached. (see below for nested schema)

    uniqueId string
    time float
    This field specifies the time duration in seconds when notifications should be sent. If time is positive, it means notifications will be sent x seconds after the SLA breach, and if it's negative, notifications will be sent x seconds before the breach.
    type float
    It is an integer field that determines the type of notification behavior. 1 signifies that notifications are sent when the SLA breach is acknowledged, while 2 indicates notifications for resolution SLA breaches.
    responders Sequence[SlaEscalationResponder]

    users or schedules who need to be paged when an SLA is breached. (see below for nested schema)

    unique_id str
    time Number
    This field specifies the time duration in seconds when notifications should be sent. If time is positive, it means notifications will be sent x seconds after the SLA breach, and if it's negative, notifications will be sent x seconds before the breach.
    type Number
    It is an integer field that determines the type of notification behavior. 1 signifies that notifications are sent when the SLA breach is acknowledged, while 2 indicates notifications for resolution SLA breaches.
    responders List<Property Map>

    users or schedules who need to be paged when an SLA is breached. (see below for nested schema)

    uniqueId String

    SlaEscalationResponder, SlaEscalationResponderArgs

    Schedule string
    unique_id of a schedule whose on-call users will be notified if the SLA is breached.
    User string
    Username of the user who will be notified if the SLA is breached.
    Schedule string
    unique_id of a schedule whose on-call users will be notified if the SLA is breached.
    User string
    Username of the user who will be notified if the SLA is breached.
    schedule string
    unique_id of a schedule whose on-call users will be notified if the SLA is breached.
    user string
    Username of the user who will be notified if the SLA is breached.
    schedule String
    unique_id of a schedule whose on-call users will be notified if the SLA is breached.
    user String
    Username of the user who will be notified if the SLA is breached.
    schedule string
    unique_id of a schedule whose on-call users will be notified if the SLA is breached.
    user string
    Username of the user who will be notified if the SLA is breached.
    schedule str
    unique_id of a schedule whose on-call users will be notified if the SLA is breached.
    user str
    Username of the user who will be notified if the SLA is breached.
    schedule String
    unique_id of a schedule whose on-call users will be notified if the SLA is breached.
    user String
    Username of the user who will be notified if the SLA is breached.

    Import

    Team SLAs can be imported using the team_id(ie. unique_id of the team) and sla_id(ie. unique_id of the sla), e.g.

    hcl

    resource “zenduty_sla” “sla1” {

    }

    $ pulumi import zenduty:index/sla:Sla sla1 team_id/sla_id`
    

    $ terraform state show zenduty_sla.sla1

    * copy the output data and paste inside zenduty_sla.sla1 resource block and remove the id attribute

    $ pulumi preview to verify the import

    To learn more about importing existing cloud resources, see Importing resources.

    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