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

zenduty.getTeams

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 exampleteams = zenduty.getTeams({});
Copy
import pulumi
import pulumi_zenduty as zenduty

exampleteams = zenduty.get_teams()
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.LookupTeams(ctx, &zenduty.LookupTeamsArgs{}, 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 exampleteams = Zenduty.GetTeams.Invoke();

});
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.GetTeamsArgs;
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 exampleteams = ZendutyFunctions.getTeams();

    }
}
Copy
variables:
  exampleteams:
    fn::invoke:
      function: zenduty:getTeams
      arguments: {}
Copy

or

import * as pulumi from "@pulumi/pulumi";
import * as zenduty from "@pulumi/zenduty";

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

exampleteams = zenduty.get_teams(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.LookupTeams(ctx, &zenduty.LookupTeamsArgs{
			TeamId: pulumi.StringRef(""),
		}, 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 exampleteams = Zenduty.GetTeams.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.GetTeamsArgs;
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 exampleteams = ZendutyFunctions.getTeams(GetTeamsArgs.builder()
            .teamId("")
            .build());

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

export const teams = data.zenduty_teams.exampleteams.teams;
Copy
import pulumi

pulumi.export("teams", data["zenduty_teams"]["exampleteams"]["teams"])
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ctx.Export("teams", data.Zenduty_teams.Exampleteams.Teams)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;

return await Deployment.RunAsync(() => 
{
    return new Dictionary<string, object?>
    {
        ["teams"] = data.Zenduty_teams.Exampleteams.Teams,
    };
});
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("teams", data.zenduty_teams().exampleteams().teams());
    }
}
Copy
outputs:
  teams: ${data.zenduty_teams.exampleteams.teams}
Copy

Using getTeams

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 getTeams(args: GetTeamsArgs, opts?: InvokeOptions): Promise<GetTeamsResult>
function getTeamsOutput(args: GetTeamsOutputArgs, opts?: InvokeOptions): Output<GetTeamsResult>
Copy
def get_teams(id: Optional[str] = None,
              team_id: Optional[str] = None,
              opts: Optional[InvokeOptions] = None) -> GetTeamsResult
def get_teams_output(id: Optional[pulumi.Input[str]] = None,
              team_id: Optional[pulumi.Input[str]] = None,
              opts: Optional[InvokeOptions] = None) -> Output[GetTeamsResult]
Copy
func LookupTeams(ctx *Context, args *LookupTeamsArgs, opts ...InvokeOption) (*LookupTeamsResult, error)
func LookupTeamsOutput(ctx *Context, args *LookupTeamsOutputArgs, opts ...InvokeOption) LookupTeamsResultOutput
Copy

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

public static class GetTeams 
{
    public static Task<GetTeamsResult> InvokeAsync(GetTeamsArgs args, InvokeOptions? opts = null)
    public static Output<GetTeamsResult> Invoke(GetTeamsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetTeamsResult> getTeams(GetTeamsArgs args, InvokeOptions options)
public static Output<GetTeamsResult> getTeams(GetTeamsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: zenduty:index/getTeams:getTeams
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id string
TeamId string
The UniqueID of the team to query.
Id string
TeamId string
The UniqueID of the team to query.
id String
teamId String
The UniqueID of the team to query.
id string
teamId string
The UniqueID of the team to query.
id str
team_id str
The UniqueID of the team to query.
id String
teamId String
The UniqueID of the team to query.

getTeams Result

The following output properties are available:

Supporting Types

GetTeamsTeam

Account This property is required. string
The account_id of the team.
CreationDate This property is required. string
Members This property is required. List<GetTeamsTeamMember>
The list of members of the team.
Name This property is required. string
The name of the team.
Owner This property is required. string
The username of the owner of the team.
Roles This property is required. List<GetTeamsTeamRole>
The list of Incident roles in the team as maps.
UniqueId This property is required. string
The unique_id of the team.
Account This property is required. string
The account_id of the team.
CreationDate This property is required. string
Members This property is required. []GetTeamsTeamMember
The list of members of the team.
Name This property is required. string
The name of the team.
Owner This property is required. string
The username of the owner of the team.
Roles This property is required. []GetTeamsTeamRole
The list of Incident roles in the team as maps.
UniqueId This property is required. string
The unique_id of the team.
account This property is required. String
The account_id of the team.
creationDate This property is required. String
members This property is required. List<GetTeamsTeamMember>
The list of members of the team.
name This property is required. String
The name of the team.
owner This property is required. String
The username of the owner of the team.
roles This property is required. List<GetTeamsTeamRole>
The list of Incident roles in the team as maps.
uniqueId This property is required. String
The unique_id of the team.
account This property is required. string
The account_id of the team.
creationDate This property is required. string
members This property is required. GetTeamsTeamMember[]
The list of members of the team.
name This property is required. string
The name of the team.
owner This property is required. string
The username of the owner of the team.
roles This property is required. GetTeamsTeamRole[]
The list of Incident roles in the team as maps.
uniqueId This property is required. string
The unique_id of the team.
account This property is required. str
The account_id of the team.
creation_date This property is required. str
members This property is required. Sequence[GetTeamsTeamMember]
The list of members of the team.
name This property is required. str
The name of the team.
owner This property is required. str
The username of the owner of the team.
roles This property is required. Sequence[GetTeamsTeamRole]
The list of Incident roles in the team as maps.
unique_id This property is required. str
The unique_id of the team.
account This property is required. String
The account_id of the team.
creationDate This property is required. String
members This property is required. List<Property Map>
The list of members of the team.
name This property is required. String
The name of the team.
owner This property is required. String
The username of the owner of the team.
roles This property is required. List<Property Map>
The list of Incident roles in the team as maps.
uniqueId This property is required. String
The unique_id of the team.

GetTeamsTeamMember

JoiningDate This property is required. string
Role This property is required. double
The role of the member.
Team This property is required. string
The unique_id of the team.
UniqueId This property is required. string
The unique_id of the team.
User This property is required. Dictionary<string, string>
contains Maps with attributes
JoiningDate This property is required. string
Role This property is required. float64
The role of the member.
Team This property is required. string
The unique_id of the team.
UniqueId This property is required. string
The unique_id of the team.
User This property is required. map[string]string
contains Maps with attributes
joiningDate This property is required. String
role This property is required. Double
The role of the member.
team This property is required. String
The unique_id of the team.
uniqueId This property is required. String
The unique_id of the team.
user This property is required. Map<String,String>
contains Maps with attributes
joiningDate This property is required. string
role This property is required. number
The role of the member.
team This property is required. string
The unique_id of the team.
uniqueId This property is required. string
The unique_id of the team.
user This property is required. {[key: string]: string}
contains Maps with attributes
joining_date This property is required. str
role This property is required. float
The role of the member.
team This property is required. str
The unique_id of the team.
unique_id This property is required. str
The unique_id of the team.
user This property is required. Mapping[str, str]
contains Maps with attributes
joiningDate This property is required. String
role This property is required. Number
The role of the member.
team This property is required. String
The unique_id of the team.
uniqueId This property is required. String
The unique_id of the team.
user This property is required. Map<String>
contains Maps with attributes

GetTeamsTeamRole

CreationDate This property is required. string
Description This property is required. string
The description of the role.
Rank This property is required. double
The rank of the role.
Team This property is required. string
The unique_id of the team.
Title This property is required. string
The title of the role.
UniqueId This property is required. string
The unique_id of the team.
CreationDate This property is required. string
Description This property is required. string
The description of the role.
Rank This property is required. float64
The rank of the role.
Team This property is required. string
The unique_id of the team.
Title This property is required. string
The title of the role.
UniqueId This property is required. string
The unique_id of the team.
creationDate This property is required. String
description This property is required. String
The description of the role.
rank This property is required. Double
The rank of the role.
team This property is required. String
The unique_id of the team.
title This property is required. String
The title of the role.
uniqueId This property is required. String
The unique_id of the team.
creationDate This property is required. string
description This property is required. string
The description of the role.
rank This property is required. number
The rank of the role.
team This property is required. string
The unique_id of the team.
title This property is required. string
The title of the role.
uniqueId This property is required. string
The unique_id of the team.
creation_date This property is required. str
description This property is required. str
The description of the role.
rank This property is required. float
The rank of the role.
team This property is required. str
The unique_id of the team.
title This property is required. str
The title of the role.
unique_id This property is required. str
The unique_id of the team.
creationDate This property is required. String
description This property is required. String
The description of the role.
rank This property is required. Number
The rank of the role.
team This property is required. String
The unique_id of the team.
title This property is required. String
The title of the role.
uniqueId This property is required. String
The unique_id of the team.

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