1. Registry
  2. Packages
  3. Zenduty Provider
  4. API Docs
  5. Esp
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.Esp is a resource to manage escalation policies in a team

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as zenduty from "@pulumi/zenduty";
    
    const exampleteam = new zenduty.Teams("exampleteam", {name: "exmaple team"});
    const exampleSchedule = new zenduty.Schedules("example_schedule", {
        name: "exmaple schedule",
        teamId: exampleteam.teamsId,
        timeZone: "",
    });
    const user1 = zenduty.getUser({
        email: "demouser@gmail.com",
    });
    
    import pulumi
    import pulumi_zenduty as zenduty
    
    exampleteam = zenduty.Teams("exampleteam", name="exmaple team")
    example_schedule = zenduty.Schedules("example_schedule",
        name="exmaple schedule",
        team_id=exampleteam.teams_id,
        time_zone="")
    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 {
    		exampleteam, err := zenduty.NewTeams(ctx, "exampleteam", &zenduty.TeamsArgs{
    			Name: pulumi.String("exmaple team"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = zenduty.NewSchedules(ctx, "example_schedule", &zenduty.SchedulesArgs{
    			Name:     pulumi.String("exmaple schedule"),
    			TeamId:   exampleteam.TeamsId,
    			TimeZone: pulumi.String(""),
    		})
    		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 exampleSchedule = new Zenduty.Schedules("example_schedule", new()
        {
            Name = "exmaple schedule",
            TeamId = exampleteam.TeamsId,
            TimeZone = "",
        });
    
        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.Schedules;
    import com.pulumi.zenduty.SchedulesArgs;
    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());
    
            var exampleSchedule = new Schedules("exampleSchedule", SchedulesArgs.builder()
                .name("exmaple schedule")
                .teamId(exampleteam.teamsId())
                .timeZone("")
                .build());
    
            final var user1 = ZendutyFunctions.getUser(GetUserArgs.builder()
                .email("demouser@gmail.com")
                .build());
    
        }
    }
    
    resources:
      exampleteam:
        type: zenduty:Teams
        properties:
          name: exmaple team
      exampleSchedule:
        type: zenduty:Schedules
        name: example_schedule
        properties:
          name: exmaple schedule
          teamId: ${exampleteam.teamsId}
          timeZone: ""
    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 exampleEsp = new zenduty.Esp("example_esp", {
        name: "example escalation_policy",
        teamId: exampleteam.id,
        description: "",
    });
    
    import pulumi
    import pulumi_zenduty as zenduty
    
    example_esp = zenduty.Esp("example_esp",
        name="example escalation_policy",
        team_id=exampleteam["id"],
        description="")
    
    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.NewEsp(ctx, "example_esp", &zenduty.EspArgs{
    			Name:        pulumi.String("example escalation_policy"),
    			TeamId:      pulumi.Any(exampleteam.Id),
    			Description: pulumi.String(""),
    		})
    		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 exampleEsp = new Zenduty.Esp("example_esp", new()
        {
            Name = "example escalation_policy",
            TeamId = exampleteam.Id,
            Description = "",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.zenduty.Esp;
    import com.pulumi.zenduty.EspArgs;
    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 exampleEsp = new Esp("exampleEsp", EspArgs.builder()
                .name("example escalation_policy")
                .teamId(exampleteam.id())
                .description("")
                .build());
    
        }
    }
    
    resources:
      exampleEsp:
        type: zenduty:Esp
        name: example_esp
        properties:
          name: example escalation_policy
          teamId: ${exampleteam.id}
          description: ""
    
    Example coming soon!
    

    Escalation Policy Example

    import * as pulumi from "@pulumi/pulumi";
    import * as zenduty from "@pulumi/zenduty";
    
    const esp1 = new zenduty.Esp("esp1", {
        name: "Infra escalation policy",
        teamId: "",
        summary: "This is the summary for the new ESP",
        description: "This is the description for the new ESP",
        rules: [
            {
                delay: 0,
                targets: [
                    {
                        targetType: 2,
                        targetId: user1.users[0].username,
                    },
                    {
                        targetType: 1,
                        targetId: exampleSchedule.id,
                    },
                ],
            },
            {
                delay: 5,
                targets: [
                    {
                        targetType: 2,
                        targetId: "",
                    },
                    {
                        targetType: 2,
                        targetId: "",
                    },
                ],
            },
        ],
        moveToNext: true,
        repeatPolicy: 8,
    });
    
    import pulumi
    import pulumi_zenduty as zenduty
    
    esp1 = zenduty.Esp("esp1",
        name="Infra escalation policy",
        team_id="",
        summary="This is the summary for the new ESP",
        description="This is the description for the new ESP",
        rules=[
            {
                "delay": 0,
                "targets": [
                    {
                        "target_type": 2,
                        "target_id": user1["users"][0]["username"],
                    },
                    {
                        "target_type": 1,
                        "target_id": example_schedule["id"],
                    },
                ],
            },
            {
                "delay": 5,
                "targets": [
                    {
                        "target_type": 2,
                        "target_id": "",
                    },
                    {
                        "target_type": 2,
                        "target_id": "",
                    },
                ],
            },
        ],
        move_to_next=True,
        repeat_policy=8)
    
    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.NewEsp(ctx, "esp1", &zenduty.EspArgs{
    			Name:        pulumi.String("Infra escalation policy"),
    			TeamId:      pulumi.String(""),
    			Summary:     pulumi.String("This is the summary for the new ESP"),
    			Description: pulumi.String("This is the description for the new ESP"),
    			Rules: zenduty.EspRuleArray{
    				&zenduty.EspRuleArgs{
    					Delay: pulumi.Float64(0),
    					Targets: zenduty.EspRuleTargetArray{
    						&zenduty.EspRuleTargetArgs{
    							TargetType: pulumi.Float64(2),
    							TargetId:   pulumi.Any(user1.Users[0].Username),
    						},
    						&zenduty.EspRuleTargetArgs{
    							TargetType: pulumi.Float64(1),
    							TargetId:   pulumi.Any(exampleSchedule.Id),
    						},
    					},
    				},
    				&zenduty.EspRuleArgs{
    					Delay: pulumi.Float64(5),
    					Targets: zenduty.EspRuleTargetArray{
    						&zenduty.EspRuleTargetArgs{
    							TargetType: pulumi.Float64(2),
    							TargetId:   pulumi.String(""),
    						},
    						&zenduty.EspRuleTargetArgs{
    							TargetType: pulumi.Float64(2),
    							TargetId:   pulumi.String(""),
    						},
    					},
    				},
    			},
    			MoveToNext:   pulumi.Bool(true),
    			RepeatPolicy: pulumi.Float64(8),
    		})
    		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 esp1 = new Zenduty.Esp("esp1", new()
        {
            Name = "Infra escalation policy",
            TeamId = "",
            Summary = "This is the summary for the new ESP",
            Description = "This is the description for the new ESP",
            Rules = new[]
            {
                new Zenduty.Inputs.EspRuleArgs
                {
                    Delay = 0,
                    Targets = new[]
                    {
                        new Zenduty.Inputs.EspRuleTargetArgs
                        {
                            TargetType = 2,
                            TargetId = user1.Users[0].Username,
                        },
                        new Zenduty.Inputs.EspRuleTargetArgs
                        {
                            TargetType = 1,
                            TargetId = exampleSchedule.Id,
                        },
                    },
                },
                new Zenduty.Inputs.EspRuleArgs
                {
                    Delay = 5,
                    Targets = new[]
                    {
                        new Zenduty.Inputs.EspRuleTargetArgs
                        {
                            TargetType = 2,
                            TargetId = "",
                        },
                        new Zenduty.Inputs.EspRuleTargetArgs
                        {
                            TargetType = 2,
                            TargetId = "",
                        },
                    },
                },
            },
            MoveToNext = true,
            RepeatPolicy = 8,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.zenduty.Esp;
    import com.pulumi.zenduty.EspArgs;
    import com.pulumi.zenduty.inputs.EspRuleArgs;
    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 esp1 = new Esp("esp1", EspArgs.builder()
                .name("Infra escalation policy")
                .teamId("")
                .summary("This is the summary for the new ESP")
                .description("This is the description for the new ESP")
                .rules(            
                    EspRuleArgs.builder()
                        .delay(0.0)
                        .targets(                    
                            EspRuleTargetArgs.builder()
                                .targetType(2.0)
                                .targetId(user1.users()[0].username())
                                .build(),
                            EspRuleTargetArgs.builder()
                                .targetType(1.0)
                                .targetId(exampleSchedule.id())
                                .build())
                        .build(),
                    EspRuleArgs.builder()
                        .delay(5.0)
                        .targets(                    
                            EspRuleTargetArgs.builder()
                                .targetType(2.0)
                                .targetId("")
                                .build(),
                            EspRuleTargetArgs.builder()
                                .targetType(2.0)
                                .targetId("")
                                .build())
                        .build())
                .moveToNext(true)
                .repeatPolicy(8.0)
                .build());
    
        }
    }
    
    resources:
      esp1:
        type: zenduty:Esp
        properties:
          name: Infra escalation policy
          teamId: ""
          summary: This is the summary for the new ESP
          description: This is the description for the new ESP
          rules:
            - delay: 0
              targets:
                - targetType: 2
                  targetId: ${user1.users[0].username}
                - targetType: 1
                  targetId: ${exampleSchedule.id}
            - delay: 5
              targets:
                - targetType: 2
                  targetId: ""
                - targetType: 2
                  targetId: ""
          moveToNext: true
          repeatPolicy: 8
    
    Example coming soon!
    

    DataTypes

    Required Fields:

    • name (String)
    • team_id (String)

    Optional

    • description (String)
    • move_to_next (Boolean)
    • repeat_policy (Number) > range from 0 to 10
    • rules (Block List) (see above rules schema)
    • summary (String)

    Create Esp Resource

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

    Constructor syntax

    new Esp(name: string, args: EspArgs, opts?: CustomResourceOptions);
    @overload
    def Esp(resource_name: str,
            args: EspArgs,
            opts: Optional[ResourceOptions] = None)
    
    @overload
    def Esp(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            team_id: Optional[str] = None,
            description: Optional[str] = None,
            esp_id: Optional[str] = None,
            global_ep: Optional[bool] = None,
            move_to_next: Optional[bool] = None,
            name: Optional[str] = None,
            repeat_policy: Optional[float] = None,
            rules: Optional[Sequence[EspRuleArgs]] = None,
            summary: Optional[str] = None)
    func NewEsp(ctx *Context, name string, args EspArgs, opts ...ResourceOption) (*Esp, error)
    public Esp(string name, EspArgs args, CustomResourceOptions? opts = null)
    public Esp(String name, EspArgs args)
    public Esp(String name, EspArgs args, CustomResourceOptions options)
    
    type: zenduty:Esp
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "zenduty_esp" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args EspArgs
    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 EspArgs
    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 EspArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EspArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EspArgs
    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 espResource = new Zenduty.Esp("espResource", new()
    {
        TeamId = "string",
        Description = "string",
        EspId = "string",
        GlobalEp = false,
        MoveToNext = false,
        Name = "string",
        RepeatPolicy = 0.0,
        Rules = new[]
        {
            new Zenduty.Inputs.EspRuleArgs
            {
                Delay = 0.0,
                Position = 0.0,
                Targets = new[]
                {
                    new Zenduty.Inputs.EspRuleTargetArgs
                    {
                        Position = 0.0,
                        TargetId = "string",
                        TargetType = 0.0,
                    },
                },
                UniqueId = "string",
            },
        },
        Summary = "string",
    });
    
    example, err := zenduty.NewEsp(ctx, "espResource", &zenduty.EspArgs{
    	TeamId:       pulumi.String("string"),
    	Description:  pulumi.String("string"),
    	EspId:        pulumi.String("string"),
    	GlobalEp:     pulumi.Bool(false),
    	MoveToNext:   pulumi.Bool(false),
    	Name:         pulumi.String("string"),
    	RepeatPolicy: pulumi.Float64(0),
    	Rules: zenduty.EspRuleArray{
    		&zenduty.EspRuleArgs{
    			Delay:    pulumi.Float64(0),
    			Position: pulumi.Float64(0),
    			Targets: zenduty.EspRuleTargetArray{
    				&zenduty.EspRuleTargetArgs{
    					Position:   pulumi.Float64(0),
    					TargetId:   pulumi.String("string"),
    					TargetType: pulumi.Float64(0),
    				},
    			},
    			UniqueId: pulumi.String("string"),
    		},
    	},
    	Summary: pulumi.String("string"),
    })
    
    resource "zenduty_esp" "espResource" {
      lifecycle {
        create_before_destroy = true
      }
      team_id       = "string"
      description   = "string"
      esp_id        = "string"
      global_ep     = false
      move_to_next  = false
      name          = "string"
      repeat_policy = 0
      rules {
        delay    = 0
        position = 0
        targets {
          position    = 0
          target_id   = "string"
          target_type = 0
        }
        unique_id = "string"
      }
      summary = "string"
    }
    
    var espResource = new Esp("espResource", EspArgs.builder()
        .teamId("string")
        .description("string")
        .espId("string")
        .globalEp(false)
        .moveToNext(false)
        .name("string")
        .repeatPolicy(0.0)
        .rules(EspRuleArgs.builder()
            .delay(0.0)
            .position(0.0)
            .targets(EspRuleTargetArgs.builder()
                .position(0.0)
                .targetId("string")
                .targetType(0.0)
                .build())
            .uniqueId("string")
            .build())
        .summary("string")
        .build());
    
    esp_resource = zenduty.Esp("espResource",
        team_id="string",
        description="string",
        esp_id="string",
        global_ep=False,
        move_to_next=False,
        name="string",
        repeat_policy=float(0),
        rules=[{
            "delay": float(0),
            "position": float(0),
            "targets": [{
                "position": float(0),
                "target_id": "string",
                "target_type": float(0),
            }],
            "unique_id": "string",
        }],
        summary="string")
    
    const espResource = new zenduty.Esp("espResource", {
        teamId: "string",
        description: "string",
        espId: "string",
        globalEp: false,
        moveToNext: false,
        name: "string",
        repeatPolicy: 0,
        rules: [{
            delay: 0,
            position: 0,
            targets: [{
                position: 0,
                targetId: "string",
                targetType: 0,
            }],
            uniqueId: "string",
        }],
        summary: "string",
    });
    
    type: zenduty:Esp
    properties:
        description: string
        espId: string
        globalEp: false
        moveToNext: false
        name: string
        repeatPolicy: 0
        rules:
            - delay: 0
              position: 0
              targets:
                - position: 0
                  targetId: string
                  targetType: 0
              uniqueId: string
        summary: string
        teamId: string
    

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

    TeamId string
    The unique_id of the team to create the escalation policy in.
    Description string
    The description of the escalation policy
    EspId string
    The ID of the Escalation Policy.
    GlobalEp bool
    Create the policy as a global (account-level) escalation policy instead of a team-level one. Defaults to false.
    MoveToNext bool
    The move_to_next of the escalation policy.
    Name string
    The name of the escalation policy.
    RepeatPolicy double
    The number of times to repeat the escalation policy, ranging from 0 to 10.
    Rules List<EspRule>
    The rules of the escalation policy. (see above for nested schema)
    Summary string
    The summary of the escalation policy.
    TeamId string
    The unique_id of the team to create the escalation policy in.
    Description string
    The description of the escalation policy
    EspId string
    The ID of the Escalation Policy.
    GlobalEp bool
    Create the policy as a global (account-level) escalation policy instead of a team-level one. Defaults to false.
    MoveToNext bool
    The move_to_next of the escalation policy.
    Name string
    The name of the escalation policy.
    RepeatPolicy float64
    The number of times to repeat the escalation policy, ranging from 0 to 10.
    Rules []EspRuleArgs
    The rules of the escalation policy. (see above for nested schema)
    Summary string
    The summary of the escalation policy.
    team_id string
    The unique_id of the team to create the escalation policy in.
    description string
    The description of the escalation policy
    esp_id string
    The ID of the Escalation Policy.
    global_ep bool
    Create the policy as a global (account-level) escalation policy instead of a team-level one. Defaults to false.
    move_to_next bool
    The move_to_next of the escalation policy.
    name string
    The name of the escalation policy.
    repeat_policy number
    The number of times to repeat the escalation policy, ranging from 0 to 10.
    rules list(object)
    The rules of the escalation policy. (see above for nested schema)
    summary string
    The summary of the escalation policy.
    teamId String
    The unique_id of the team to create the escalation policy in.
    description String
    The description of the escalation policy
    espId String
    The ID of the Escalation Policy.
    globalEp Boolean
    Create the policy as a global (account-level) escalation policy instead of a team-level one. Defaults to false.
    moveToNext Boolean
    The move_to_next of the escalation policy.
    name String
    The name of the escalation policy.
    repeatPolicy Double
    The number of times to repeat the escalation policy, ranging from 0 to 10.
    rules List<EspRule>
    The rules of the escalation policy. (see above for nested schema)
    summary String
    The summary of the escalation policy.
    teamId string
    The unique_id of the team to create the escalation policy in.
    description string
    The description of the escalation policy
    espId string
    The ID of the Escalation Policy.
    globalEp boolean
    Create the policy as a global (account-level) escalation policy instead of a team-level one. Defaults to false.
    moveToNext boolean
    The move_to_next of the escalation policy.
    name string
    The name of the escalation policy.
    repeatPolicy number
    The number of times to repeat the escalation policy, ranging from 0 to 10.
    rules EspRule[]
    The rules of the escalation policy. (see above for nested schema)
    summary string
    The summary of the escalation policy.
    team_id str
    The unique_id of the team to create the escalation policy in.
    description str
    The description of the escalation policy
    esp_id str
    The ID of the Escalation Policy.
    global_ep bool
    Create the policy as a global (account-level) escalation policy instead of a team-level one. Defaults to false.
    move_to_next bool
    The move_to_next of the escalation policy.
    name str
    The name of the escalation policy.
    repeat_policy float
    The number of times to repeat the escalation policy, ranging from 0 to 10.
    rules Sequence[EspRuleArgs]
    The rules of the escalation policy. (see above for nested schema)
    summary str
    The summary of the escalation policy.
    teamId String
    The unique_id of the team to create the escalation policy in.
    description String
    The description of the escalation policy
    espId String
    The ID of the Escalation Policy.
    globalEp Boolean
    Create the policy as a global (account-level) escalation policy instead of a team-level one. Defaults to false.
    moveToNext Boolean
    The move_to_next of the escalation policy.
    name String
    The name of the escalation policy.
    repeatPolicy Number
    The number of times to repeat the escalation policy, ranging from 0 to 10.
    rules List<Property Map>
    The rules of the escalation policy. (see above for nested schema)
    summary String
    The summary of the escalation policy.

    Outputs

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

    Get an existing Esp 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?: EspState, opts?: CustomResourceOptions): Esp
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            esp_id: Optional[str] = None,
            global_ep: Optional[bool] = None,
            move_to_next: Optional[bool] = None,
            name: Optional[str] = None,
            repeat_policy: Optional[float] = None,
            rules: Optional[Sequence[EspRuleArgs]] = None,
            summary: Optional[str] = None,
            team_id: Optional[str] = None) -> Esp
    func GetEsp(ctx *Context, name string, id IDInput, state *EspState, opts ...ResourceOption) (*Esp, error)
    public static Esp Get(string name, Input<string> id, EspState? state, CustomResourceOptions? opts = null)
    public static Esp get(String name, Output<String> id, EspState state, CustomResourceOptions options)
    resources:  _:    type: zenduty:Esp    get:      id: ${id}
    import {
      to = zenduty_esp.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:
    Description string
    The description of the escalation policy
    EspId string
    The ID of the Escalation Policy.
    GlobalEp bool
    Create the policy as a global (account-level) escalation policy instead of a team-level one. Defaults to false.
    MoveToNext bool
    The move_to_next of the escalation policy.
    Name string
    The name of the escalation policy.
    RepeatPolicy double
    The number of times to repeat the escalation policy, ranging from 0 to 10.
    Rules List<EspRule>
    The rules of the escalation policy. (see above for nested schema)
    Summary string
    The summary of the escalation policy.
    TeamId string
    The unique_id of the team to create the escalation policy in.
    Description string
    The description of the escalation policy
    EspId string
    The ID of the Escalation Policy.
    GlobalEp bool
    Create the policy as a global (account-level) escalation policy instead of a team-level one. Defaults to false.
    MoveToNext bool
    The move_to_next of the escalation policy.
    Name string
    The name of the escalation policy.
    RepeatPolicy float64
    The number of times to repeat the escalation policy, ranging from 0 to 10.
    Rules []EspRuleArgs
    The rules of the escalation policy. (see above for nested schema)
    Summary string
    The summary of the escalation policy.
    TeamId string
    The unique_id of the team to create the escalation policy in.
    description string
    The description of the escalation policy
    esp_id string
    The ID of the Escalation Policy.
    global_ep bool
    Create the policy as a global (account-level) escalation policy instead of a team-level one. Defaults to false.
    move_to_next bool
    The move_to_next of the escalation policy.
    name string
    The name of the escalation policy.
    repeat_policy number
    The number of times to repeat the escalation policy, ranging from 0 to 10.
    rules list(object)
    The rules of the escalation policy. (see above for nested schema)
    summary string
    The summary of the escalation policy.
    team_id string
    The unique_id of the team to create the escalation policy in.
    description String
    The description of the escalation policy
    espId String
    The ID of the Escalation Policy.
    globalEp Boolean
    Create the policy as a global (account-level) escalation policy instead of a team-level one. Defaults to false.
    moveToNext Boolean
    The move_to_next of the escalation policy.
    name String
    The name of the escalation policy.
    repeatPolicy Double
    The number of times to repeat the escalation policy, ranging from 0 to 10.
    rules List<EspRule>
    The rules of the escalation policy. (see above for nested schema)
    summary String
    The summary of the escalation policy.
    teamId String
    The unique_id of the team to create the escalation policy in.
    description string
    The description of the escalation policy
    espId string
    The ID of the Escalation Policy.
    globalEp boolean
    Create the policy as a global (account-level) escalation policy instead of a team-level one. Defaults to false.
    moveToNext boolean
    The move_to_next of the escalation policy.
    name string
    The name of the escalation policy.
    repeatPolicy number
    The number of times to repeat the escalation policy, ranging from 0 to 10.
    rules EspRule[]
    The rules of the escalation policy. (see above for nested schema)
    summary string
    The summary of the escalation policy.
    teamId string
    The unique_id of the team to create the escalation policy in.
    description str
    The description of the escalation policy
    esp_id str
    The ID of the Escalation Policy.
    global_ep bool
    Create the policy as a global (account-level) escalation policy instead of a team-level one. Defaults to false.
    move_to_next bool
    The move_to_next of the escalation policy.
    name str
    The name of the escalation policy.
    repeat_policy float
    The number of times to repeat the escalation policy, ranging from 0 to 10.
    rules Sequence[EspRuleArgs]
    The rules of the escalation policy. (see above for nested schema)
    summary str
    The summary of the escalation policy.
    team_id str
    The unique_id of the team to create the escalation policy in.
    description String
    The description of the escalation policy
    espId String
    The ID of the Escalation Policy.
    globalEp Boolean
    Create the policy as a global (account-level) escalation policy instead of a team-level one. Defaults to false.
    moveToNext Boolean
    The move_to_next of the escalation policy.
    name String
    The name of the escalation policy.
    repeatPolicy Number
    The number of times to repeat the escalation policy, ranging from 0 to 10.
    rules List<Property Map>
    The rules of the escalation policy. (see above for nested schema)
    summary String
    The summary of the escalation policy.
    teamId String
    The unique_id of the team to create the escalation policy in.

    Supporting Types

    EspRule, EspRuleArgs

    Delay double
    The delay of the rule in minutes.
    Position double
    Targets List<EspRuleTarget>
    )
    UniqueId string
    Delay float64
    The delay of the rule in minutes.
    Position float64
    Targets []EspRuleTarget
    )
    UniqueId string
    delay number
    The delay of the rule in minutes.
    position number
    targets list(object)
    )
    unique_id string
    delay Double
    The delay of the rule in minutes.
    position Double
    targets List<EspRuleTarget>
    )
    uniqueId String
    delay number
    The delay of the rule in minutes.
    position number
    targets EspRuleTarget[]
    )
    uniqueId string
    delay float
    The delay of the rule in minutes.
    position float
    targets Sequence[EspRuleTarget]
    )
    unique_id str
    delay Number
    The delay of the rule in minutes.
    position Number
    targets List<Property Map>
    )
    uniqueId String

    EspRuleTarget, EspRuleTargetArgs

    Position double
    TargetId string
    username of the user to assign. or unique_id of schedule
    TargetType double
    values are 1 for schedule 2 for user
    Position float64
    TargetId string
    username of the user to assign. or unique_id of schedule
    TargetType float64
    values are 1 for schedule 2 for user
    position number
    target_id string
    username of the user to assign. or unique_id of schedule
    target_type number
    values are 1 for schedule 2 for user
    position Double
    targetId String
    username of the user to assign. or unique_id of schedule
    targetType Double
    values are 1 for schedule 2 for user
    position number
    targetId string
    username of the user to assign. or unique_id of schedule
    targetType number
    values are 1 for schedule 2 for user
    position float
    target_id str
    username of the user to assign. or unique_id of schedule
    target_type float
    values are 1 for schedule 2 for user
    position Number
    targetId String
    username of the user to assign. or unique_id of schedule
    targetType Number
    values are 1 for schedule 2 for user

    Import

    Escalation Policy can be imported using the team_id(ie. unique_id of the team) and esp_id(ie. unique_id of the escalation policy), e.g.

    hcl

    resource “zenduty_esp” “esp1” {

    }

    $ pulumi import zenduty:index/esp:Esp esp1 team_id/esp_id`
    

    $ terraform state show zenduty_esp.esp1

    * copy the output data and paste inside zenduty_esp.esp1 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