1. Packages
  2. Mongodbatlas Provider
  3. API Docs
  4. getTeams
MongoDB Atlas v3.20.4 published on Wednesday, Oct 30, 2024 by Pulumi

mongodbatlas.getTeams

Explore with Pulumi AI

mongodbatlas logo
MongoDB Atlas v3.20.4 published on Wednesday, Oct 30, 2024 by Pulumi

    WARNING: This datasource is deprecated, use mongodbatlas.Team

    This data source is deprecated. Please transition to using mongodbatlas.Team which defines the same underlying implementation, aligning the name of the data source with the implementation which fetches a single team.

    In the future this data source will define a new implementation capable of fetching all teams in one organization.

    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(name: Optional[str] = None,
                  org_id: Optional[str] = None,
                  team_id: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetTeamsResult
    def get_teams_output(name: Optional[pulumi.Input[str]] = None,
                  org_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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: mongodbatlas:index/getTeams:getTeams
      arguments:
        # arguments dictionary

    The following arguments are supported:

    OrgId string
    Name string
    TeamId string
    OrgId string
    Name string
    TeamId string
    orgId String
    name String
    teamId String
    orgId string
    name string
    teamId string
    org_id str
    name str
    team_id str
    orgId String
    name String
    teamId String

    getTeams Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    OrgId string
    TeamId string
    Usernames List<string>
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    OrgId string
    TeamId string
    Usernames []string
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    orgId String
    teamId String
    usernames List<String>
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    orgId string
    teamId string
    usernames string[]
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    org_id str
    team_id str
    usernames Sequence[str]
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    orgId String
    teamId String
    usernames List<String>

    Package Details

    Repository
    MongoDB Atlas pulumi/pulumi-mongodbatlas
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the mongodbatlas Terraform Provider.
    mongodbatlas logo
    MongoDB Atlas v3.20.4 published on Wednesday, Oct 30, 2024 by Pulumi