1. Packages
  2. Packages
  3. Konnect Provider
  4. API Docs
  5. getMeshControlPlanes
Viewing docs for konnect 3.21.0
published on Tuesday, Aug 4, 2026 by kong
Viewing docs for konnect 3.21.0
published on Tuesday, Aug 4, 2026 by kong

    MeshControlPlanes DataSource

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as konnect from "@pulumi/konnect";
    
    const myMeshcontrolplanes = konnect.getMeshControlPlanes({
        filter: {
            labels: {
                contains: "...my_contains...",
                eq: "...my_eq...",
                neq: "...my_neq...",
                ocontains: "...my_ocontains...",
                oeq: "...my_oeq...",
            },
            name: {
                contains: "...my_contains...",
                eq: "...my_eq...",
            },
        },
    });
    
    import pulumi
    import pulumi_konnect as konnect
    
    my_meshcontrolplanes = konnect.get_mesh_control_planes(filter={
        "labels": {
            "contains": "...my_contains...",
            "eq": "...my_eq...",
            "neq": "...my_neq...",
            "ocontains": "...my_ocontains...",
            "oeq": "...my_oeq...",
        },
        "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.GetMeshControlPlanes(ctx, &konnect.GetMeshControlPlanesArgs{
    			Filter: konnect.GetMeshControlPlanesFilter{
    				Labels: konnect.GetMeshControlPlanesFilterLabels{
    					Contains:  pulumi.StringRef("...my_contains..."),
    					Eq:        pulumi.StringRef("...my_eq..."),
    					Neq:       pulumi.StringRef("...my_neq..."),
    					Ocontains: pulumi.StringRef("...my_ocontains..."),
    					Oeq:       pulumi.StringRef("...my_oeq..."),
    				},
    				Name: konnect.GetMeshControlPlanesFilterName{
    					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 myMeshcontrolplanes = Konnect.GetMeshControlPlanes.Invoke(new()
        {
            Filter = new Konnect.Inputs.GetMeshControlPlanesFilterInputArgs
            {
                Labels = new Konnect.Inputs.GetMeshControlPlanesFilterLabelsInputArgs
                {
                    Contains = "...my_contains...",
                    Eq = "...my_eq...",
                    Neq = "...my_neq...",
                    Ocontains = "...my_ocontains...",
                    Oeq = "...my_oeq...",
                },
                Name = new Konnect.Inputs.GetMeshControlPlanesFilterNameInputArgs
                {
                    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.GetMeshControlPlanesArgs;
    import com.pulumi.konnect.inputs.GetMeshControlPlanesFilterArgs;
    import com.pulumi.konnect.inputs.GetMeshControlPlanesFilterLabelsArgs;
    import com.pulumi.konnect.inputs.GetMeshControlPlanesFilterNameArgs;
    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 myMeshcontrolplanes = KonnectFunctions.getMeshControlPlanes(GetMeshControlPlanesArgs.builder()
                .filter(GetMeshControlPlanesFilterArgs.builder()
                    .labels(GetMeshControlPlanesFilterLabelsArgs.builder()
                        .contains("...my_contains...")
                        .eq("...my_eq...")
                        .neq("...my_neq...")
                        .ocontains("...my_ocontains...")
                        .oeq("...my_oeq...")
                        .build())
                    .name(GetMeshControlPlanesFilterNameArgs.builder()
                        .contains("...my_contains...")
                        .eq("...my_eq...")
                        .build())
                    .build())
                .build());
    
        }
    }
    
    variables:
      myMeshcontrolplanes:
        fn::invoke:
          function: konnect:getMeshControlPlanes
          arguments:
            filter:
              labels:
                contains: '...my_contains...'
                eq: '...my_eq...'
                neq: '...my_neq...'
                ocontains: '...my_ocontains...'
                oeq: '...my_oeq...'
              name:
                contains: '...my_contains...'
                eq: '...my_eq...'
    
    Example coming soon!
    

    Using getMeshControlPlanes

    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 getMeshControlPlanes(args: GetMeshControlPlanesArgs, opts?: InvokeOptions): Promise<GetMeshControlPlanesResult>
    function getMeshControlPlanesOutput(args: GetMeshControlPlanesOutputArgs, opts?: InvokeOptions): Output<GetMeshControlPlanesResult>
    def get_mesh_control_planes(filter: Optional[GetMeshControlPlanesFilter] = None,
                                opts: Optional[InvokeOptions] = None) -> GetMeshControlPlanesResult
    def get_mesh_control_planes_output(filter: pulumi.Input[Optional[GetMeshControlPlanesFilterArgs]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetMeshControlPlanesResult]
    func GetMeshControlPlanes(ctx *Context, args *GetMeshControlPlanesArgs, opts ...InvokeOption) (*GetMeshControlPlanesResult, error)
    func GetMeshControlPlanesOutput(ctx *Context, args *GetMeshControlPlanesOutputArgs, opts ...InvokeOption) GetMeshControlPlanesResultOutput

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

    public static class GetMeshControlPlanes 
    {
        public static Task<GetMeshControlPlanesResult> InvokeAsync(GetMeshControlPlanesArgs args, InvokeOptions? opts = null)
        public static Output<GetMeshControlPlanesResult> Invoke(GetMeshControlPlanesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMeshControlPlanesResult> getMeshControlPlanes(GetMeshControlPlanesArgs args, InvokeOptions options)
    public static Output<GetMeshControlPlanesResult> getMeshControlPlanes(GetMeshControlPlanesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: konnect:index/getMeshControlPlanes:getMeshControlPlanes
      arguments:
        # arguments dictionary
    data "konnect_get_mesh_control_planes" "name" {
        # arguments
    }

    The following arguments are supported:

    Filter GetMeshControlPlanesFilter
    Filters a collection of control planes.
    Filter GetMeshControlPlanesFilter
    Filters a collection of control planes.
    filter object
    Filters a collection of control planes.
    filter GetMeshControlPlanesFilter
    Filters a collection of control planes.
    filter GetMeshControlPlanesFilter
    Filters a collection of control planes.
    filter GetMeshControlPlanesFilter
    Filters a collection of control planes.
    filter Property Map
    Filters a collection of control planes.

    getMeshControlPlanes Result

    The following output properties are available:

    Datas List<GetMeshControlPlanesData>
    Id string
    The provider-assigned unique ID for this managed resource.
    Filter GetMeshControlPlanesFilter
    Filters a collection of control planes.
    Datas []GetMeshControlPlanesData
    Id string
    The provider-assigned unique ID for this managed resource.
    Filter GetMeshControlPlanesFilter
    Filters a collection of control planes.
    datas list(object)
    id string
    The provider-assigned unique ID for this managed resource.
    filter object
    Filters a collection of control planes.
    datas List<GetMeshControlPlanesData>
    id String
    The provider-assigned unique ID for this managed resource.
    filter GetMeshControlPlanesFilter
    Filters a collection of control planes.
    datas GetMeshControlPlanesData[]
    id string
    The provider-assigned unique ID for this managed resource.
    filter GetMeshControlPlanesFilter
    Filters a collection of control planes.
    datas Sequence[GetMeshControlPlanesData]
    id str
    The provider-assigned unique ID for this managed resource.
    filter GetMeshControlPlanesFilter
    Filters a collection of control planes.
    datas List<Property Map>
    id String
    The provider-assigned unique ID for this managed resource.
    filter Property Map
    Filters a collection of control planes.

    Supporting Types

    GetMeshControlPlanesData

    CreatedAt string
    Description string
    Features List<GetMeshControlPlanesDataFeature>
    Id string
    ID of the control plane.
    Labels Dictionary<string, string>
    Labels to facilitate tagged search on control planes. Keys must be of length 1-63 characters.
    Name string
    The name of the control plane.
    UpdatedAt string
    CreatedAt string
    Description string
    Features []GetMeshControlPlanesDataFeature
    Id string
    ID of the control plane.
    Labels map[string]string
    Labels to facilitate tagged search on control planes. Keys must be of length 1-63 characters.
    Name string
    The name of the control plane.
    UpdatedAt string
    created_at string
    description string
    features list(object)
    id string
    ID of the control plane.
    labels map(string)
    Labels to facilitate tagged search on control planes. Keys must be of length 1-63 characters.
    name string
    The name of the control plane.
    updated_at string
    createdAt String
    description String
    features List<GetMeshControlPlanesDataFeature>
    id String
    ID of the control plane.
    labels Map<String,String>
    Labels to facilitate tagged search on control planes. Keys must be of length 1-63 characters.
    name String
    The name of the control plane.
    updatedAt String
    createdAt string
    description string
    features GetMeshControlPlanesDataFeature[]
    id string
    ID of the control plane.
    labels {[key: string]: string}
    Labels to facilitate tagged search on control planes. Keys must be of length 1-63 characters.
    name string
    The name of the control plane.
    updatedAt string
    created_at str
    description str
    features Sequence[GetMeshControlPlanesDataFeature]
    id str
    ID of the control plane.
    labels Mapping[str, str]
    Labels to facilitate tagged search on control planes. Keys must be of length 1-63 characters.
    name str
    The name of the control plane.
    updated_at str
    createdAt String
    description String
    features List<Property Map>
    id String
    ID of the control plane.
    labels Map<String>
    Labels to facilitate tagged search on control planes. Keys must be of length 1-63 characters.
    name String
    The name of the control plane.
    updatedAt String

    GetMeshControlPlanesDataFeature

    GetMeshControlPlanesDataFeatureHostnameGeneratorCreation

    Enabled bool
    Enabled bool
    enabled bool
    enabled Boolean
    enabled boolean
    enabled bool
    enabled Boolean

    GetMeshControlPlanesDataFeatureMeshCreation

    Enabled bool
    Enabled bool
    enabled bool
    enabled Boolean
    enabled boolean
    enabled bool
    enabled Boolean

    GetMeshControlPlanesFilter

    Labels GetMeshControlPlanesFilterLabels
    Filter using one of the following operators: eq, oeq, neq, contains, ocontains
    Name GetMeshControlPlanesFilterName
    Filter using one of the following operators: eq, contains
    Labels GetMeshControlPlanesFilterLabels
    Filter using one of the following operators: eq, oeq, neq, contains, ocontains
    Name GetMeshControlPlanesFilterName
    Filter using one of the following operators: eq, contains
    labels object
    Filter using one of the following operators: eq, oeq, neq, contains, ocontains
    name object
    Filter using one of the following operators: eq, contains
    labels GetMeshControlPlanesFilterLabels
    Filter using one of the following operators: eq, oeq, neq, contains, ocontains
    name GetMeshControlPlanesFilterName
    Filter using one of the following operators: eq, contains
    labels GetMeshControlPlanesFilterLabels
    Filter using one of the following operators: eq, oeq, neq, contains, ocontains
    name GetMeshControlPlanesFilterName
    Filter using one of the following operators: eq, contains
    labels GetMeshControlPlanesFilterLabels
    Filter using one of the following operators: eq, oeq, neq, contains, ocontains
    name GetMeshControlPlanesFilterName
    Filter using one of the following operators: eq, contains
    labels Property Map
    Filter using one of the following operators: eq, oeq, neq, contains, ocontains
    name Property Map
    Filter using one of the following operators: eq, contains

    GetMeshControlPlanesFilterLabels

    Contains string
    The field contains the provided value.
    Eq string
    The field exactly matches the provided value.
    Neq string
    The field does not match the provided value.
    Ocontains string
    The field contains any of the provided values.
    Oeq string
    The field matches any of the provided values.
    Contains string
    The field contains the provided value.
    Eq string
    The field exactly matches the provided value.
    Neq string
    The field does not match the provided value.
    Ocontains string
    The field contains any of the provided values.
    Oeq string
    The field matches any of the provided values.
    contains string
    The field contains the provided value.
    eq string
    The field exactly matches the provided value.
    neq string
    The field does not match the provided value.
    ocontains string
    The field contains any of the provided values.
    oeq string
    The field matches any of the provided values.
    contains String
    The field contains the provided value.
    eq String
    The field exactly matches the provided value.
    neq String
    The field does not match the provided value.
    ocontains String
    The field contains any of the provided values.
    oeq String
    The field matches any of the provided values.
    contains string
    The field contains the provided value.
    eq string
    The field exactly matches the provided value.
    neq string
    The field does not match the provided value.
    ocontains string
    The field contains any of the provided values.
    oeq string
    The field matches any of the provided values.
    contains str
    The field contains the provided value.
    eq str
    The field exactly matches the provided value.
    neq str
    The field does not match the provided value.
    ocontains str
    The field contains any of the provided values.
    oeq str
    The field matches any of the provided values.
    contains String
    The field contains the provided value.
    eq String
    The field exactly matches the provided value.
    neq String
    The field does not match the provided value.
    ocontains String
    The field contains any of the provided values.
    oeq String
    The field matches any of the provided values.

    GetMeshControlPlanesFilterName

    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.21.0
    published on Tuesday, Aug 4, 2026 by kong

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial