zenduty 1.0.3 published on Monday, Mar 24, 2025 by zenduty
zenduty.getEsp
Explore with Pulumi AI
import * as pulumi from "@pulumi/pulumi";
import * as zenduty from "@pulumi/zenduty";
const exampleEsps = zenduty.getEsp({
    teamId: "",
});
import pulumi
import pulumi_zenduty as zenduty
example_esps = zenduty.get_esp(team_id="")
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
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Zenduty = Pulumi.Zenduty;
return await Deployment.RunAsync(() => 
{
    var exampleEsps = Zenduty.GetEsp.Invoke(new()
    {
        TeamId = "",
    });
});
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());
    }
}
variables:
  exampleEsps:
    fn::invoke:
      function: zenduty:getEsp
      arguments:
        teamId: ""
import * as pulumi from "@pulumi/pulumi";
import * as zenduty from "@pulumi/zenduty";
const exampleEsp = zenduty.getEsp({
    espId: "",
    teamId: "",
});
import pulumi
import pulumi_zenduty as zenduty
example_esp = zenduty.get_esp(esp_id="",
    team_id="")
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
	})
}
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 = "",
    });
});
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());
    }
}
variables:
  exampleEsp:
    fn::invoke:
      function: zenduty:getEsp
      arguments:
        espId: ""
        teamId: ""
import * as pulumi from "@pulumi/pulumi";
export const esps = data.zenduty_esp.example_esp.escalation_policies;
import pulumi
pulumi.export("esps", data["zenduty_esp"]["example_esp"]["escalation_policies"])
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
	})
}
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,
    };
});
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());
    }
}
outputs:
  esps: ${data.zenduty_esp.example_esp.escalation_policies}
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>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]func LookupEsp(ctx *Context, args *LookupEspArgs, opts ...InvokeOption) (*LookupEspResult, error)
func LookupEspOutput(ctx *Context, args *LookupEspOutputArgs, opts ...InvokeOption) LookupEspResultOutput> 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)
}public static CompletableFuture<GetEspResult> getEsp(GetEspArgs args, InvokeOptions options)
public static Output<GetEspResult> getEsp(GetEspArgs args, InvokeOptions options)
fn::invoke:
  function: zenduty:index/getEsp:getEsp
  arguments:
    # arguments dictionaryThe following arguments are supported:
getEsp Result
The following output properties are available:
- EscalationPolicies List<GetEsp Escalation Policy> 
- Id string
- TeamId string
- EspId string
- EscalationPolicies []GetEsp Escalation Policy 
- Id string
- TeamId string
- EspId string
- escalationPolicies List<GetEsp Escalation Policy> 
- id String
- teamId String
- espId String
- escalationPolicies GetEsp Escalation Policy[] 
- id string
- teamId string
- espId string
- escalationPolicies List<Property Map>
- id String
- teamId String
- espId String
Supporting Types
GetEspEscalationPolicy   
- Description string
- The description of the ESP.
- GlobalEp bool
- MoveTo boolNext 
- (bool) - Whether the ESP should move to the next ESP.
- Name string
- The name of the ESP.
- RepeatPolicy double
- Number of times the ESP should repeat.
- Rules
List<GetEsp Escalation Policy Rule> 
- 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 string
- Team string
- The unique_id of team that the ESP belongs to.
- UniqueId string
- The UniqueID of the ESP.
- Description string
- The description of the ESP.
- GlobalEp bool
- MoveTo boolNext 
- (bool) - Whether the ESP should move to the next ESP.
- Name string
- The name of the ESP.
- RepeatPolicy float64
- Number of times the ESP should repeat.
- Rules
[]GetEsp Escalation Policy Rule 
- 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 string
- Team string
- The unique_id of team that the ESP belongs to.
- UniqueId string
- The UniqueID of the ESP.
- description String
- The description of the ESP.
- globalEp Boolean
- moveTo BooleanNext 
- (bool) - Whether the ESP should move to the next ESP.
- name String
- The name of the ESP.
- repeatPolicy Double
- Number of times the ESP should repeat.
- rules
List<GetEsp Escalation Policy Rule> 
- 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 String
- team String
- The unique_id of team that the ESP belongs to.
- uniqueId String
- The UniqueID of the ESP.
- description string
- The description of the ESP.
- globalEp boolean
- moveTo booleanNext 
- (bool) - Whether the ESP should move to the next ESP.
- name string
- The name of the ESP.
- repeatPolicy number
- Number of times the ESP should repeat.
- rules
GetEsp Escalation Policy Rule[] 
- 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 string
- team string
- The unique_id of team that the ESP belongs to.
- uniqueId string
- The UniqueID of the ESP.
- description str
- The description of the ESP.
- global_ep bool
- move_to_ boolnext 
- (bool) - Whether the ESP should move to the next ESP.
- name str
- The name of the ESP.
- repeat_policy float
- Number of times the ESP should repeat.
- rules
Sequence[GetEsp Escalation Policy Rule] 
- 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 str
- team str
- The unique_id of team that the ESP belongs to.
- unique_id str
- The UniqueID of the ESP.
- description String
- The description of the ESP.
- globalEp Boolean
- moveTo BooleanNext 
- (bool) - Whether the ESP should move to the next ESP.
- name String
- The name of the ESP.
- repeatPolicy Number
- Number of times the ESP should repeat.
- rules 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 String
- team String
- The unique_id of team that the ESP belongs to.
- uniqueId String
- The UniqueID of the ESP.
GetEspEscalationPolicyRule    
- Delay double
- Position double
- Targets
List<GetEsp Escalation Policy Rule Target> 
- UniqueId string
- The UniqueID of the ESP.
- Delay float64
- Position float64
- Targets
[]GetEsp Escalation Policy Rule Target 
- UniqueId string
- The UniqueID of the ESP.
- delay Double
- position Double
- targets
List<GetEsp Escalation Policy Rule Target> 
- uniqueId String
- The UniqueID of the ESP.
- delay number
- position number
- targets
GetEsp Escalation Policy Rule Target[] 
- uniqueId string
- The UniqueID of the ESP.
- delay float
- position float
- targets
Sequence[GetEsp Escalation Policy Rule Target] 
- unique_id str
- The UniqueID of the ESP.
- delay Number
- position Number
- targets List<Property Map>
- uniqueId String
- The UniqueID of the ESP.
GetEspEscalationPolicyRuleTarget     
- TargetId string
- TargetType double
- TargetId string
- TargetType float64
- targetId String
- targetType Double
- targetId string
- targetType number
- target_id str
- target_type float
- targetId String
- targetType Number
Package Details
- Repository
- zenduty zenduty/terraform-provider-zenduty
- License
- Notes
- This Pulumi package is based on the zendutyTerraform Provider.