1. Packages
  2. Zenduty Provider
  3. API Docs
  4. getEsp
zenduty 1.0.4 published on Wednesday, Apr 2, 2025 by zenduty

zenduty.getEsp

Explore with Pulumi AI

zenduty 1.0.4 published on Wednesday, Apr 2, 2025 by zenduty
import * as pulumi from "@pulumi/pulumi";
import * as zenduty from "@pulumi/zenduty";

const exampleEsps = zenduty.getEsp({
    teamId: "",
});
Copy
import pulumi
import pulumi_zenduty as zenduty

example_esps = zenduty.get_esp(team_id="")
Copy
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.LookupEsp(ctx, &zenduty.LookupEspArgs{
			TeamId: "",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Zenduty = Pulumi.Zenduty;

return await Deployment.RunAsync(() => 
{
    var exampleEsps = Zenduty.GetEsp.Invoke(new()
    {
        TeamId = "",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zenduty.ZendutyFunctions;
import com.pulumi.zenduty.inputs.GetEspArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var exampleEsps = ZendutyFunctions.getEsp(GetEspArgs.builder()
            .teamId("")
            .build());

    }
}
Copy
variables:
  exampleEsps:
    fn::invoke:
      function: zenduty:getEsp
      arguments:
        teamId: ""
Copy
import * as pulumi from "@pulumi/pulumi";
import * as zenduty from "@pulumi/zenduty";

const exampleEsp = zenduty.getEsp({
    espId: "",
    teamId: "",
});
Copy
import pulumi
import pulumi_zenduty as zenduty

example_esp = zenduty.get_esp(esp_id="",
    team_id="")
Copy
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.LookupEsp(ctx, &zenduty.LookupEspArgs{
			EspId:  pulumi.StringRef(""),
			TeamId: "",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Zenduty = Pulumi.Zenduty;

return await Deployment.RunAsync(() => 
{
    var exampleEsp = Zenduty.GetEsp.Invoke(new()
    {
        EspId = "",
        TeamId = "",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zenduty.ZendutyFunctions;
import com.pulumi.zenduty.inputs.GetEspArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var exampleEsp = ZendutyFunctions.getEsp(GetEspArgs.builder()
            .espId("")
            .teamId("")
            .build());

    }
}
Copy
variables:
  exampleEsp:
    fn::invoke:
      function: zenduty:getEsp
      arguments:
        espId: ""
        teamId: ""
Copy
import * as pulumi from "@pulumi/pulumi";

export const esps = data.zenduty_esp.example_esp.escalation_policies;
Copy
import pulumi

pulumi.export("esps", data["zenduty_esp"]["example_esp"]["escalation_policies"])
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ctx.Export("esps", data.Zenduty_esp.Example_esp.Escalation_policies)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;

return await Deployment.RunAsync(() => 
{
    return new Dictionary<string, object?>
    {
        ["esps"] = data.Zenduty_esp.Example_esp.Escalation_policies,
    };
});
Copy
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) {
        ctx.export("esps", data.zenduty_esp().example_esp().escalation_policies());
    }
}
Copy
outputs:
  esps: ${data.zenduty_esp.example_esp.escalation_policies}
Copy

Using getEsp

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getEsp(args: GetEspArgs, opts?: InvokeOptions): Promise<GetEspResult>
function getEspOutput(args: GetEspOutputArgs, opts?: InvokeOptions): Output<GetEspResult>
Copy
def get_esp(esp_id: Optional[str] = None,
            id: Optional[str] = None,
            team_id: Optional[str] = None,
            opts: Optional[InvokeOptions] = None) -> GetEspResult
def get_esp_output(esp_id: Optional[pulumi.Input[str]] = None,
            id: Optional[pulumi.Input[str]] = None,
            team_id: Optional[pulumi.Input[str]] = None,
            opts: Optional[InvokeOptions] = None) -> Output[GetEspResult]
Copy
func LookupEsp(ctx *Context, args *LookupEspArgs, opts ...InvokeOption) (*LookupEspResult, error)
func LookupEspOutput(ctx *Context, args *LookupEspOutputArgs, opts ...InvokeOption) LookupEspResultOutput
Copy

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

public static class GetEsp 
{
    public static Task<GetEspResult> InvokeAsync(GetEspArgs args, InvokeOptions? opts = null)
    public static Output<GetEspResult> Invoke(GetEspInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetEspResult> getEsp(GetEspArgs args, InvokeOptions options)
public static Output<GetEspResult> getEsp(GetEspArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: zenduty:index/getEsp:getEsp
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

TeamId This property is required. string
The UniqueID of the team to query.
EspId string
The UniqueID of the ESP to query.along with team id
Id string
TeamId This property is required. string
The UniqueID of the team to query.
EspId string
The UniqueID of the ESP to query.along with team id
Id string
teamId This property is required. String
The UniqueID of the team to query.
espId String
The UniqueID of the ESP to query.along with team id
id String
teamId This property is required. string
The UniqueID of the team to query.
espId string
The UniqueID of the ESP to query.along with team id
id string
team_id This property is required. str
The UniqueID of the team to query.
esp_id str
The UniqueID of the ESP to query.along with team id
id str
teamId This property is required. String
The UniqueID of the team to query.
espId String
The UniqueID of the ESP to query.along with team id
id String

getEsp Result

The following output properties are available:

Supporting Types

GetEspEscalationPolicy

Description This property is required. string
The description of the ESP.
GlobalEp This property is required. bool
MoveToNext This property is required. bool
(bool) - Whether the ESP should move to the next ESP.
Name This property is required. string
The name of the ESP.
RepeatPolicy This property is required. double
Number of times the ESP should repeat.
Rules This property is required. List<GetEspEscalationPolicyRule>
The list of rules that the ESP has. The following attributes are exported as list of maps: delay - The delay of the rule in minutes. targets - The list of targets that the rule applies to. target_type - The type of the target. target_id - The unique_id of the target.
Summary This property is required. string
Team This property is required. string
The unique_id of team that the ESP belongs to.
UniqueId This property is required. string
The UniqueID of the ESP.
Description This property is required. string
The description of the ESP.
GlobalEp This property is required. bool
MoveToNext This property is required. bool
(bool) - Whether the ESP should move to the next ESP.
Name This property is required. string
The name of the ESP.
RepeatPolicy This property is required. float64
Number of times the ESP should repeat.
Rules This property is required. []GetEspEscalationPolicyRule
The list of rules that the ESP has. The following attributes are exported as list of maps: delay - The delay of the rule in minutes. targets - The list of targets that the rule applies to. target_type - The type of the target. target_id - The unique_id of the target.
Summary This property is required. string
Team This property is required. string
The unique_id of team that the ESP belongs to.
UniqueId This property is required. string
The UniqueID of the ESP.
description This property is required. String
The description of the ESP.
globalEp This property is required. Boolean
moveToNext This property is required. Boolean
(bool) - Whether the ESP should move to the next ESP.
name This property is required. String
The name of the ESP.
repeatPolicy This property is required. Double
Number of times the ESP should repeat.
rules This property is required. List<GetEspEscalationPolicyRule>
The list of rules that the ESP has. The following attributes are exported as list of maps: delay - The delay of the rule in minutes. targets - The list of targets that the rule applies to. target_type - The type of the target. target_id - The unique_id of the target.
summary This property is required. String
team This property is required. String
The unique_id of team that the ESP belongs to.
uniqueId This property is required. String
The UniqueID of the ESP.
description This property is required. string
The description of the ESP.
globalEp This property is required. boolean
moveToNext This property is required. boolean
(bool) - Whether the ESP should move to the next ESP.
name This property is required. string
The name of the ESP.
repeatPolicy This property is required. number
Number of times the ESP should repeat.
rules This property is required. GetEspEscalationPolicyRule[]
The list of rules that the ESP has. The following attributes are exported as list of maps: delay - The delay of the rule in minutes. targets - The list of targets that the rule applies to. target_type - The type of the target. target_id - The unique_id of the target.
summary This property is required. string
team This property is required. string
The unique_id of team that the ESP belongs to.
uniqueId This property is required. string
The UniqueID of the ESP.
description This property is required. str
The description of the ESP.
global_ep This property is required. bool
move_to_next This property is required. bool
(bool) - Whether the ESP should move to the next ESP.
name This property is required. str
The name of the ESP.
repeat_policy This property is required. float
Number of times the ESP should repeat.
rules This property is required. Sequence[GetEspEscalationPolicyRule]
The list of rules that the ESP has. The following attributes are exported as list of maps: delay - The delay of the rule in minutes. targets - The list of targets that the rule applies to. target_type - The type of the target. target_id - The unique_id of the target.
summary This property is required. str
team This property is required. str
The unique_id of team that the ESP belongs to.
unique_id This property is required. str
The UniqueID of the ESP.
description This property is required. String
The description of the ESP.
globalEp This property is required. Boolean
moveToNext This property is required. Boolean
(bool) - Whether the ESP should move to the next ESP.
name This property is required. String
The name of the ESP.
repeatPolicy This property is required. Number
Number of times the ESP should repeat.
rules This property is required. List<Property Map>
The list of rules that the ESP has. The following attributes are exported as list of maps: delay - The delay of the rule in minutes. targets - The list of targets that the rule applies to. target_type - The type of the target. target_id - The unique_id of the target.
summary This property is required. String
team This property is required. String
The unique_id of team that the ESP belongs to.
uniqueId This property is required. String
The UniqueID of the ESP.

GetEspEscalationPolicyRule

Delay This property is required. double
Position This property is required. double
Targets This property is required. List<GetEspEscalationPolicyRuleTarget>
UniqueId This property is required. string
The UniqueID of the ESP.
Delay This property is required. float64
Position This property is required. float64
Targets This property is required. []GetEspEscalationPolicyRuleTarget
UniqueId This property is required. string
The UniqueID of the ESP.
delay This property is required. Double
position This property is required. Double
targets This property is required. List<GetEspEscalationPolicyRuleTarget>
uniqueId This property is required. String
The UniqueID of the ESP.
delay This property is required. number
position This property is required. number
targets This property is required. GetEspEscalationPolicyRuleTarget[]
uniqueId This property is required. string
The UniqueID of the ESP.
delay This property is required. float
position This property is required. float
targets This property is required. Sequence[GetEspEscalationPolicyRuleTarget]
unique_id This property is required. str
The UniqueID of the ESP.
delay This property is required. Number
position This property is required. Number
targets This property is required. List<Property Map>
uniqueId This property is required. String
The UniqueID of the ESP.

GetEspEscalationPolicyRuleTarget

TargetId This property is required. string
TargetType This property is required. double
TargetId This property is required. string
TargetType This property is required. float64
targetId This property is required. String
targetType This property is required. Double
targetId This property is required. string
targetType This property is required. number
target_id This property is required. str
target_type This property is required. float
targetId This property is required. String
targetType This property is required. Number

Package Details

Repository
zenduty zenduty/terraform-provider-zenduty
License
Notes
This Pulumi package is based on the zenduty Terraform Provider.
zenduty 1.0.4 published on Wednesday, Apr 2, 2025 by zenduty