1. Registry
  2. Packages
  3. Konnect Provider
  4. API Docs
  5. getTeamList
Viewing docs for konnect 3.23.0
published on Friday, Sep 18, 2026 by kong
Viewing docs for konnect 3.23.0
published on Friday, Sep 18, 2026 by kong

    TeamList DataSource

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as konnect from "@pulumi/konnect";
    
    const myTeamlist = konnect.getTeamList({
        filter: {
            labels: {
                key: {
                    contains: "...my_contains...",
                    eq: "...my_eq...",
                    exists: true,
                },
            },
            name: {
                contains: "...my_contains...",
                eq: "...my_eq...",
            },
        },
    });
    
    import pulumi
    import pulumi_konnect as konnect
    
    my_teamlist = konnect.get_team_list(filter={
        "labels": {
            "key": {
                "contains": "...my_contains...",
                "eq": "...my_eq...",
                "exists": True,
            },
        },
        "name": {
            "contains": "...my_contains...",
            "eq": "...my_eq...",
        },
    })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/konnect/v3/konnect"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := konnect.GetTeamList(ctx, &konnect.GetTeamListArgs{
    			Filter: konnect.GetTeamListFilter{
    				Labels: pulumi.Konnect.GetTeamListFilterLabelsMap{
    					"key": konnect.GetTeamListFilterLabels{
    						Contains: pulumi.StringRef("...my_contains..."),
    						Eq:       pulumi.StringRef("...my_eq..."),
    						Exists:   pulumi.BoolRef(true),
    					},
    				},
    				Name: konnect.GetTeamListFilterName{
    					Contains: pulumi.StringRef("...my_contains..."),
    					Eq:       pulumi.StringRef("...my_eq..."),
    				},
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Konnect = Pulumi.Konnect;
    
    return await Deployment.RunAsync(() => 
    {
        var myTeamlist = Konnect.GetTeamList.Invoke(new()
        {
            Filter = new Konnect.Inputs.GetTeamListFilterInputArgs
            {
                Labels = 
                {
                    { "key", new Konnect.Inputs.GetTeamListFilterLabelsInputArgs
                    {
                        Contains = "...my_contains...",
                        Eq = "...my_eq...",
                        Exists = true,
                    } },
                },
                Name = new Konnect.Inputs.GetTeamListFilterNameInputArgs
                {
                    Contains = "...my_contains...",
                    Eq = "...my_eq...",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.konnect.KonnectFunctions;
    import com.pulumi.konnect.inputs.GetTeamListArgs;
    import com.pulumi.konnect.inputs.GetTeamListFilterArgs;
    import com.pulumi.konnect.inputs.GetTeamListFilterNameArgs;
    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 myTeamlist = KonnectFunctions.getTeamList(GetTeamListArgs.builder()
                .filter(GetTeamListFilterArgs.builder()
                    .labels(Map.of("key", GetTeamListFilterLabelsArgs.builder()
                        .contains("...my_contains...")
                        .eq("...my_eq...")
                        .exists(true)
                        .build()))
                    .name(GetTeamListFilterNameArgs.builder()
                        .contains("...my_contains...")
                        .eq("...my_eq...")
                        .build())
                    .build())
                .build());
    
        }
    }
    
    variables:
      myTeamlist:
        fn::invoke:
          function: konnect:getTeamList
          arguments:
            filter:
              labels:
                key:
                  contains: '...my_contains...'
                  eq: '...my_eq...'
                  exists: true
              name:
                contains: '...my_contains...'
                eq: '...my_eq...'
    
    Example coming soon!
    

    Using getTeamList

    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 getTeamList(args: GetTeamListArgs, opts?: InvokeOptions): Promise<GetTeamListResult>
    function getTeamListOutput(args: GetTeamListOutputArgs, opts?: InvokeOutputOptions): Output<GetTeamListResult>
    def get_team_list(filter: Optional[GetTeamListFilter] = None,
                      opts: Optional[InvokeOptions] = None) -> GetTeamListResult
    def get_team_list_output(filter: pulumi.Input[Optional[GetTeamListFilterArgs]] = None,
                      opts: Optional[InvokeOutputOptions] = None) -> Output[GetTeamListResult]
    func GetTeamList(ctx *Context, args *GetTeamListArgs, opts ...InvokeOption) (*GetTeamListResult, error)
    func GetTeamListOutput(ctx *Context, args *GetTeamListOutputArgs, opts ...InvokeOption) GetTeamListResultOutput

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

    public static class GetTeamList 
    {
        public static Task<GetTeamListResult> InvokeAsync(GetTeamListArgs args, InvokeOptions? opts = null)
        public static Output<GetTeamListResult> Invoke(GetTeamListInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetTeamListResult> Invoke(GetTeamListInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetTeamListResult> getTeamList(GetTeamListArgs args, InvokeOptions options)
    public static Output<GetTeamListResult> getTeamList(GetTeamListArgs args, InvokeOptions options)
    public static Output<GetTeamListResult> getTeamList(GetTeamListArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: konnect:index/getTeamList:getTeamList
      arguments:
        # arguments dictionary
    data "konnect_get_team_list" "name" {
        # arguments
    }

    The following arguments are supported:

    Filter GetTeamListFilter
    Filter teams returned in the response. Supports filtering by label value using dot-notation, e.g. filter[labels.<key>][<op>]=<value>, where <op> is one of eq, contains, or exists.
    Filter GetTeamListFilter
    Filter teams returned in the response. Supports filtering by label value using dot-notation, e.g. filter[labels.<key>][<op>]=<value>, where <op> is one of eq, contains, or exists.
    filter object
    Filter teams returned in the response. Supports filtering by label value using dot-notation, e.g. filter[labels.<key>][<op>]=<value>, where <op> is one of eq, contains, or exists.
    filter GetTeamListFilter
    Filter teams returned in the response. Supports filtering by label value using dot-notation, e.g. filter[labels.<key>][<op>]=<value>, where <op> is one of eq, contains, or exists.
    filter GetTeamListFilter
    Filter teams returned in the response. Supports filtering by label value using dot-notation, e.g. filter[labels.<key>][<op>]=<value>, where <op> is one of eq, contains, or exists.
    filter GetTeamListFilter
    Filter teams returned in the response. Supports filtering by label value using dot-notation, e.g. filter[labels.<key>][<op>]=<value>, where <op> is one of eq, contains, or exists.
    filter Property Map
    Filter teams returned in the response. Supports filtering by label value using dot-notation, e.g. filter[labels.<key>][<op>]=<value>, where <op> is one of eq, contains, or exists.

    getTeamList Result

    The following output properties are available:

    Datas List<GetTeamListData>
    Id string
    The provider-assigned unique ID for this managed resource.
    Filter GetTeamListFilter
    Filter teams returned in the response. Supports filtering by label value using dot-notation, e.g. filter[labels.<key>][<op>]=<value>, where <op> is one of eq, contains, or exists.
    Datas []GetTeamListData
    Id string
    The provider-assigned unique ID for this managed resource.
    Filter GetTeamListFilter
    Filter teams returned in the response. Supports filtering by label value using dot-notation, e.g. filter[labels.<key>][<op>]=<value>, where <op> is one of eq, contains, or exists.
    datas list(object)
    id string
    The provider-assigned unique ID for this managed resource.
    filter object
    Filter teams returned in the response. Supports filtering by label value using dot-notation, e.g. filter[labels.<key>][<op>]=<value>, where <op> is one of eq, contains, or exists.
    datas List<GetTeamListData>
    id String
    The provider-assigned unique ID for this managed resource.
    filter GetTeamListFilter
    Filter teams returned in the response. Supports filtering by label value using dot-notation, e.g. filter[labels.<key>][<op>]=<value>, where <op> is one of eq, contains, or exists.
    datas GetTeamListData[]
    id string
    The provider-assigned unique ID for this managed resource.
    filter GetTeamListFilter
    Filter teams returned in the response. Supports filtering by label value using dot-notation, e.g. filter[labels.<key>][<op>]=<value>, where <op> is one of eq, contains, or exists.
    datas Sequence[GetTeamListData]
    id str
    The provider-assigned unique ID for this managed resource.
    filter GetTeamListFilter
    Filter teams returned in the response. Supports filtering by label value using dot-notation, e.g. filter[labels.<key>][<op>]=<value>, where <op> is one of eq, contains, or exists.
    datas List<Property Map>
    id String
    The provider-assigned unique ID for this managed resource.
    filter Property Map
    Filter teams returned in the response. Supports filtering by label value using dot-notation, e.g. filter[labels.<key>][<op>]=<value>, where <op> is one of eq, contains, or exists.

    Supporting Types

    GetTeamListData

    CreatedAt string
    A Unix timestamp representation of team creation.
    Description string
    The description of the team.
    Id string
    The team ID.
    Labels Dictionary<string, string>
    Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
    Name string
    The name of the team.
    SystemTeam bool
    Returns True if a user belongs to a system_team. System teams are teams that can manage Konnect objects, like "Organization Admin", or "Service"
    UpdatedAt string
    A Unix timestamp representation of the most recent change to the team object in Konnect.
    CreatedAt string
    A Unix timestamp representation of team creation.
    Description string
    The description of the team.
    Id string
    The team ID.
    Labels map[string]string
    Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
    Name string
    The name of the team.
    SystemTeam bool
    Returns True if a user belongs to a system_team. System teams are teams that can manage Konnect objects, like "Organization Admin", or "Service"
    UpdatedAt string
    A Unix timestamp representation of the most recent change to the team object in Konnect.
    created_at string
    A Unix timestamp representation of team creation.
    description string
    The description of the team.
    id string
    The team ID.
    labels map(string)
    Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
    name string
    The name of the team.
    system_team bool
    Returns True if a user belongs to a system_team. System teams are teams that can manage Konnect objects, like "Organization Admin", or "Service"
    updated_at string
    A Unix timestamp representation of the most recent change to the team object in Konnect.
    createdAt String
    A Unix timestamp representation of team creation.
    description String
    The description of the team.
    id String
    The team ID.
    labels Map<String,String>
    Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
    name String
    The name of the team.
    systemTeam Boolean
    Returns True if a user belongs to a system_team. System teams are teams that can manage Konnect objects, like "Organization Admin", or "Service"
    updatedAt String
    A Unix timestamp representation of the most recent change to the team object in Konnect.
    createdAt string
    A Unix timestamp representation of team creation.
    description string
    The description of the team.
    id string
    The team ID.
    labels {[key: string]: string}
    Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
    name string
    The name of the team.
    systemTeam boolean
    Returns True if a user belongs to a system_team. System teams are teams that can manage Konnect objects, like "Organization Admin", or "Service"
    updatedAt string
    A Unix timestamp representation of the most recent change to the team object in Konnect.
    created_at str
    A Unix timestamp representation of team creation.
    description str
    The description of the team.
    id str
    The team ID.
    labels Mapping[str, str]
    Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
    name str
    The name of the team.
    system_team bool
    Returns True if a user belongs to a system_team. System teams are teams that can manage Konnect objects, like "Organization Admin", or "Service"
    updated_at str
    A Unix timestamp representation of the most recent change to the team object in Konnect.
    createdAt String
    A Unix timestamp representation of team creation.
    description String
    The description of the team.
    id String
    The team ID.
    labels Map<String>
    Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
    name String
    The name of the team.
    systemTeam Boolean
    Returns True if a user belongs to a system_team. System teams are teams that can manage Konnect objects, like "Organization Admin", or "Service"
    updatedAt String
    A Unix timestamp representation of the most recent change to the team object in Konnect.

    GetTeamListFilter

    Labels Dictionary<string, GetTeamListFilterLabels>
    Name GetTeamListFilterName
    Filter using one of the following operators: eq, contains
    Labels map[string]GetTeamListFilterLabels
    Name GetTeamListFilterName
    Filter using one of the following operators: eq, contains
    labels map(object)
    name object
    Filter using one of the following operators: eq, contains
    labels Map<String,GetTeamListFilterLabels>
    name GetTeamListFilterName
    Filter using one of the following operators: eq, contains
    labels {[key: string]: GetTeamListFilterLabels}
    name GetTeamListFilterName
    Filter using one of the following operators: eq, contains
    labels Mapping[str, GetTeamListFilterLabels]
    name GetTeamListFilterName
    Filter using one of the following operators: eq, contains
    labels Map<Property Map>
    name Property Map
    Filter using one of the following operators: eq, contains

    GetTeamListFilterLabels

    Contains string
    The field contains the provided value.
    Eq string
    The field exactly matches the provided value.
    Exists bool
    Filters on whether the given field exists.

    Deprecated: Deprecated

    Contains string
    The field contains the provided value.
    Eq string
    The field exactly matches the provided value.
    Exists bool
    Filters on whether the given field exists.

    Deprecated: Deprecated

    contains string
    The field contains the provided value.
    eq string
    The field exactly matches the provided value.
    exists bool
    Filters on whether the given field exists.

    Deprecated: Deprecated

    contains String
    The field contains the provided value.
    eq String
    The field exactly matches the provided value.
    exists Boolean
    Filters on whether the given field exists.

    Deprecated: Deprecated

    contains string
    The field contains the provided value.
    eq string
    The field exactly matches the provided value.
    exists boolean
    Filters on whether the given field exists.

    Deprecated: Deprecated

    contains str
    The field contains the provided value.
    eq str
    The field exactly matches the provided value.
    exists bool
    Filters on whether the given field exists.

    Deprecated: Deprecated

    contains String
    The field contains the provided value.
    eq String
    The field exactly matches the provided value.
    exists Boolean
    Filters on whether the given field exists.

    Deprecated: Deprecated

    GetTeamListFilterName

    Contains string
    The field contains the provided value.
    Eq string
    The field exactly matches the provided value.
    Contains string
    The field contains the provided value.
    Eq string
    The field exactly matches the provided value.
    contains string
    The field contains the provided value.
    eq string
    The field exactly matches the provided value.
    contains String
    The field contains the provided value.
    eq String
    The field exactly matches the provided value.
    contains string
    The field contains the provided value.
    eq string
    The field exactly matches the provided value.
    contains str
    The field contains the provided value.
    eq str
    The field exactly matches the provided value.
    contains String
    The field contains the provided value.
    eq String
    The field exactly matches the provided value.

    Package Details

    Repository
    konnect kong/terraform-provider-konnect
    License
    Notes
    This Pulumi package is based on the konnect Terraform Provider.
    Viewing docs for konnect 3.23.0
    published on Friday, Sep 18, 2026 by kong

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial