1. Packages
  2. Ionoscloud
  3. API Docs
  4. k8s
  5. getClusters
IonosCloud v0.2.2 published on Monday, May 12, 2025 by ionos-cloud

ionoscloud.k8s.getClusters

Explore with Pulumi AI

ionoscloud logo
IonosCloud v0.2.2 published on Monday, May 12, 2025 by ionos-cloud

    The k8s_clusters data source can be used to search for and return existing kubernetes clusters based on filters used.

    Example Usage

    By Name

    import * as pulumi from "@pulumi/pulumi";
    import * as ionoscloud from "@pulumi/ionoscloud";
    
    const example = ionoscloud.k8s.getClusters({
        filters: [{
            name: "name",
            value: "k8sClusterExample",
        }],
    });
    
    import pulumi
    import pulumi_ionoscloud as ionoscloud
    
    example = ionoscloud.k8s.get_clusters(filters=[{
        "name": "name",
        "value": "k8sClusterExample",
    }])
    
    package main
    
    import (
    	"github.com/ionos-cloud/pulumi-ionoscloud/sdk/go/ionoscloud/k8s"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := k8s.GetClusters(ctx, &k8s.GetClustersArgs{
    			Filters: []k8s.GetClustersFilter{
    				{
    					Name:  "name",
    					Value: "k8sClusterExample",
    				},
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ionoscloud = Pulumi.Ionoscloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Ionoscloud.K8s.GetClusters.Invoke(new()
        {
            Filters = new[]
            {
                new Ionoscloud.K8s.Inputs.GetClustersFilterInputArgs
                {
                    Name = "name",
                    Value = "k8sClusterExample",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ionoscloud.k8s.K8sFunctions;
    import com.pulumi.ionoscloud.k8s.inputs.GetClustersArgs;
    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 example = K8sFunctions.getClusters(GetClustersArgs.builder()
                .filters(GetClustersFilterArgs.builder()
                    .name("name")
                    .value("k8sClusterExample")
                    .build())
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: ionoscloud:k8s:getClusters
          arguments:
            filters:
              - name: name
                value: k8sClusterExample
    

    By Name and k8s version Family

    import * as pulumi from "@pulumi/pulumi";
    import * as ionoscloud from "@pulumi/ionoscloud";
    
    const example2 = ionoscloud.k8s.getClusters({
        filters: [
            {
                name: "name",
                value: "k8sClusterExample",
            },
            {
                name: "k8s_version",
                value: "1.27",
            },
        ],
    });
    
    import pulumi
    import pulumi_ionoscloud as ionoscloud
    
    example2 = ionoscloud.k8s.get_clusters(filters=[
        {
            "name": "name",
            "value": "k8sClusterExample",
        },
        {
            "name": "k8s_version",
            "value": "1.27",
        },
    ])
    
    package main
    
    import (
    	"github.com/ionos-cloud/pulumi-ionoscloud/sdk/go/ionoscloud/k8s"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := k8s.GetClusters(ctx, &k8s.GetClustersArgs{
    			Filters: []k8s.GetClustersFilter{
    				{
    					Name:  "name",
    					Value: "k8sClusterExample",
    				},
    				{
    					Name:  "k8s_version",
    					Value: "1.27",
    				},
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ionoscloud = Pulumi.Ionoscloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example2 = Ionoscloud.K8s.GetClusters.Invoke(new()
        {
            Filters = new[]
            {
                new Ionoscloud.K8s.Inputs.GetClustersFilterInputArgs
                {
                    Name = "name",
                    Value = "k8sClusterExample",
                },
                new Ionoscloud.K8s.Inputs.GetClustersFilterInputArgs
                {
                    Name = "k8s_version",
                    Value = "1.27",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ionoscloud.k8s.K8sFunctions;
    import com.pulumi.ionoscloud.k8s.inputs.GetClustersArgs;
    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 example2 = K8sFunctions.getClusters(GetClustersArgs.builder()
                .filters(            
                    GetClustersFilterArgs.builder()
                        .name("name")
                        .value("k8sClusterExample")
                        .build(),
                    GetClustersFilterArgs.builder()
                        .name("k8s_version")
                        .value("1.27")
                        .build())
                .build());
    
        }
    }
    
    variables:
      example2:
        fn::invoke:
          function: ionoscloud:k8s:getClusters
          arguments:
            filters:
              - name: name
                value: k8sClusterExample
              - name: k8s_version
                value: '1.27'
    

    Retrieve private clusters only, by Name and Cluster State

    import * as pulumi from "@pulumi/pulumi";
    import * as ionoscloud from "@pulumi/ionoscloud";
    
    const example = ionoscloud.compute.getServers({
        filters: [
            {
                name: "name",
                value: "k8sClusterExample",
            },
            {
                name: "state",
                value: "ACTIVE",
            },
            {
                name: "public",
                value: "false",
            },
        ],
    });
    
    import pulumi
    import pulumi_ionoscloud as ionoscloud
    
    example = ionoscloud.compute.get_servers(filters=[
        {
            "name": "name",
            "value": "k8sClusterExample",
        },
        {
            "name": "state",
            "value": "ACTIVE",
        },
        {
            "name": "public",
            "value": "false",
        },
    ])
    
    package main
    
    import (
    	"github.com/ionos-cloud/pulumi-ionoscloud/sdk/go/ionoscloud/compute"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := compute.GetServers(ctx, &compute.GetServersArgs{
    			Filters: []compute.GetServersFilter{
    				{
    					Name:  "name",
    					Value: "k8sClusterExample",
    				},
    				{
    					Name:  "state",
    					Value: "ACTIVE",
    				},
    				{
    					Name:  "public",
    					Value: "false",
    				},
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ionoscloud = Pulumi.Ionoscloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Ionoscloud.Compute.GetServers.Invoke(new()
        {
            Filters = new[]
            {
                new Ionoscloud.Compute.Inputs.GetServersFilterInputArgs
                {
                    Name = "name",
                    Value = "k8sClusterExample",
                },
                new Ionoscloud.Compute.Inputs.GetServersFilterInputArgs
                {
                    Name = "state",
                    Value = "ACTIVE",
                },
                new Ionoscloud.Compute.Inputs.GetServersFilterInputArgs
                {
                    Name = "public",
                    Value = "false",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ionoscloud.compute.ComputeFunctions;
    import com.pulumi.ionoscloud.compute.inputs.GetServersArgs;
    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 example = ComputeFunctions.getServers(GetServersArgs.builder()
                .filters(            
                    GetServersFilterArgs.builder()
                        .name("name")
                        .value("k8sClusterExample")
                        .build(),
                    GetServersFilterArgs.builder()
                        .name("state")
                        .value("ACTIVE")
                        .build(),
                    GetServersFilterArgs.builder()
                        .name("public")
                        .value("false")
                        .build())
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: ionoscloud:compute:getServers
          arguments:
            filters:
              - name: name
                value: k8sClusterExample
              - name: state
                value: ACTIVE
              - name: public
                value: 'false'
    

    Using getClusters

    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 getClusters(args: GetClustersArgs, opts?: InvokeOptions): Promise<GetClustersResult>
    function getClustersOutput(args: GetClustersOutputArgs, opts?: InvokeOptions): Output<GetClustersResult>
    def get_clusters(filters: Optional[Sequence[GetClustersFilter]] = None,
                     opts: Optional[InvokeOptions] = None) -> GetClustersResult
    def get_clusters_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetClustersFilterArgs]]]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetClustersResult]
    func GetClusters(ctx *Context, args *GetClustersArgs, opts ...InvokeOption) (*GetClustersResult, error)
    func GetClustersOutput(ctx *Context, args *GetClustersOutputArgs, opts ...InvokeOption) GetClustersResultOutput

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

    public static class GetClusters 
    {
        public static Task<GetClustersResult> InvokeAsync(GetClustersArgs args, InvokeOptions? opts = null)
        public static Output<GetClustersResult> Invoke(GetClustersInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetClustersResult> getClusters(GetClustersArgs args, InvokeOptions options)
    public static Output<GetClustersResult> getClusters(GetClustersArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ionoscloud:k8s/getClusters:getClusters
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Filters List<Ionoscloud.GetClustersFilter>

    One or more property name - value pairs to be used in filtering the cluster list by the specified attributes. You can use most of the top level fields from the k8s_cluster resource except those containing other nested structures such as maintenance_window or config.

    NOTE: Filtering uses partial matching for all types of values. Searching for a cluster using name:testCluster will find all clusters who have the testCluster substring in their name. This also applies to values for properties that would normally be boolean or numerical.

    Filters []GetClustersFilter

    One or more property name - value pairs to be used in filtering the cluster list by the specified attributes. You can use most of the top level fields from the k8s_cluster resource except those containing other nested structures such as maintenance_window or config.

    NOTE: Filtering uses partial matching for all types of values. Searching for a cluster using name:testCluster will find all clusters who have the testCluster substring in their name. This also applies to values for properties that would normally be boolean or numerical.

    filters List<GetClustersFilter>

    One or more property name - value pairs to be used in filtering the cluster list by the specified attributes. You can use most of the top level fields from the k8s_cluster resource except those containing other nested structures such as maintenance_window or config.

    NOTE: Filtering uses partial matching for all types of values. Searching for a cluster using name:testCluster will find all clusters who have the testCluster substring in their name. This also applies to values for properties that would normally be boolean or numerical.

    filters GetClustersFilter[]

    One or more property name - value pairs to be used in filtering the cluster list by the specified attributes. You can use most of the top level fields from the k8s_cluster resource except those containing other nested structures such as maintenance_window or config.

    NOTE: Filtering uses partial matching for all types of values. Searching for a cluster using name:testCluster will find all clusters who have the testCluster substring in their name. This also applies to values for properties that would normally be boolean or numerical.

    filters Sequence[GetClustersFilter]

    One or more property name - value pairs to be used in filtering the cluster list by the specified attributes. You can use most of the top level fields from the k8s_cluster resource except those containing other nested structures such as maintenance_window or config.

    NOTE: Filtering uses partial matching for all types of values. Searching for a cluster using name:testCluster will find all clusters who have the testCluster substring in their name. This also applies to values for properties that would normally be boolean or numerical.

    filters List<Property Map>

    One or more property name - value pairs to be used in filtering the cluster list by the specified attributes. You can use most of the top level fields from the k8s_cluster resource except those containing other nested structures such as maintenance_window or config.

    NOTE: Filtering uses partial matching for all types of values. Searching for a cluster using name:testCluster will find all clusters who have the testCluster substring in their name. This also applies to values for properties that would normally be boolean or numerical.

    getClusters Result

    The following output properties are available:

    Clusters List<Ionoscloud.GetClustersCluster>
    list of Kubernetes clusters that match the provided filters. The elements of this list are structurally identical to the k8s_cluster datasource, which is limited to retrieving only 1 cluster in a single query.
    Entries int
    indicates the number of clusters found and added to the list after the query has been performed with the specified filters. For a full reference of all the attributes returned, check out documentation
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters List<Ionoscloud.GetClustersFilter>
    Clusters []GetClustersCluster
    list of Kubernetes clusters that match the provided filters. The elements of this list are structurally identical to the k8s_cluster datasource, which is limited to retrieving only 1 cluster in a single query.
    Entries int
    indicates the number of clusters found and added to the list after the query has been performed with the specified filters. For a full reference of all the attributes returned, check out documentation
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters []GetClustersFilter
    clusters List<GetClustersCluster>
    list of Kubernetes clusters that match the provided filters. The elements of this list are structurally identical to the k8s_cluster datasource, which is limited to retrieving only 1 cluster in a single query.
    entries Integer
    indicates the number of clusters found and added to the list after the query has been performed with the specified filters. For a full reference of all the attributes returned, check out documentation
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<GetClustersFilter>
    clusters GetClustersCluster[]
    list of Kubernetes clusters that match the provided filters. The elements of this list are structurally identical to the k8s_cluster datasource, which is limited to retrieving only 1 cluster in a single query.
    entries number
    indicates the number of clusters found and added to the list after the query has been performed with the specified filters. For a full reference of all the attributes returned, check out documentation
    id string
    The provider-assigned unique ID for this managed resource.
    filters GetClustersFilter[]
    clusters Sequence[GetClustersCluster]
    list of Kubernetes clusters that match the provided filters. The elements of this list are structurally identical to the k8s_cluster datasource, which is limited to retrieving only 1 cluster in a single query.
    entries int
    indicates the number of clusters found and added to the list after the query has been performed with the specified filters. For a full reference of all the attributes returned, check out documentation
    id str
    The provider-assigned unique ID for this managed resource.
    filters Sequence[GetClustersFilter]
    clusters List<Property Map>
    list of Kubernetes clusters that match the provided filters. The elements of this list are structurally identical to the k8s_cluster datasource, which is limited to retrieving only 1 cluster in a single query.
    entries Number
    indicates the number of clusters found and added to the list after the query has been performed with the specified filters. For a full reference of all the attributes returned, check out documentation
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<Property Map>

    Supporting Types

    GetClustersCluster

    ApiSubnetAllowLists List<string>
    Access to the K8s API server is restricted to these CIDRs. Cluster-internal traffic is not affected by this restriction. If no allowlist is specified, access is not restricted. If an IP without subnet mask is provided, the default value will be used: 32 for IPv4 and 128 for IPv6.
    AvailableUpgradeVersions List<string>
    A list of available versions for upgrading the cluster
    CaCrt string
    Configs List<Ionoscloud.GetClustersClusterConfig>
    Id string
    K8sVersion string
    KubeConfig string
    Location string
    MaintenanceWindows List<Ionoscloud.GetClustersClusterMaintenanceWindow>
    A maintenance window comprise of a day of the week and a time for maintenance to be allowed
    Name string
    NatGatewayIp string
    The NAT gateway IP of the cluster if the cluster is private.
    NodePools List<string>
    NodeSubnet string
    The node subnet of the cluster, if the cluster is private.
    Public bool
    The indicator if the cluster is public or private.
    S3Buckets List<Ionoscloud.GetClustersClusterS3Bucket>
    List of Object Storage bucket configured for K8s usage. For now it contains only an Object Storage bucket used to store K8s API audit logs.
    Server string
    State string
    UserTokens Dictionary<string, string>
    ViableNodePoolVersions List<string>
    A list of versions that may be used for node pools under this cluster
    ApiSubnetAllowLists []string
    Access to the K8s API server is restricted to these CIDRs. Cluster-internal traffic is not affected by this restriction. If no allowlist is specified, access is not restricted. If an IP without subnet mask is provided, the default value will be used: 32 for IPv4 and 128 for IPv6.
    AvailableUpgradeVersions []string
    A list of available versions for upgrading the cluster
    CaCrt string
    Configs []GetClustersClusterConfig
    Id string
    K8sVersion string
    KubeConfig string
    Location string
    MaintenanceWindows []GetClustersClusterMaintenanceWindow
    A maintenance window comprise of a day of the week and a time for maintenance to be allowed
    Name string
    NatGatewayIp string
    The NAT gateway IP of the cluster if the cluster is private.
    NodePools []string
    NodeSubnet string
    The node subnet of the cluster, if the cluster is private.
    Public bool
    The indicator if the cluster is public or private.
    S3Buckets []GetClustersClusterS3Bucket
    List of Object Storage bucket configured for K8s usage. For now it contains only an Object Storage bucket used to store K8s API audit logs.
    Server string
    State string
    UserTokens map[string]string
    ViableNodePoolVersions []string
    A list of versions that may be used for node pools under this cluster
    apiSubnetAllowLists List<String>
    Access to the K8s API server is restricted to these CIDRs. Cluster-internal traffic is not affected by this restriction. If no allowlist is specified, access is not restricted. If an IP without subnet mask is provided, the default value will be used: 32 for IPv4 and 128 for IPv6.
    availableUpgradeVersions List<String>
    A list of available versions for upgrading the cluster
    caCrt String
    configs List<GetClustersClusterConfig>
    id String
    k8sVersion String
    kubeConfig String
    location String
    maintenanceWindows List<GetClustersClusterMaintenanceWindow>
    A maintenance window comprise of a day of the week and a time for maintenance to be allowed
    name String
    natGatewayIp String
    The NAT gateway IP of the cluster if the cluster is private.
    nodePools List<String>
    nodeSubnet String
    The node subnet of the cluster, if the cluster is private.
    public_ Boolean
    The indicator if the cluster is public or private.
    s3Buckets List<GetClustersClusterS3Bucket>
    List of Object Storage bucket configured for K8s usage. For now it contains only an Object Storage bucket used to store K8s API audit logs.
    server String
    state String
    userTokens Map<String,String>
    viableNodePoolVersions List<String>
    A list of versions that may be used for node pools under this cluster
    apiSubnetAllowLists string[]
    Access to the K8s API server is restricted to these CIDRs. Cluster-internal traffic is not affected by this restriction. If no allowlist is specified, access is not restricted. If an IP without subnet mask is provided, the default value will be used: 32 for IPv4 and 128 for IPv6.
    availableUpgradeVersions string[]
    A list of available versions for upgrading the cluster
    caCrt string
    configs GetClustersClusterConfig[]
    id string
    k8sVersion string
    kubeConfig string
    location string
    maintenanceWindows GetClustersClusterMaintenanceWindow[]
    A maintenance window comprise of a day of the week and a time for maintenance to be allowed
    name string
    natGatewayIp string
    The NAT gateway IP of the cluster if the cluster is private.
    nodePools string[]
    nodeSubnet string
    The node subnet of the cluster, if the cluster is private.
    public boolean
    The indicator if the cluster is public or private.
    s3Buckets GetClustersClusterS3Bucket[]
    List of Object Storage bucket configured for K8s usage. For now it contains only an Object Storage bucket used to store K8s API audit logs.
    server string
    state string
    userTokens {[key: string]: string}
    viableNodePoolVersions string[]
    A list of versions that may be used for node pools under this cluster
    api_subnet_allow_lists Sequence[str]
    Access to the K8s API server is restricted to these CIDRs. Cluster-internal traffic is not affected by this restriction. If no allowlist is specified, access is not restricted. If an IP without subnet mask is provided, the default value will be used: 32 for IPv4 and 128 for IPv6.
    available_upgrade_versions Sequence[str]
    A list of available versions for upgrading the cluster
    ca_crt str
    configs Sequence[GetClustersClusterConfig]
    id str
    k8s_version str
    kube_config str
    location str
    maintenance_windows Sequence[GetClustersClusterMaintenanceWindow]
    A maintenance window comprise of a day of the week and a time for maintenance to be allowed
    name str
    nat_gateway_ip str
    The NAT gateway IP of the cluster if the cluster is private.
    node_pools Sequence[str]
    node_subnet str
    The node subnet of the cluster, if the cluster is private.
    public bool
    The indicator if the cluster is public or private.
    s3_buckets Sequence[GetClustersClusterS3Bucket]
    List of Object Storage bucket configured for K8s usage. For now it contains only an Object Storage bucket used to store K8s API audit logs.
    server str
    state str
    user_tokens Mapping[str, str]
    viable_node_pool_versions Sequence[str]
    A list of versions that may be used for node pools under this cluster
    apiSubnetAllowLists List<String>
    Access to the K8s API server is restricted to these CIDRs. Cluster-internal traffic is not affected by this restriction. If no allowlist is specified, access is not restricted. If an IP without subnet mask is provided, the default value will be used: 32 for IPv4 and 128 for IPv6.
    availableUpgradeVersions List<String>
    A list of available versions for upgrading the cluster
    caCrt String
    configs List<Property Map>
    id String
    k8sVersion String
    kubeConfig String
    location String
    maintenanceWindows List<Property Map>
    A maintenance window comprise of a day of the week and a time for maintenance to be allowed
    name String
    natGatewayIp String
    The NAT gateway IP of the cluster if the cluster is private.
    nodePools List<String>
    nodeSubnet String
    The node subnet of the cluster, if the cluster is private.
    public Boolean
    The indicator if the cluster is public or private.
    s3Buckets List<Property Map>
    List of Object Storage bucket configured for K8s usage. For now it contains only an Object Storage bucket used to store K8s API audit logs.
    server String
    state String
    userTokens Map<String>
    viableNodePoolVersions List<String>
    A list of versions that may be used for node pools under this cluster

    GetClustersClusterConfig

    ApiVersion string
    Clusters List<Ionoscloud.GetClustersClusterConfigCluster>
    list of Kubernetes clusters that match the provided filters. The elements of this list are structurally identical to the k8s_cluster datasource, which is limited to retrieving only 1 cluster in a single query.
    Contexts List<Ionoscloud.GetClustersClusterConfigContext>
    CurrentContext string
    Kind string
    Users List<Ionoscloud.GetClustersClusterConfigUser>
    ApiVersion string
    Clusters []GetClustersClusterConfigCluster
    list of Kubernetes clusters that match the provided filters. The elements of this list are structurally identical to the k8s_cluster datasource, which is limited to retrieving only 1 cluster in a single query.
    Contexts []GetClustersClusterConfigContext
    CurrentContext string
    Kind string
    Users []GetClustersClusterConfigUser
    apiVersion String
    clusters List<GetClustersClusterConfigCluster>
    list of Kubernetes clusters that match the provided filters. The elements of this list are structurally identical to the k8s_cluster datasource, which is limited to retrieving only 1 cluster in a single query.
    contexts List<GetClustersClusterConfigContext>
    currentContext String
    kind String
    users List<GetClustersClusterConfigUser>
    apiVersion string
    clusters GetClustersClusterConfigCluster[]
    list of Kubernetes clusters that match the provided filters. The elements of this list are structurally identical to the k8s_cluster datasource, which is limited to retrieving only 1 cluster in a single query.
    contexts GetClustersClusterConfigContext[]
    currentContext string
    kind string
    users GetClustersClusterConfigUser[]
    api_version str
    clusters Sequence[GetClustersClusterConfigCluster]
    list of Kubernetes clusters that match the provided filters. The elements of this list are structurally identical to the k8s_cluster datasource, which is limited to retrieving only 1 cluster in a single query.
    contexts Sequence[GetClustersClusterConfigContext]
    current_context str
    kind str
    users Sequence[GetClustersClusterConfigUser]
    apiVersion String
    clusters List<Property Map>
    list of Kubernetes clusters that match the provided filters. The elements of this list are structurally identical to the k8s_cluster datasource, which is limited to retrieving only 1 cluster in a single query.
    contexts List<Property Map>
    currentContext String
    kind String
    users List<Property Map>

    GetClustersClusterConfigCluster

    Cluster Dictionary<string, string>
    Name string
    Cluster map[string]string
    Name string
    cluster Map<String,String>
    name String
    cluster {[key: string]: string}
    name string
    cluster Mapping[str, str]
    name str
    cluster Map<String>
    name String

    GetClustersClusterConfigContext

    Context Dictionary<string, string>
    Name string
    Context map[string]string
    Name string
    context Map<String,String>
    name String
    context {[key: string]: string}
    name string
    context Mapping[str, str]
    name str
    context Map<String>
    name String

    GetClustersClusterConfigUser

    Name string
    User Dictionary<string, string>
    Name string
    User map[string]string
    name String
    user Map<String,String>
    name string
    user {[key: string]: string}
    name str
    user Mapping[str, str]
    name String
    user Map<String>

    GetClustersClusterMaintenanceWindow

    DayOfTheWeek string
    Day of the week when maintenance is allowed
    Time string
    A clock time in the day when maintenance is allowed
    DayOfTheWeek string
    Day of the week when maintenance is allowed
    Time string
    A clock time in the day when maintenance is allowed
    dayOfTheWeek String
    Day of the week when maintenance is allowed
    time String
    A clock time in the day when maintenance is allowed
    dayOfTheWeek string
    Day of the week when maintenance is allowed
    time string
    A clock time in the day when maintenance is allowed
    day_of_the_week str
    Day of the week when maintenance is allowed
    time str
    A clock time in the day when maintenance is allowed
    dayOfTheWeek String
    Day of the week when maintenance is allowed
    time String
    A clock time in the day when maintenance is allowed

    GetClustersClusterS3Bucket

    Name string
    Name of the Object Storage bucket
    Name string
    Name of the Object Storage bucket
    name String
    Name of the Object Storage bucket
    name string
    Name of the Object Storage bucket
    name str
    Name of the Object Storage bucket
    name String
    Name of the Object Storage bucket

    GetClustersFilter

    Name string
    Value string
    Name string
    Value string
    name String
    value String
    name string
    value string
    name str
    value str
    name String
    value String

    Package Details

    Repository
    ionoscloud ionos-cloud/pulumi-ionoscloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ionoscloud Terraform Provider.
    ionoscloud logo
    IonosCloud v0.2.2 published on Monday, May 12, 2025 by ionos-cloud