Viewing docs for zenduty 2.0.0
published on Friday, Aug 14, 2026 by zenduty
published on Friday, Aug 14, 2026 by zenduty
Viewing docs for zenduty 2.0.0
published on Friday, Aug 14, 2026 by zenduty
published on Friday, Aug 14, 2026 by zenduty
zenduty.Sla lists the SLAs of a team.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as zenduty from "@pulumi/zenduty";
const teamSlas = zenduty.getSla({
teamId: exampleteam.id,
});
export const slaNames = teamSlas.then(teamSlas => teamSlas.slas.map(__item => __item.name));
import pulumi
import pulumi_zenduty as zenduty
team_slas = zenduty.get_sla(team_id=exampleteam["id"])
pulumi.export("slaNames", [__item.name for __item in team_slas.slas])
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 {
teamSlas, err := zenduty.LookupSla(ctx, &zenduty.LookupSlaArgs{
TeamId: exampleteam.Id,
}, nil);
if err != nil {
return err
}
ctx.Export("slaNames", pulumi.StringArray(%!v(PANIC=Format method: fatal: A failure has occurred: unlowered splat expression @ example.pp:5,11-32)))
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Zenduty = Pulumi.Zenduty;
return await Deployment.RunAsync(() =>
{
var teamSlas = Zenduty.GetSla.Invoke(new()
{
TeamId = exampleteam.Id,
});
return new Dictionary<string, object?>
{
["slaNames"] = teamSlas.Apply(getSlaResult => getSlaResult.Slas).Select(__item => __item.Name).ToList(),
};
});
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.GetSlaArgs;
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 teamSlas = ZendutyFunctions.getSla(GetSlaArgs.builder()
.teamId(exampleteam.id())
.build());
ctx.export("slaNames", teamSlas.slas().stream().map(element -> element.name()).collect(toList()));
}
}
Example coming soon!
Example coming soon!
Using getSla
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 getSla(args: GetSlaArgs, opts?: InvokeOptions): Promise<GetSlaResult>
function getSlaOutput(args: GetSlaOutputArgs, opts?: InvokeOutputOptions): Output<GetSlaResult>def get_sla(id: Optional[str] = None,
team_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSlaResult
def get_sla_output(id: pulumi.Input[Optional[str]] = None,
team_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetSlaResult]func LookupSla(ctx *Context, args *LookupSlaArgs, opts ...InvokeOption) (*LookupSlaResult, error)
func LookupSlaOutput(ctx *Context, args *LookupSlaOutputArgs, opts ...InvokeOption) LookupSlaResultOutput> Note: This function is named LookupSla in the Go SDK.
public static class GetSla
{
public static Task<GetSlaResult> InvokeAsync(GetSlaArgs args, InvokeOptions? opts = null)
public static Output<GetSlaResult> Invoke(GetSlaInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetSlaResult> Invoke(GetSlaInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetSlaResult> getSla(GetSlaArgs args, InvokeOptions options)
public static Output<GetSlaResult> getSla(GetSlaArgs args, InvokeOptions options)
public static Output<GetSlaResult> getSla(GetSlaArgs args, InvokeOutputOptions options)
fn::invoke:
function: zenduty:index/getSla:getSla
arguments:
# arguments dictionarydata "zenduty_get_sla" "name" {
# arguments
}The following arguments are supported:
getSla Result
The following output properties are available:
- Id string
- Slas
List<Get
Sla Sla> - The list of SLAs, each with:
- Team
Id string
- Id string
- Slas
[]Get
Sla Sla - The list of SLAs, each with:
- Team
Id string
- id string
- slas list(object)
- The list of SLAs, each with:
- team_
id string
- id String
- slas
List<Get
Sla Sla> - The list of SLAs, each with:
- team
Id String
- id string
- slas
Get
Sla Sla[] - The list of SLAs, each with:
- team
Id string
- id str
- slas
Sequence[Get
Sla Sla] - The list of SLAs, each with:
- team_
id str
- id String
- slas List<Property Map>
- The list of SLAs, each with:
- team
Id String
Supporting Types
GetSlaSla
- Acknowledge
Time double - Seconds before the acknowledgement SLA is breached.
- Creation
Date string - When the SLA was created.
- Is
Active bool - Whether the SLA is active.
- Name string
- The name of the SLA.
- Resolve
Time double - Seconds before the resolution SLA is breached.
- Unique
Id string - The unique_id of the SLA.
- Acknowledge
Time float64 - Seconds before the acknowledgement SLA is breached.
- Creation
Date string - When the SLA was created.
- Is
Active bool - Whether the SLA is active.
- Name string
- The name of the SLA.
- Resolve
Time float64 - Seconds before the resolution SLA is breached.
- Unique
Id string - The unique_id of the SLA.
- acknowledge_
time number - Seconds before the acknowledgement SLA is breached.
- creation_
date string - When the SLA was created.
- is_
active bool - Whether the SLA is active.
- name string
- The name of the SLA.
- resolve_
time number - Seconds before the resolution SLA is breached.
- unique_
id string - The unique_id of the SLA.
- acknowledge
Time Double - Seconds before the acknowledgement SLA is breached.
- creation
Date String - When the SLA was created.
- is
Active Boolean - Whether the SLA is active.
- name String
- The name of the SLA.
- resolve
Time Double - Seconds before the resolution SLA is breached.
- unique
Id String - The unique_id of the SLA.
- acknowledge
Time number - Seconds before the acknowledgement SLA is breached.
- creation
Date string - When the SLA was created.
- is
Active boolean - Whether the SLA is active.
- name string
- The name of the SLA.
- resolve
Time number - Seconds before the resolution SLA is breached.
- unique
Id string - The unique_id of the SLA.
- acknowledge_
time float - Seconds before the acknowledgement SLA is breached.
- creation_
date str - When the SLA was created.
- is_
active bool - Whether the SLA is active.
- name str
- The name of the SLA.
- resolve_
time float - Seconds before the resolution SLA is breached.
- unique_
id str - The unique_id of the SLA.
- acknowledge
Time Number - Seconds before the acknowledgement SLA is breached.
- creation
Date String - When the SLA was created.
- is
Active Boolean - Whether the SLA is active.
- name String
- The name of the SLA.
- resolve
Time Number - Seconds before the resolution SLA is breached.
- unique
Id String - The unique_id of the SLA.
Package Details
- Repository
- zenduty zenduty/terraform-provider-zenduty
- License
- Notes
- This Pulumi package is based on the
zendutyTerraform Provider.
Viewing docs for zenduty 2.0.0
published on Friday, Aug 14, 2026 by zenduty
published on Friday, Aug 14, 2026 by zenduty