vcd.getCseKubernetesCluster
Explore with Pulumi AI
Provides a data source to read Kubernetes clusters in VMware Cloud Director with Container Service Extension (CSE) installed and running.
Supported in provider v3.12+
Supports the following Container Service Extension versions:
- 4.1.0
- 4.1.1 / 4.1.1a
- 4.2.0
- 4.2.1
- 4.2.2
- 4.2.3
To install CSE in VMware Cloud Director, please follow this guide
Example Usage
With ID
The cluster ID identifies unequivocally the cluster within VCD, and can be obtained with the CSE Kubernetes Clusters UI Plugin, by selecting the desired cluster and obtaining the ID from the displayed information.
import * as pulumi from "@pulumi/pulumi";
import * as vcd from "@pulumi/vcd";
const myCluster = vcd.getCseKubernetesCluster({
clusterId: "urn:vcloud:entity:vmware:capvcdCluster:e8e82bcc-50a1-484f-9dd0-20965ab3e865",
});
import pulumi
import pulumi_vcd as vcd
my_cluster = vcd.get_cse_kubernetes_cluster(cluster_id="urn:vcloud:entity:vmware:capvcdCluster:e8e82bcc-50a1-484f-9dd0-20965ab3e865")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/vcd/v3/vcd"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vcd.LookupCseKubernetesCluster(ctx, &vcd.LookupCseKubernetesClusterArgs{
ClusterId: pulumi.StringRef("urn:vcloud:entity:vmware:capvcdCluster:e8e82bcc-50a1-484f-9dd0-20965ab3e865"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vcd = Pulumi.Vcd;
return await Deployment.RunAsync(() =>
{
var myCluster = Vcd.GetCseKubernetesCluster.Invoke(new()
{
ClusterId = "urn:vcloud:entity:vmware:capvcdCluster:e8e82bcc-50a1-484f-9dd0-20965ab3e865",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vcd.VcdFunctions;
import com.pulumi.vcd.inputs.GetCseKubernetesClusterArgs;
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 myCluster = VcdFunctions.getCseKubernetesCluster(GetCseKubernetesClusterArgs.builder()
.clusterId("urn:vcloud:entity:vmware:capvcdCluster:e8e82bcc-50a1-484f-9dd0-20965ab3e865")
.build());
}
}
variables:
myCluster:
fn::invoke:
function: vcd:getCseKubernetesCluster
arguments:
clusterId: urn:vcloud:entity:vmware:capvcdCluster:e8e82bcc-50a1-484f-9dd0-20965ab3e865
Using getCseKubernetesCluster
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 getCseKubernetesCluster(args: GetCseKubernetesClusterArgs, opts?: InvokeOptions): Promise<GetCseKubernetesClusterResult>
function getCseKubernetesClusterOutput(args: GetCseKubernetesClusterOutputArgs, opts?: InvokeOptions): Output<GetCseKubernetesClusterResult>
def get_cse_kubernetes_cluster(cluster_id: Optional[str] = None,
cse_version: Optional[str] = None,
id: Optional[str] = None,
name: Optional[str] = None,
org_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCseKubernetesClusterResult
def get_cse_kubernetes_cluster_output(cluster_id: Optional[pulumi.Input[str]] = None,
cse_version: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
org_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCseKubernetesClusterResult]
func LookupCseKubernetesCluster(ctx *Context, args *LookupCseKubernetesClusterArgs, opts ...InvokeOption) (*LookupCseKubernetesClusterResult, error)
func LookupCseKubernetesClusterOutput(ctx *Context, args *LookupCseKubernetesClusterOutputArgs, opts ...InvokeOption) LookupCseKubernetesClusterResultOutput
> Note: This function is named LookupCseKubernetesCluster
in the Go SDK.
public static class GetCseKubernetesCluster
{
public static Task<GetCseKubernetesClusterResult> InvokeAsync(GetCseKubernetesClusterArgs args, InvokeOptions? opts = null)
public static Output<GetCseKubernetesClusterResult> Invoke(GetCseKubernetesClusterInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCseKubernetesClusterResult> getCseKubernetesCluster(GetCseKubernetesClusterArgs args, InvokeOptions options)
public static Output<GetCseKubernetesClusterResult> getCseKubernetesCluster(GetCseKubernetesClusterArgs args, InvokeOptions options)
fn::invoke:
function: vcd:index/getCseKubernetesCluster:getCseKubernetesCluster
arguments:
# arguments dictionary
The following arguments are supported:
- Cluster
Id string - Unequivocally identifies a cluster in VCD. Either
cluster_id
orname
must be set. - Cse
Version string - Specifies the CSE Version of the cluster to find when
name
is used instead ofcluster_id
. - Id string
- Name string
- Allows to find a Kubernetes cluster by name inside the given Organization with ID
org_id
. Eithercluster_id
orname
must be set. This argument requirescse_version
andorg_id
to be set. - Org
Id string - The ID of the Organization to which the Kubernetes cluster belongs. Only used if
cluster_id
is not set. Must be present ifname
is used.
- Cluster
Id string - Unequivocally identifies a cluster in VCD. Either
cluster_id
orname
must be set. - Cse
Version string - Specifies the CSE Version of the cluster to find when
name
is used instead ofcluster_id
. - Id string
- Name string
- Allows to find a Kubernetes cluster by name inside the given Organization with ID
org_id
. Eithercluster_id
orname
must be set. This argument requirescse_version
andorg_id
to be set. - Org
Id string - The ID of the Organization to which the Kubernetes cluster belongs. Only used if
cluster_id
is not set. Must be present ifname
is used.
- cluster
Id String - Unequivocally identifies a cluster in VCD. Either
cluster_id
orname
must be set. - cse
Version String - Specifies the CSE Version of the cluster to find when
name
is used instead ofcluster_id
. - id String
- name String
- Allows to find a Kubernetes cluster by name inside the given Organization with ID
org_id
. Eithercluster_id
orname
must be set. This argument requirescse_version
andorg_id
to be set. - org
Id String - The ID of the Organization to which the Kubernetes cluster belongs. Only used if
cluster_id
is not set. Must be present ifname
is used.
- cluster
Id string - Unequivocally identifies a cluster in VCD. Either
cluster_id
orname
must be set. - cse
Version string - Specifies the CSE Version of the cluster to find when
name
is used instead ofcluster_id
. - id string
- name string
- Allows to find a Kubernetes cluster by name inside the given Organization with ID
org_id
. Eithercluster_id
orname
must be set. This argument requirescse_version
andorg_id
to be set. - org
Id string - The ID of the Organization to which the Kubernetes cluster belongs. Only used if
cluster_id
is not set. Must be present ifname
is used.
- cluster_
id str - Unequivocally identifies a cluster in VCD. Either
cluster_id
orname
must be set. - cse_
version str - Specifies the CSE Version of the cluster to find when
name
is used instead ofcluster_id
. - id str
- name str
- Allows to find a Kubernetes cluster by name inside the given Organization with ID
org_id
. Eithercluster_id
orname
must be set. This argument requirescse_version
andorg_id
to be set. - org_
id str - The ID of the Organization to which the Kubernetes cluster belongs. Only used if
cluster_id
is not set. Must be present ifname
is used.
- cluster
Id String - Unequivocally identifies a cluster in VCD. Either
cluster_id
orname
must be set. - cse
Version String - Specifies the CSE Version of the cluster to find when
name
is used instead ofcluster_id
. - id String
- name String
- Allows to find a Kubernetes cluster by name inside the given Organization with ID
org_id
. Eithercluster_id
orname
must be set. This argument requirescse_version
andorg_id
to be set. - org
Id String - The ID of the Organization to which the Kubernetes cluster belongs. Only used if
cluster_id
is not set. Must be present ifname
is used.
getCseKubernetesCluster Result
The following output properties are available:
- Auto
Repair boolOn Errors - Capvcd
Version string - Cluster
Resource List<string>Set Bindings - Control
Planes List<GetCse Kubernetes Cluster Control Plane> - Cpi
Version string - Csi
Version string - Default
Storage List<GetClasses Cse Kubernetes Cluster Default Storage Class> - Events
List<Get
Cse Kubernetes Cluster Event> - Id string
- Kubeconfig string
- Kubernetes
Template stringId - Kubernetes
Version string - Network
Id string - Node
Health boolCheck - Owner string
- Pods
Cidr string - Runtime string
- Services
Cidr string - Ssh
Public stringKey - State string
- Supported
Upgrades List<string> - Tkg
Product stringVersion - Vdc
Id string - Virtual
Ip stringSubnet - Worker
Pools List<GetCse Kubernetes Cluster Worker Pool> - Cluster
Id string - Cse
Version string - Name string
- Org
Id string
- Auto
Repair boolOn Errors - Capvcd
Version string - Cluster
Resource []stringSet Bindings - Control
Planes []GetCse Kubernetes Cluster Control Plane - Cpi
Version string - Csi
Version string - Default
Storage []GetClasses Cse Kubernetes Cluster Default Storage Class - Events
[]Get
Cse Kubernetes Cluster Event - Id string
- Kubeconfig string
- Kubernetes
Template stringId - Kubernetes
Version string - Network
Id string - Node
Health boolCheck - Owner string
- Pods
Cidr string - Runtime string
- Services
Cidr string - Ssh
Public stringKey - State string
- Supported
Upgrades []string - Tkg
Product stringVersion - Vdc
Id string - Virtual
Ip stringSubnet - Worker
Pools []GetCse Kubernetes Cluster Worker Pool - Cluster
Id string - Cse
Version string - Name string
- Org
Id string
- auto
Repair BooleanOn Errors - capvcd
Version String - cluster
Resource List<String>Set Bindings - control
Planes List<GetCse Kubernetes Cluster Control Plane> - cpi
Version String - csi
Version String - default
Storage List<GetClasses Cse Kubernetes Cluster Default Storage Class> - events
List<Get
Cse Kubernetes Cluster Event> - id String
- kubeconfig String
- kubernetes
Template StringId - kubernetes
Version String - network
Id String - node
Health BooleanCheck - owner String
- pods
Cidr String - runtime String
- services
Cidr String - ssh
Public StringKey - state String
- supported
Upgrades List<String> - tkg
Product StringVersion - vdc
Id String - virtual
Ip StringSubnet - worker
Pools List<GetCse Kubernetes Cluster Worker Pool> - cluster
Id String - cse
Version String - name String
- org
Id String
- auto
Repair booleanOn Errors - capvcd
Version string - cluster
Resource string[]Set Bindings - control
Planes GetCse Kubernetes Cluster Control Plane[] - cpi
Version string - csi
Version string - default
Storage GetClasses Cse Kubernetes Cluster Default Storage Class[] - events
Get
Cse Kubernetes Cluster Event[] - id string
- kubeconfig string
- kubernetes
Template stringId - kubernetes
Version string - network
Id string - node
Health booleanCheck - owner string
- pods
Cidr string - runtime string
- services
Cidr string - ssh
Public stringKey - state string
- supported
Upgrades string[] - tkg
Product stringVersion - vdc
Id string - virtual
Ip stringSubnet - worker
Pools GetCse Kubernetes Cluster Worker Pool[] - cluster
Id string - cse
Version string - name string
- org
Id string
- auto_
repair_ boolon_ errors - capvcd_
version str - cluster_
resource_ Sequence[str]set_ bindings - control_
planes Sequence[GetCse Kubernetes Cluster Control Plane] - cpi_
version str - csi_
version str - default_
storage_ Sequence[Getclasses Cse Kubernetes Cluster Default Storage Class] - events
Sequence[Get
Cse Kubernetes Cluster Event] - id str
- kubeconfig str
- kubernetes_
template_ strid - kubernetes_
version str - network_
id str - node_
health_ boolcheck - owner str
- pods_
cidr str - runtime str
- services_
cidr str - ssh_
public_ strkey - state str
- supported_
upgrades Sequence[str] - tkg_
product_ strversion - vdc_
id str - virtual_
ip_ strsubnet - worker_
pools Sequence[GetCse Kubernetes Cluster Worker Pool] - cluster_
id str - cse_
version str - name str
- org_
id str
- auto
Repair BooleanOn Errors - capvcd
Version String - cluster
Resource List<String>Set Bindings - control
Planes List<Property Map> - cpi
Version String - csi
Version String - default
Storage List<Property Map>Classes - events List<Property Map>
- id String
- kubeconfig String
- kubernetes
Template StringId - kubernetes
Version String - network
Id String - node
Health BooleanCheck - owner String
- pods
Cidr String - runtime String
- services
Cidr String - ssh
Public StringKey - state String
- supported
Upgrades List<String> - tkg
Product StringVersion - vdc
Id String - virtual
Ip StringSubnet - worker
Pools List<Property Map> - cluster
Id String - cse
Version String - name String
- org
Id String
Supporting Types
GetCseKubernetesClusterControlPlane
- Disk
Size doubleGi - Ip string
- Machine
Count double - Placement
Policy stringId - Sizing
Policy stringId - Storage
Profile stringId
- Disk
Size float64Gi - Ip string
- Machine
Count float64 - Placement
Policy stringId - Sizing
Policy stringId - Storage
Profile stringId
- disk
Size DoubleGi - ip String
- machine
Count Double - placement
Policy StringId - sizing
Policy StringId - storage
Profile StringId
- disk
Size numberGi - ip string
- machine
Count number - placement
Policy stringId - sizing
Policy stringId - storage
Profile stringId
- disk_
size_ floatgi - ip str
- machine_
count float - placement_
policy_ strid - sizing_
policy_ strid - storage_
profile_ strid
- disk
Size NumberGi - ip String
- machine
Count Number - placement
Policy StringId - sizing
Policy StringId - storage
Profile StringId
GetCseKubernetesClusterDefaultStorageClass
- Filesystem string
- Name string
- Allows to find a Kubernetes cluster by name inside the given Organization with ID
org_id
. Eithercluster_id
orname
must be set. This argument requirescse_version
andorg_id
to be set. - Reclaim
Policy string - Storage
Profile stringId
- Filesystem string
- Name string
- Allows to find a Kubernetes cluster by name inside the given Organization with ID
org_id
. Eithercluster_id
orname
must be set. This argument requirescse_version
andorg_id
to be set. - Reclaim
Policy string - Storage
Profile stringId
- filesystem String
- name String
- Allows to find a Kubernetes cluster by name inside the given Organization with ID
org_id
. Eithercluster_id
orname
must be set. This argument requirescse_version
andorg_id
to be set. - reclaim
Policy String - storage
Profile StringId
- filesystem string
- name string
- Allows to find a Kubernetes cluster by name inside the given Organization with ID
org_id
. Eithercluster_id
orname
must be set. This argument requirescse_version
andorg_id
to be set. - reclaim
Policy string - storage
Profile stringId
- filesystem str
- name str
- Allows to find a Kubernetes cluster by name inside the given Organization with ID
org_id
. Eithercluster_id
orname
must be set. This argument requirescse_version
andorg_id
to be set. - reclaim_
policy str - storage_
profile_ strid
- filesystem String
- name String
- Allows to find a Kubernetes cluster by name inside the given Organization with ID
org_id
. Eithercluster_id
orname
must be set. This argument requirescse_version
andorg_id
to be set. - reclaim
Policy String - storage
Profile StringId
GetCseKubernetesClusterEvent
- Details string
- Name string
- Allows to find a Kubernetes cluster by name inside the given Organization with ID
org_id
. Eithercluster_id
orname
must be set. This argument requirescse_version
andorg_id
to be set. - Occurred
At string - Resource
Id string - Type string
- Details string
- Name string
- Allows to find a Kubernetes cluster by name inside the given Organization with ID
org_id
. Eithercluster_id
orname
must be set. This argument requirescse_version
andorg_id
to be set. - Occurred
At string - Resource
Id string - Type string
- details String
- name String
- Allows to find a Kubernetes cluster by name inside the given Organization with ID
org_id
. Eithercluster_id
orname
must be set. This argument requirescse_version
andorg_id
to be set. - occurred
At String - resource
Id String - type String
- details string
- name string
- Allows to find a Kubernetes cluster by name inside the given Organization with ID
org_id
. Eithercluster_id
orname
must be set. This argument requirescse_version
andorg_id
to be set. - occurred
At string - resource
Id string - type string
- details str
- name str
- Allows to find a Kubernetes cluster by name inside the given Organization with ID
org_id
. Eithercluster_id
orname
must be set. This argument requirescse_version
andorg_id
to be set. - occurred_
at str - resource_
id str - type str
- details String
- name String
- Allows to find a Kubernetes cluster by name inside the given Organization with ID
org_id
. Eithercluster_id
orname
must be set. This argument requirescse_version
andorg_id
to be set. - occurred
At String - resource
Id String - type String
GetCseKubernetesClusterWorkerPool
- Autoscaler
Max doubleReplicas - Autoscaler
Min doubleReplicas - Disk
Size doubleGi - Machine
Count double - Name string
- Allows to find a Kubernetes cluster by name inside the given Organization with ID
org_id
. Eithercluster_id
orname
must be set. This argument requirescse_version
andorg_id
to be set. - Placement
Policy stringId - Sizing
Policy stringId - Storage
Profile stringId - Vgpu
Policy stringId
- Autoscaler
Max float64Replicas - Autoscaler
Min float64Replicas - Disk
Size float64Gi - Machine
Count float64 - Name string
- Allows to find a Kubernetes cluster by name inside the given Organization with ID
org_id
. Eithercluster_id
orname
must be set. This argument requirescse_version
andorg_id
to be set. - Placement
Policy stringId - Sizing
Policy stringId - Storage
Profile stringId - Vgpu
Policy stringId
- autoscaler
Max DoubleReplicas - autoscaler
Min DoubleReplicas - disk
Size DoubleGi - machine
Count Double - name String
- Allows to find a Kubernetes cluster by name inside the given Organization with ID
org_id
. Eithercluster_id
orname
must be set. This argument requirescse_version
andorg_id
to be set. - placement
Policy StringId - sizing
Policy StringId - storage
Profile StringId - vgpu
Policy StringId
- autoscaler
Max numberReplicas - autoscaler
Min numberReplicas - disk
Size numberGi - machine
Count number - name string
- Allows to find a Kubernetes cluster by name inside the given Organization with ID
org_id
. Eithercluster_id
orname
must be set. This argument requirescse_version
andorg_id
to be set. - placement
Policy stringId - sizing
Policy stringId - storage
Profile stringId - vgpu
Policy stringId
- autoscaler_
max_ floatreplicas - autoscaler_
min_ floatreplicas - disk_
size_ floatgi - machine_
count float - name str
- Allows to find a Kubernetes cluster by name inside the given Organization with ID
org_id
. Eithercluster_id
orname
must be set. This argument requirescse_version
andorg_id
to be set. - placement_
policy_ strid - sizing_
policy_ strid - storage_
profile_ strid - vgpu_
policy_ strid
- autoscaler
Max NumberReplicas - autoscaler
Min NumberReplicas - disk
Size NumberGi - machine
Count Number - name String
- Allows to find a Kubernetes cluster by name inside the given Organization with ID
org_id
. Eithercluster_id
orname
must be set. This argument requirescse_version
andorg_id
to be set. - placement
Policy StringId - sizing
Policy StringId - storage
Profile StringId - vgpu
Policy StringId
Package Details
- Repository
- vcd vmware/terraform-provider-vcd
- License
- Notes
- This Pulumi package is based on the
vcd
Terraform Provider.