1. Registry
  2. Packages
  3. Konnect Provider
  4. API Docs
  5. getTeam
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

    Team DataSource

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as konnect from "@pulumi/konnect";
    
    const myTeam = konnect.getTeam({
        filter: {
            labels: {
                key: {
                    contains: "...my_contains...",
                    eq: "...my_eq...",
                    exists: false,
                },
            },
            name: {
                contains: "...my_contains...",
                eq: "...my_eq...",
            },
        },
    });
    
    import pulumi
    import pulumi_konnect as konnect
    
    my_team = konnect.get_team(filter={
        "labels": {
            "key": {
                "contains": "...my_contains...",
                "eq": "...my_eq...",
                "exists": False,
            },
        },
        "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.LookupTeam(ctx, &konnect.LookupTeamArgs{
    			Filter: konnect.GetTeamFilter{
    				Labels: pulumi.Konnect.GetTeamFilterLabelsMap{
    					"key": konnect.GetTeamFilterLabels{
    						Contains: pulumi.StringRef("...my_contains..."),
    						Eq:       pulumi.StringRef("...my_eq..."),
    						Exists:   pulumi.BoolRef(false),
    					},
    				},
    				Name: konnect.GetTeamFilterName{
    					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 myTeam = Konnect.GetTeam.Invoke(new()
        {
            Filter = new Konnect.Inputs.GetTeamFilterInputArgs
            {
                Labels = 
                {
                    { "key", new Konnect.Inputs.GetTeamFilterLabelsInputArgs
                    {
                        Contains = "...my_contains...",
                        Eq = "...my_eq...",
                        Exists = false,
                    } },
                },
                Name = new Konnect.Inputs.GetTeamFilterNameInputArgs
                {
                    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.GetTeamArgs;
    import com.pulumi.konnect.inputs.GetTeamFilterArgs;
    import com.pulumi.konnect.inputs.GetTeamFilterNameArgs;
    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 myTeam = KonnectFunctions.getTeam(GetTeamArgs.builder()
                .filter(GetTeamFilterArgs.builder()
                    .labels(Map.of("key", GetTeamFilterLabelsArgs.builder()
                        .contains("...my_contains...")
                        .eq("...my_eq...")
                        .exists(false)
                        .build()))
                    .name(GetTeamFilterNameArgs.builder()
                        .contains("...my_contains...")
                        .eq("...my_eq...")
                        .build())
                    .build())
                .build());
    
        }
    }
    
    variables:
      myTeam:
        fn::invoke:
          function: konnect:getTeam
          arguments:
            filter:
              labels:
                key:
                  contains: '...my_contains...'
                  eq: '...my_eq...'
                  exists: false
              name:
                contains: '...my_contains...'
                eq: '...my_eq...'
    
    Example coming soon!
    

    Using getTeam

    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 getTeam(args: GetTeamArgs, opts?: InvokeOptions): Promise<GetTeamResult>
    function getTeamOutput(args: GetTeamOutputArgs, opts?: InvokeOutputOptions): Output<GetTeamResult>
    def get_team(filter: Optional[GetTeamFilter] = None,
                 opts: Optional[InvokeOptions] = None) -> GetTeamResult
    def get_team_output(filter: pulumi.Input[Optional[GetTeamFilterArgs]] = None,
                 opts: Optional[InvokeOutputOptions] = None) -> Output[GetTeamResult]
    func LookupTeam(ctx *Context, args *LookupTeamArgs, opts ...InvokeOption) (*LookupTeamResult, error)
    func LookupTeamOutput(ctx *Context, args *LookupTeamOutputArgs, opts ...InvokeOption) LookupTeamResultOutput

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

    public static class GetTeam 
    {
        public static Task<GetTeamResult> InvokeAsync(GetTeamArgs args, InvokeOptions? opts = null)
        public static Output<GetTeamResult> Invoke(GetTeamInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetTeamResult> Invoke(GetTeamInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetTeamResult> getTeam(GetTeamArgs args, InvokeOptions options)
    public static Output<GetTeamResult> getTeam(GetTeamArgs args, InvokeOptions options)
    public static Output<GetTeamResult> getTeam(GetTeamArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: konnect:index/getTeam:getTeam
      arguments:
        # arguments dictionary
    data "konnect_get_team" "name" {
        # arguments
    }

    The following arguments are supported:

    Filter GetTeamFilter
    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 GetTeamFilter
    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 GetTeamFilter
    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 GetTeamFilter
    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 GetTeamFilter
    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.

    getTeam Result

    The following output properties are available:

    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
    SystemTeam bool
    UpdatedAt string
    Filter GetTeamFilter
    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.
    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
    SystemTeam bool
    UpdatedAt string
    Filter GetTeamFilter
    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.
    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
    system_team bool
    updated_at string
    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.
    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
    systemTeam Boolean
    updatedAt String
    filter GetTeamFilter
    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.
    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
    systemTeam boolean
    updatedAt string
    filter GetTeamFilter
    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.
    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
    system_team bool
    updated_at str
    filter GetTeamFilter
    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.
    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
    systemTeam Boolean
    updatedAt String
    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

    GetTeamFilter

    Labels Dictionary<string, GetTeamFilterLabels>
    Name GetTeamFilterName
    Filter using one of the following operators: eq, contains
    Labels map[string]GetTeamFilterLabels
    Name GetTeamFilterName
    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,GetTeamFilterLabels>
    name GetTeamFilterName
    Filter using one of the following operators: eq, contains
    labels {[key: string]: GetTeamFilterLabels}
    name GetTeamFilterName
    Filter using one of the following operators: eq, contains
    labels Mapping[str, GetTeamFilterLabels]
    name GetTeamFilterName
    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

    GetTeamFilterLabels

    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

    GetTeamFilterName

    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