zenduty 1.0.3 published on Monday, Mar 24, 2025 by zenduty
zenduty.getTeams
Explore with Pulumi AI
import * as pulumi from "@pulumi/pulumi";
import * as zenduty from "@pulumi/zenduty";
const exampleteams = zenduty.getTeams({});
import pulumi
import pulumi_zenduty as zenduty
exampleteams = zenduty.get_teams()
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
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Zenduty = Pulumi.Zenduty;
return await Deployment.RunAsync(() => 
{
    var exampleteams = Zenduty.GetTeams.Invoke();
});
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();
    }
}
variables:
  exampleteams:
    fn::invoke:
      function: zenduty:getTeams
      arguments: {}
or
import * as pulumi from "@pulumi/pulumi";
import * as zenduty from "@pulumi/zenduty";
const exampleteams = zenduty.getTeams({
    teamId: "",
});
import pulumi
import pulumi_zenduty as zenduty
exampleteams = zenduty.get_teams(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.LookupTeams(ctx, &zenduty.LookupTeamsArgs{
			TeamId: pulumi.StringRef(""),
		}, 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 exampleteams = Zenduty.GetTeams.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.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());
    }
}
variables:
  exampleteams:
    fn::invoke:
      function: zenduty:getTeams
      arguments:
        teamId: ""
import * as pulumi from "@pulumi/pulumi";
export const teams = data.zenduty_teams.exampleteams.teams;
import pulumi
pulumi.export("teams", data["zenduty_teams"]["exampleteams"]["teams"])
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
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
return await Deployment.RunAsync(() => 
{
    return new Dictionary<string, object?>
    {
        ["teams"] = data.Zenduty_teams.Exampleteams.Teams,
    };
});
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());
    }
}
outputs:
  teams: ${data.zenduty_teams.exampleteams.teams}
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>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]func LookupTeams(ctx *Context, args *LookupTeamsArgs, opts ...InvokeOption) (*LookupTeamsResult, error)
func LookupTeamsOutput(ctx *Context, args *LookupTeamsOutputArgs, opts ...InvokeOption) LookupTeamsResultOutput> 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)
}public static CompletableFuture<GetTeamsResult> getTeams(GetTeamsArgs args, InvokeOptions options)
public static Output<GetTeamsResult> getTeams(GetTeamsArgs args, InvokeOptions options)
fn::invoke:
  function: zenduty:index/getTeams:getTeams
  arguments:
    # arguments dictionaryThe following arguments are supported:
getTeams Result
The following output properties are available:
- Id string
- Teams
List<GetTeams Team> 
- TeamId string
- Id string
- Teams
[]GetTeams Team 
- TeamId string
- id String
- teams
List<GetTeams Team> 
- teamId String
- id string
- teams
GetTeams Team[] 
- teamId string
- id str
- teams
Sequence[GetTeams Team] 
- team_id str
- id String
- teams List<Property Map>
- teamId String
Supporting Types
GetTeamsTeam  
- Account string
- The account_id of the team.
- CreationDate string
- Members
List<GetTeams Team Member> 
- The list of members of the team.
- Name string
- The name of the team.
- Owner string
- The username of the owner of the team.
- Roles
List<GetTeams Team Role> 
- The list of Incident roles in the team as maps.
- UniqueId string
- The unique_id of the team.
- Account string
- The account_id of the team.
- CreationDate string
- Members
[]GetTeams Team Member 
- The list of members of the team.
- Name string
- The name of the team.
- Owner string
- The username of the owner of the team.
- Roles
[]GetTeams Team Role 
- The list of Incident roles in the team as maps.
- UniqueId string
- The unique_id of the team.
- account String
- The account_id of the team.
- creationDate String
- members
List<GetTeams Team Member> 
- The list of members of the team.
- name String
- The name of the team.
- owner String
- The username of the owner of the team.
- roles
List<GetTeams Team Role> 
- The list of Incident roles in the team as maps.
- uniqueId String
- The unique_id of the team.
- account string
- The account_id of the team.
- creationDate string
- members
GetTeams Team Member[] 
- The list of members of the team.
- name string
- The name of the team.
- owner string
- The username of the owner of the team.
- roles
GetTeams Team Role[] 
- The list of Incident roles in the team as maps.
- uniqueId string
- The unique_id of the team.
- account str
- The account_id of the team.
- creation_date str
- members
Sequence[GetTeams Team Member] 
- The list of members of the team.
- name str
- The name of the team.
- owner str
- The username of the owner of the team.
- roles
Sequence[GetTeams Team Role] 
- The list of Incident roles in the team as maps.
- unique_id str
- The unique_id of the team.
- account String
- The account_id of the team.
- creationDate String
- members List<Property Map>
- The list of members of the team.
- name String
- The name of the team.
- owner String
- The username of the owner of the team.
- roles List<Property Map>
- The list of Incident roles in the team as maps.
- uniqueId String
- The unique_id of the team.
GetTeamsTeamMember   
- JoiningDate string
- Role double
- The role of the member.
- Team string
- The unique_id of the team.
- UniqueId string
- The unique_id of the team.
- User Dictionary<string, string>
- contains Maps with attributes
- JoiningDate string
- Role float64
- The role of the member.
- Team string
- The unique_id of the team.
- UniqueId string
- The unique_id of the team.
- User map[string]string
- contains Maps with attributes
- joiningDate String
- role Double
- The role of the member.
- team String
- The unique_id of the team.
- uniqueId String
- The unique_id of the team.
- user Map<String,String>
- contains Maps with attributes
- joiningDate string
- role number
- The role of the member.
- team string
- The unique_id of the team.
- uniqueId string
- The unique_id of the team.
- user {[key: string]: string}
- contains Maps with attributes
- joining_date str
- role float
- The role of the member.
- team str
- The unique_id of the team.
- unique_id str
- The unique_id of the team.
- user Mapping[str, str]
- contains Maps with attributes
- joiningDate String
- role Number
- The role of the member.
- team String
- The unique_id of the team.
- uniqueId String
- The unique_id of the team.
- user Map<String>
- contains Maps with attributes
GetTeamsTeamRole   
- CreationDate string
- Description string
- The description of the role.
- Rank double
- The rank of the role.
- Team string
- The unique_id of the team.
- Title string
- The title of the role.
- UniqueId string
- The unique_id of the team.
- CreationDate string
- Description string
- The description of the role.
- Rank float64
- The rank of the role.
- Team string
- The unique_id of the team.
- Title string
- The title of the role.
- UniqueId string
- The unique_id of the team.
- creationDate String
- description String
- The description of the role.
- rank Double
- The rank of the role.
- team String
- The unique_id of the team.
- title String
- The title of the role.
- uniqueId String
- The unique_id of the team.
- creationDate string
- description string
- The description of the role.
- rank number
- The rank of the role.
- team string
- The unique_id of the team.
- title string
- The title of the role.
- uniqueId string
- The unique_id of the team.
- creation_date str
- description str
- The description of the role.
- rank float
- The rank of the role.
- team str
- The unique_id of the team.
- title str
- The title of the role.
- unique_id str
- The unique_id of the team.
- creationDate String
- description String
- The description of the role.
- rank Number
- The rank of the role.
- team String
- The unique_id of the team.
- title String
- The title of the role.
- uniqueId String
- The unique_id of the team.
Package Details
- Repository
- zenduty zenduty/terraform-provider-zenduty
- License
- Notes
- This Pulumi package is based on the zendutyTerraform Provider.