zenduty.Sla
Explore with Pulumi AI
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", {});
const user1 = zenduty.getUser({
    email: "demouser@gmail.com",
});
import pulumi
import pulumi_zenduty as zenduty
exampleteam = zenduty.Teams("exampleteam")
user1 = zenduty.get_user(email="demouser@gmail.com")
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/zenduty/zenduty"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := zenduty.NewTeams(ctx, "exampleteam", nil)
		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");
    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.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");
        final var user1 = ZendutyFunctions.getUser(GetUserArgs.builder()
            .email("demouser@gmail.com")
            .build());
    }
}
resources:
  exampleteam:
    type: zenduty:Teams
variables:
  user1:
    fn::invoke:
      function: zenduty:getUser
      arguments:
        email: demouser@gmail.com
import * as pulumi from "@pulumi/pulumi";
import * as zenduty from "@pulumi/zenduty";
const exampleSla = new zenduty.Sla("exampleSla", {
    description: "this is a demo sla",
    teamId: zenduty_teams.exampleteam.id,
    acknowledgeTime: 5,
    resolveTime: 10,
    escalations: [
        {
            time: 30,
            type: 1,
            responders: [{
                user: data.zenduty_user.user1.users[0].username,
            }],
        },
        {
            time: -10,
            type: 2,
            responders: [{
                user: data.zenduty_user.user1.users[0].username,
            }],
        },
    ],
});
import pulumi
import pulumi_zenduty as zenduty
example_sla = zenduty.Sla("exampleSla",
    description="this is a demo sla",
    team_id=zenduty_teams["exampleteam"]["id"],
    acknowledge_time=5,
    resolve_time=10,
    escalations=[
        {
            "time": 30,
            "type": 1,
            "responders": [{
                "user": data["zenduty_user"]["user1"]["users"][0]["username"],
            }],
        },
        {
            "time": -10,
            "type": 2,
            "responders": [{
                "user": data["zenduty_user"]["user1"]["users"][0]["username"],
            }],
        },
    ])
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/zenduty/zenduty"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := zenduty.NewSla(ctx, "exampleSla", &zenduty.SlaArgs{
			Description:     pulumi.String("this is a demo sla"),
			TeamId:          pulumi.Any(zenduty_teams.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(data.Zenduty_user.User1.Users[0].Username),
						},
					},
				},
				&zenduty.SlaEscalationArgs{
					Time: pulumi.Float64(-10),
					Type: pulumi.Float64(2),
					Responders: zenduty.SlaEscalationResponderArray{
						&zenduty.SlaEscalationResponderArgs{
							User: pulumi.Any(data.Zenduty_user.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("exampleSla", new()
    {
        Description = "this is a demo sla",
        TeamId = zenduty_teams.Exampleteam.Id,
        AcknowledgeTime = 5,
        ResolveTime = 10,
        Escalations = new[]
        {
            new Zenduty.Inputs.SlaEscalationArgs
            {
                Time = 30,
                Type = 1,
                Responders = new[]
                {
                    new Zenduty.Inputs.SlaEscalationResponderArgs
                    {
                        User = data.Zenduty_user.User1.Users[0].Username,
                    },
                },
            },
            new Zenduty.Inputs.SlaEscalationArgs
            {
                Time = -10,
                Type = 2,
                Responders = new[]
                {
                    new Zenduty.Inputs.SlaEscalationResponderArgs
                    {
                        User = data.Zenduty_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()
            .description("this is a demo sla")
            .teamId(zenduty_teams.exampleteam().id())
            .acknowledgeTime(5)
            .resolveTime(10)
            .escalations(            
                SlaEscalationArgs.builder()
                    .time(30)
                    .type(1)
                    .responders(SlaEscalationResponderArgs.builder()
                        .user(data.zenduty_user().user1().users()[0].username())
                        .build())
                    .build(),
                SlaEscalationArgs.builder()
                    .time(-10)
                    .type(2)
                    .responders(SlaEscalationResponderArgs.builder()
                        .user(data.zenduty_user().user1().users()[0].username())
                        .build())
                    .build())
            .build());
    }
}
resources:
  exampleSla:
    type: zenduty:Sla
    properties:
      description: this is a demo sla
      teamId: ${zenduty_teams.exampleteam.id}
      acknowledgeTime: 5
      resolveTime: 10
      escalations:
        - time: 30
          type: 1
          responders:
            - user: ${data.zenduty_user.user1.users[0].username}
        - time: -10
          type: 2
          responders:
            - user: ${data.zenduty_user.user1.users[0].username}
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,
        acknowledge_time: Optional[float] = None,
        escalations: Optional[Sequence[SlaEscalationArgs]] = None,
        resolve_time: Optional[float] = None,
        team_id: Optional[str] = None,
        description: Optional[str] = None,
        is_active: Optional[bool] = None,
        name: Optional[str] = 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)type: zenduty:Sla
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 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()
{
    AcknowledgeTime = 0,
    Escalations = new[]
    {
        new Zenduty.Inputs.SlaEscalationArgs
        {
            Time = 0,
            Type = 0,
            Responders = new[]
            {
                new Zenduty.Inputs.SlaEscalationResponderArgs
                {
                    User = "string",
                },
            },
            UniqueId = "string",
        },
    },
    ResolveTime = 0,
    TeamId = "string",
    Description = "string",
    IsActive = false,
    Name = "string",
    SlaId = "string",
});
example, err := zenduty.NewSla(ctx, "slaResource", &zenduty.SlaArgs{
AcknowledgeTime: pulumi.Float64(0),
Escalations: .SlaEscalationArray{
&.SlaEscalationArgs{
Time: pulumi.Float64(0),
Type: pulumi.Float64(0),
Responders: .SlaEscalationResponderArray{
&.SlaEscalationResponderArgs{
User: pulumi.String("string"),
},
},
UniqueId: pulumi.String("string"),
},
},
ResolveTime: pulumi.Float64(0),
TeamId: pulumi.String("string"),
Description: pulumi.String("string"),
IsActive: pulumi.Bool(false),
Name: pulumi.String("string"),
SlaId: pulumi.String("string"),
})
var slaResource = new Sla("slaResource", SlaArgs.builder()
    .acknowledgeTime(0)
    .escalations(SlaEscalationArgs.builder()
        .time(0)
        .type(0)
        .responders(SlaEscalationResponderArgs.builder()
            .user("string")
            .build())
        .uniqueId("string")
        .build())
    .resolveTime(0)
    .teamId("string")
    .description("string")
    .isActive(false)
    .name("string")
    .slaId("string")
    .build());
sla_resource = zenduty.Sla("slaResource",
    acknowledge_time=0,
    escalations=[{
        "time": 0,
        "type": 0,
        "responders": [{
            "user": "string",
        }],
        "unique_id": "string",
    }],
    resolve_time=0,
    team_id="string",
    description="string",
    is_active=False,
    name="string",
    sla_id="string")
const slaResource = new zenduty.Sla("slaResource", {
    acknowledgeTime: 0,
    escalations: [{
        time: 0,
        type: 0,
        responders: [{
            user: "string",
        }],
        uniqueId: "string",
    }],
    resolveTime: 0,
    teamId: "string",
    description: "string",
    isActive: false,
    name: "string",
    slaId: "string",
});
type: zenduty:Sla
properties:
    acknowledgeTime: 0
    description: string
    escalations:
        - responders:
            - 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:
- AcknowledgeTime double
- time in seconds to trigger SLA if not acknowledged.
- Escalations
List<SlaEscalation> 
- Reminders when an SLA is breached or about to breach. (see below for nested schema) - import * as pulumi from "@pulumi/pulumi";- import pulumi- using System.Collections.Generic; using System.Linq; using Pulumi;- return await Deployment.RunAsync(() => { }); - package main import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { return nil }) }- package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; 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) { } }- {}
- ResolveTime double
- Time in seconds to trigger SLA if not resolved.
- TeamId string
- The unique_id of team to create the sla in.
- Description string
- The description of the sla
- IsActive bool
- Name string
- The name of the sla.
- SlaId string
- The ID of the Zenduty SlA.
- AcknowledgeTime float64
- time in seconds to trigger SLA if not acknowledged.
- Escalations
[]SlaEscalation Args 
- Reminders when an SLA is breached or about to breach. (see below for nested schema) - import * as pulumi from "@pulumi/pulumi";- import pulumi- using System.Collections.Generic; using System.Linq; using Pulumi;- return await Deployment.RunAsync(() => { }); - package main import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { return nil }) }- package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; 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) { } }- {}
- ResolveTime float64
- Time in seconds to trigger SLA if not resolved.
- TeamId string
- The unique_id of team to create the sla in.
- Description string
- The description of the sla
- IsActive bool
- Name string
- The name of the sla.
- SlaId string
- The ID of the Zenduty SlA.
- acknowledgeTime Double
- time in seconds to trigger SLA if not acknowledged.
- escalations
List<SlaEscalation> 
- Reminders when an SLA is breached or about to breach. (see below for nested schema) - import * as pulumi from "@pulumi/pulumi";- import pulumi- using System.Collections.Generic; using System.Linq; using Pulumi;- return await Deployment.RunAsync(() => { }); - package main import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { return nil }) }- package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; 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) { } }- {}
- resolveTime Double
- Time in seconds to trigger SLA if not resolved.
- teamId String
- The unique_id of team to create the sla in.
- description String
- The description of the sla
- isActive Boolean
- name String
- The name of the sla.
- slaId String
- The ID of the Zenduty SlA.
- acknowledgeTime number
- time in seconds to trigger SLA if not acknowledged.
- escalations
SlaEscalation[] 
- Reminders when an SLA is breached or about to breach. (see below for nested schema) - import * as pulumi from "@pulumi/pulumi";- import pulumi- using System.Collections.Generic; using System.Linq; using Pulumi;- return await Deployment.RunAsync(() => { }); - package main import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { return nil }) }- package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; 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) { } }- {}
- resolveTime number
- Time in seconds to trigger SLA if not resolved.
- teamId string
- The unique_id of team to create the sla in.
- description string
- The description of the sla
- isActive boolean
- name string
- The name of the sla.
- slaId string
- The ID of the Zenduty SlA.
- acknowledge_time float
- time in seconds to trigger SLA if not acknowledged.
- escalations
Sequence[SlaEscalation Args] 
- Reminders when an SLA is breached or about to breach. (see below for nested schema) - import * as pulumi from "@pulumi/pulumi";- import pulumi- using System.Collections.Generic; using System.Linq; using Pulumi;- return await Deployment.RunAsync(() => { }); - package main import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { return nil }) }- package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; 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) { } }- {}
- resolve_time float
- Time in seconds to trigger SLA if not resolved.
- team_id str
- The unique_id of team to create the sla in.
- description str
- The description of the sla
- is_active bool
- name str
- The name of the sla.
- sla_id str
- The ID of the Zenduty SlA.
- acknowledgeTime Number
- time in seconds to trigger SLA if not acknowledged.
- escalations List<Property Map>
- Reminders when an SLA is breached or about to breach. (see below for nested schema) - import * as pulumi from "@pulumi/pulumi";- import pulumi- using System.Collections.Generic; using System.Linq; using Pulumi;- return await Deployment.RunAsync(() => { }); - package main import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { return nil }) }- package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; 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) { } }- {}
- resolveTime Number
- Time in seconds to trigger SLA if not resolved.
- teamId String
- The unique_id of team to create the sla in.
- description String
- The description of the sla
- isActive Boolean
- name String
- The name of the sla.
- 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 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,
        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) -> Slafunc 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}- 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.
- AcknowledgeTime double
- time in seconds to trigger SLA if not acknowledged.
- Description string
- The description of the sla
- Escalations
List<SlaEscalation> 
- Reminders when an SLA is breached or about to breach. (see below for nested schema) - import * as pulumi from "@pulumi/pulumi";- import pulumi- using System.Collections.Generic; using System.Linq; using Pulumi;- return await Deployment.RunAsync(() => { }); - package main import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { return nil }) }- package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; 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) { } }- {}
- IsActive bool
- Name string
- The name of the sla.
- ResolveTime double
- Time in seconds to trigger SLA if not resolved.
- 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.
- Description string
- The description of the sla
- Escalations
[]SlaEscalation Args 
- Reminders when an SLA is breached or about to breach. (see below for nested schema) - import * as pulumi from "@pulumi/pulumi";- import pulumi- using System.Collections.Generic; using System.Linq; using Pulumi;- return await Deployment.RunAsync(() => { }); - package main import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { return nil }) }- package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; 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) { } }- {}
- IsActive bool
- Name string
- The name of the sla.
- ResolveTime float64
- Time in seconds to trigger SLA if not resolved.
- SlaId 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.
- description String
- The description of the sla
- escalations
List<SlaEscalation> 
- Reminders when an SLA is breached or about to breach. (see below for nested schema) - import * as pulumi from "@pulumi/pulumi";- import pulumi- using System.Collections.Generic; using System.Linq; using Pulumi;- return await Deployment.RunAsync(() => { }); - package main import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { return nil }) }- package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; 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) { } }- {}
- isActive Boolean
- name String
- The name of the sla.
- resolveTime Double
- Time in seconds to trigger SLA if not resolved.
- 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.
- description string
- The description of the sla
- escalations
SlaEscalation[] 
- Reminders when an SLA is breached or about to breach. (see below for nested schema) - import * as pulumi from "@pulumi/pulumi";- import pulumi- using System.Collections.Generic; using System.Linq; using Pulumi;- return await Deployment.RunAsync(() => { }); - package main import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { return nil }) }- package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; 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) { } }- {}
- isActive boolean
- name string
- The name of the sla.
- resolveTime number
- Time in seconds to trigger SLA if not resolved.
- 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.
- description str
- The description of the sla
- escalations
Sequence[SlaEscalation Args] 
- Reminders when an SLA is breached or about to breach. (see below for nested schema) - import * as pulumi from "@pulumi/pulumi";- import pulumi- using System.Collections.Generic; using System.Linq; using Pulumi;- return await Deployment.RunAsync(() => { }); - package main import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { return nil }) }- package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; 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) { } }- {}
- is_active bool
- name str
- The name of the sla.
- resolve_time float
- Time in seconds to trigger SLA if not resolved.
- 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.
- description String
- The description of the sla
- escalations List<Property Map>
- Reminders when an SLA is breached or about to breach. (see below for nested schema) - import * as pulumi from "@pulumi/pulumi";- import pulumi- using System.Collections.Generic; using System.Linq; using Pulumi;- return await Deployment.RunAsync(() => { }); - package main import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { return nil }) }- package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; 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) { } }- {}
- isActive Boolean
- name String
- The name of the sla.
- resolveTime Number
- Time in seconds to trigger SLA if not resolved.
- 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. 1signifies that notifications are sent when the SLA breach is acknowledged, while2indicates notifications for resolution SLA breaches.
- Responders
List<SlaEscalation Responder> 
- users who need to be paged when an SLA is breached. (see below for nested schema) - import * as pulumi from "@pulumi/pulumi";- import pulumi- using System.Collections.Generic; using System.Linq; using Pulumi;- return await Deployment.RunAsync(() => { }); - package main import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { return nil }) }- package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; 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) { } }- {}
- 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. 1signifies that notifications are sent when the SLA breach is acknowledged, while2indicates notifications for resolution SLA breaches.
- Responders
[]SlaEscalation Responder 
- users who need to be paged when an SLA is breached. (see below for nested schema) - import * as pulumi from "@pulumi/pulumi";- import pulumi- using System.Collections.Generic; using System.Linq; using Pulumi;- return await Deployment.RunAsync(() => { }); - package main import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { return nil }) }- package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; 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) { } }- {}
- UniqueId 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. 1signifies that notifications are sent when the SLA breach is acknowledged, while2indicates notifications for resolution SLA breaches.
- responders
List<SlaEscalation Responder> 
- users who need to be paged when an SLA is breached. (see below for nested schema) - import * as pulumi from "@pulumi/pulumi";- import pulumi- using System.Collections.Generic; using System.Linq; using Pulumi;- return await Deployment.RunAsync(() => { }); - package main import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { return nil }) }- package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; 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) { } }- {}
- 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. 1signifies that notifications are sent when the SLA breach is acknowledged, while2indicates notifications for resolution SLA breaches.
- responders
SlaEscalation Responder[] 
- users who need to be paged when an SLA is breached. (see below for nested schema) - import * as pulumi from "@pulumi/pulumi";- import pulumi- using System.Collections.Generic; using System.Linq; using Pulumi;- return await Deployment.RunAsync(() => { }); - package main import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { return nil }) }- package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; 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) { } }- {}
- 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. 1signifies that notifications are sent when the SLA breach is acknowledged, while2indicates notifications for resolution SLA breaches.
- responders
Sequence[SlaEscalation Responder] 
- users who need to be paged when an SLA is breached. (see below for nested schema) - import * as pulumi from "@pulumi/pulumi";- import pulumi- using System.Collections.Generic; using System.Linq; using Pulumi;- return await Deployment.RunAsync(() => { }); - package main import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { return nil }) }- package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; 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) { } }- {}
- 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. 1signifies that notifications are sent when the SLA breach is acknowledged, while2indicates notifications for resolution SLA breaches.
- responders List<Property Map>
- users who need to be paged when an SLA is breached. (see below for nested schema) - import * as pulumi from "@pulumi/pulumi";- import pulumi- using System.Collections.Generic; using System.Linq; using Pulumi;- return await Deployment.RunAsync(() => { }); - package main import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { return nil }) }- package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; 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) { } }- {}
- uniqueId String
SlaEscalationResponder, SlaEscalationResponderArgs      
- User string
- Username of the user who will be notified if sla is breached
- User string
- Username of the user who will be notified if sla is breached
- user String
- Username of the user who will be notified if sla is breached
- user string
- Username of the user who will be notified if sla is breached
- user str
- Username of the user who will be notified if sla is breached
- user String
- Username of the user who will be notified if 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 zendutyTerraform Provider.