zenduty 1.0.4 published on Wednesday, Apr 2, 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 dictionary
The following arguments are supported:
getTeams Result
The following output properties are available:
- Id string
- Teams
List<Get
Teams Team> - Team
Id string
- Id string
- Teams
[]Get
Teams Team - Team
Id string
- id String
- teams
List<Get
Teams Team> - team
Id String
- id string
- teams
Get
Teams Team[] - team
Id string
- id str
- teams
Sequence[Get
Teams Team] - team_
id str
- id String
- teams List<Property Map>
- team
Id String
Supporting Types
GetTeamsTeam
- Account
This property is required. string - The account_id of the team.
- Creation
Date This property is required. string - Members
This property is required. List<GetTeams Team Member> - 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<GetTeams Team Role> - The list of Incident roles in the team as maps.
- Unique
Id This property is required. string - The unique_id of the team.
- Account
This property is required. string - The account_id of the team.
- Creation
Date This property is required. string - Members
This property is required. []GetTeams Team Member - 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. []GetTeams Team Role - The list of Incident roles in the team as maps.
- Unique
Id This property is required. string - The unique_id of the team.
- account
This property is required. String - The account_id of the team.
- creation
Date This property is required. String - members
This property is required. List<GetTeams Team Member> - 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<GetTeams Team Role> - The list of Incident roles in the team as maps.
- unique
Id This property is required. String - The unique_id of the team.
- account
This property is required. string - The account_id of the team.
- creation
Date This property is required. string - members
This property is required. GetTeams Team Member[] - 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. GetTeams Team Role[] - The list of Incident roles in the team as maps.
- unique
Id 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[GetTeams Team Member] - 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[GetTeams Team Role] - 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.
- creation
Date 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.
- unique
Id This property is required. String - The unique_id of the team.
GetTeamsTeamMember
- Joining
Date 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.
- Unique
Id This property is required. string - The unique_id of the team.
- User
This property is required. Dictionary<string, string> - contains Maps with attributes
- Joining
Date 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.
- Unique
Id This property is required. string - The unique_id of the team.
- User
This property is required. map[string]string - contains Maps with attributes
- joining
Date 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.
- unique
Id This property is required. String - The unique_id of the team.
- user
This property is required. Map<String,String> - contains Maps with attributes
- joining
Date 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.
- unique
Id 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
- joining
Date 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.
- unique
Id This property is required. String - The unique_id of the team.
- user
This property is required. Map<String> - contains Maps with attributes
GetTeamsTeamRole
- Creation
Date 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.
- Unique
Id This property is required. string - The unique_id of the team.
- Creation
Date 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.
- Unique
Id This property is required. string - The unique_id of the team.
- creation
Date 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.
- unique
Id This property is required. String - The unique_id of the team.
- creation
Date 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.
- unique
Id 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.
- creation
Date 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.
- unique
Id 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.