1. Packages
  2. Edgecenter Provider
  3. API Docs
  4. getK8s
edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center

edgecenter.getK8s

Explore with Pulumi AI

edgecenter logo
edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center

    Represent k8s cluster with one default pool.

    WARNING: Data source “edgecenter.K8s” is deprecated and unavailable.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as edgecenter from "@pulumi/edgecenter";
    
    const cluster = edgecenter.getK8s({
        clusterId: "dc3a3ea9-86ae-47ad-a8e8-79df0ce04839",
        projectId: 1,
        regionId: 1,
    });
    
    import pulumi
    import pulumi_edgecenter as edgecenter
    
    cluster = edgecenter.get_k8s(cluster_id="dc3a3ea9-86ae-47ad-a8e8-79df0ce04839",
        project_id=1,
        region_id=1)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/edgecenter/edgecenter"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := edgecenter.LookupK8s(ctx, &edgecenter.LookupK8sArgs{
    			ClusterId: "dc3a3ea9-86ae-47ad-a8e8-79df0ce04839",
    			ProjectId: pulumi.Float64Ref(1),
    			RegionId:  pulumi.Float64Ref(1),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Edgecenter = Pulumi.Edgecenter;
    
    return await Deployment.RunAsync(() => 
    {
        var cluster = Edgecenter.GetK8s.Invoke(new()
        {
            ClusterId = "dc3a3ea9-86ae-47ad-a8e8-79df0ce04839",
            ProjectId = 1,
            RegionId = 1,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.edgecenter.EdgecenterFunctions;
    import com.pulumi.edgecenter.inputs.GetK8sArgs;
    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 cluster = EdgecenterFunctions.getK8s(GetK8sArgs.builder()
                .clusterId("dc3a3ea9-86ae-47ad-a8e8-79df0ce04839")
                .projectId(1)
                .regionId(1)
                .build());
    
        }
    }
    
    variables:
      cluster:
        fn::invoke:
          function: edgecenter:getK8s
          arguments:
            clusterId: dc3a3ea9-86ae-47ad-a8e8-79df0ce04839
            projectId: 1
            regionId: 1
    

    Using getK8s

    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 getK8s(args: GetK8sArgs, opts?: InvokeOptions): Promise<GetK8sResult>
    function getK8sOutput(args: GetK8sOutputArgs, opts?: InvokeOptions): Output<GetK8sResult>
    def get_k8s(cluster_id: Optional[str] = None,
                id: Optional[str] = None,
                project_id: Optional[float] = None,
                project_name: Optional[str] = None,
                region_id: Optional[float] = None,
                region_name: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetK8sResult
    def get_k8s_output(cluster_id: Optional[pulumi.Input[str]] = None,
                id: Optional[pulumi.Input[str]] = None,
                project_id: Optional[pulumi.Input[float]] = None,
                project_name: Optional[pulumi.Input[str]] = None,
                region_id: Optional[pulumi.Input[float]] = None,
                region_name: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetK8sResult]
    func LookupK8s(ctx *Context, args *LookupK8sArgs, opts ...InvokeOption) (*LookupK8sResult, error)
    func LookupK8sOutput(ctx *Context, args *LookupK8sOutputArgs, opts ...InvokeOption) LookupK8sResultOutput

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

    public static class GetK8s 
    {
        public static Task<GetK8sResult> InvokeAsync(GetK8sArgs args, InvokeOptions? opts = null)
        public static Output<GetK8sResult> Invoke(GetK8sInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetK8sResult> getK8s(GetK8sArgs args, InvokeOptions options)
    public static Output<GetK8sResult> getK8s(GetK8sArgs args, InvokeOptions options)
    
    fn::invoke:
      function: edgecenter:index/getK8s:getK8s
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ClusterId string
    The uuid of the Kubernetes cluster.
    Id string
    The ID of this resource.
    ProjectId double
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    RegionId double
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    ClusterId string
    The uuid of the Kubernetes cluster.
    Id string
    The ID of this resource.
    ProjectId float64
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    RegionId float64
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    clusterId String
    The uuid of the Kubernetes cluster.
    id String
    The ID of this resource.
    projectId Double
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId Double
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    clusterId string
    The uuid of the Kubernetes cluster.
    id string
    The ID of this resource.
    projectId number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    cluster_id str
    The uuid of the Kubernetes cluster.
    id str
    The ID of this resource.
    project_id float
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    project_name str
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    region_id float
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    region_name str
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    clusterId String
    The uuid of the Kubernetes cluster.
    id String
    The ID of this resource.
    projectId Number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId Number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The name of the region. Either 'regionid' or 'regionname' must be specified.

    getK8s Result

    The following output properties are available:

    ApiAddress string
    API endpoint address for the Kubernetes cluster.
    AutoHealingEnabled bool
    Indicates whether auto-healing is enabled for the Kubernetes cluster.
    CertificateAuthorityData string
    The certificateauthoritydata field from the Kubernetes cluster config.
    ClusterId string
    The uuid of the Kubernetes cluster.
    ClusterTemplateId string
    Template identifier from which the Kubernetes cluster was instantiated.
    ContainerVersion string
    The container runtime version used in the Kubernetes cluster.
    CreatedAt string
    The timestamp when the Kubernetes cluster was created.
    DiscoveryUrl string
    URL used for node discovery within the Kubernetes cluster.
    Faults Dictionary<string, string>
    FixedNetwork string
    Fixed network (uuid) associated with the Kubernetes cluster.
    FixedSubnet string
    Subnet (uuid) associated with the fixed network.
    HealthStatus string
    Overall health status of the Kubernetes cluster.
    HealthStatusReason Dictionary<string, string>
    Id string
    The ID of this resource.
    Keypair string
    MasterAddresses List<string>
    List of IP addresses for master nodes in the Kubernetes cluster.
    MasterFlavorId string
    Identifier for the master node flavor in the Kubernetes cluster.
    MasterLbFloatingIpEnabled bool
    Flag indicating if the master LoadBalancer should have a floating IP.
    Name string
    The name of the Kubernetes cluster.
    NodeAddresses List<string>
    List of IP addresses for worker nodes in the Kubernetes cluster.
    NodeCount double
    Total number of nodes in the Kubernetes cluster.
    Pools List<GetK8sPool>
    Configuration details of the node pool in the Kubernetes cluster.
    Status string
    The current status of the Kubernetes cluster.
    StatusReason string
    The reason for the current status of the Kubernetes cluster, if ERROR.
    UpdatedAt string
    The timestamp when the Kubernetes cluster was updated.
    UserId string
    User identifier associated with the Kubernetes cluster.
    Version string
    The version of the Kubernetes cluster.
    ProjectId double
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    RegionId double
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    ApiAddress string
    API endpoint address for the Kubernetes cluster.
    AutoHealingEnabled bool
    Indicates whether auto-healing is enabled for the Kubernetes cluster.
    CertificateAuthorityData string
    The certificateauthoritydata field from the Kubernetes cluster config.
    ClusterId string
    The uuid of the Kubernetes cluster.
    ClusterTemplateId string
    Template identifier from which the Kubernetes cluster was instantiated.
    ContainerVersion string
    The container runtime version used in the Kubernetes cluster.
    CreatedAt string
    The timestamp when the Kubernetes cluster was created.
    DiscoveryUrl string
    URL used for node discovery within the Kubernetes cluster.
    Faults map[string]string
    FixedNetwork string
    Fixed network (uuid) associated with the Kubernetes cluster.
    FixedSubnet string
    Subnet (uuid) associated with the fixed network.
    HealthStatus string
    Overall health status of the Kubernetes cluster.
    HealthStatusReason map[string]string
    Id string
    The ID of this resource.
    Keypair string
    MasterAddresses []string
    List of IP addresses for master nodes in the Kubernetes cluster.
    MasterFlavorId string
    Identifier for the master node flavor in the Kubernetes cluster.
    MasterLbFloatingIpEnabled bool
    Flag indicating if the master LoadBalancer should have a floating IP.
    Name string
    The name of the Kubernetes cluster.
    NodeAddresses []string
    List of IP addresses for worker nodes in the Kubernetes cluster.
    NodeCount float64
    Total number of nodes in the Kubernetes cluster.
    Pools []GetK8sPoolType
    Configuration details of the node pool in the Kubernetes cluster.
    Status string
    The current status of the Kubernetes cluster.
    StatusReason string
    The reason for the current status of the Kubernetes cluster, if ERROR.
    UpdatedAt string
    The timestamp when the Kubernetes cluster was updated.
    UserId string
    User identifier associated with the Kubernetes cluster.
    Version string
    The version of the Kubernetes cluster.
    ProjectId float64
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    RegionId float64
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    apiAddress String
    API endpoint address for the Kubernetes cluster.
    autoHealingEnabled Boolean
    Indicates whether auto-healing is enabled for the Kubernetes cluster.
    certificateAuthorityData String
    The certificateauthoritydata field from the Kubernetes cluster config.
    clusterId String
    The uuid of the Kubernetes cluster.
    clusterTemplateId String
    Template identifier from which the Kubernetes cluster was instantiated.
    containerVersion String
    The container runtime version used in the Kubernetes cluster.
    createdAt String
    The timestamp when the Kubernetes cluster was created.
    discoveryUrl String
    URL used for node discovery within the Kubernetes cluster.
    faults Map<String,String>
    fixedNetwork String
    Fixed network (uuid) associated with the Kubernetes cluster.
    fixedSubnet String
    Subnet (uuid) associated with the fixed network.
    healthStatus String
    Overall health status of the Kubernetes cluster.
    healthStatusReason Map<String,String>
    id String
    The ID of this resource.
    keypair String
    masterAddresses List<String>
    List of IP addresses for master nodes in the Kubernetes cluster.
    masterFlavorId String
    Identifier for the master node flavor in the Kubernetes cluster.
    masterLbFloatingIpEnabled Boolean
    Flag indicating if the master LoadBalancer should have a floating IP.
    name String
    The name of the Kubernetes cluster.
    nodeAddresses List<String>
    List of IP addresses for worker nodes in the Kubernetes cluster.
    nodeCount Double
    Total number of nodes in the Kubernetes cluster.
    pools List<GetK8sPool>
    Configuration details of the node pool in the Kubernetes cluster.
    status String
    The current status of the Kubernetes cluster.
    statusReason String
    The reason for the current status of the Kubernetes cluster, if ERROR.
    updatedAt String
    The timestamp when the Kubernetes cluster was updated.
    userId String
    User identifier associated with the Kubernetes cluster.
    version String
    The version of the Kubernetes cluster.
    projectId Double
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId Double
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    apiAddress string
    API endpoint address for the Kubernetes cluster.
    autoHealingEnabled boolean
    Indicates whether auto-healing is enabled for the Kubernetes cluster.
    certificateAuthorityData string
    The certificateauthoritydata field from the Kubernetes cluster config.
    clusterId string
    The uuid of the Kubernetes cluster.
    clusterTemplateId string
    Template identifier from which the Kubernetes cluster was instantiated.
    containerVersion string
    The container runtime version used in the Kubernetes cluster.
    createdAt string
    The timestamp when the Kubernetes cluster was created.
    discoveryUrl string
    URL used for node discovery within the Kubernetes cluster.
    faults {[key: string]: string}
    fixedNetwork string
    Fixed network (uuid) associated with the Kubernetes cluster.
    fixedSubnet string
    Subnet (uuid) associated with the fixed network.
    healthStatus string
    Overall health status of the Kubernetes cluster.
    healthStatusReason {[key: string]: string}
    id string
    The ID of this resource.
    keypair string
    masterAddresses string[]
    List of IP addresses for master nodes in the Kubernetes cluster.
    masterFlavorId string
    Identifier for the master node flavor in the Kubernetes cluster.
    masterLbFloatingIpEnabled boolean
    Flag indicating if the master LoadBalancer should have a floating IP.
    name string
    The name of the Kubernetes cluster.
    nodeAddresses string[]
    List of IP addresses for worker nodes in the Kubernetes cluster.
    nodeCount number
    Total number of nodes in the Kubernetes cluster.
    pools GetK8sPool[]
    Configuration details of the node pool in the Kubernetes cluster.
    status string
    The current status of the Kubernetes cluster.
    statusReason string
    The reason for the current status of the Kubernetes cluster, if ERROR.
    updatedAt string
    The timestamp when the Kubernetes cluster was updated.
    userId string
    User identifier associated with the Kubernetes cluster.
    version string
    The version of the Kubernetes cluster.
    projectId number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    api_address str
    API endpoint address for the Kubernetes cluster.
    auto_healing_enabled bool
    Indicates whether auto-healing is enabled for the Kubernetes cluster.
    certificate_authority_data str
    The certificateauthoritydata field from the Kubernetes cluster config.
    cluster_id str
    The uuid of the Kubernetes cluster.
    cluster_template_id str
    Template identifier from which the Kubernetes cluster was instantiated.
    container_version str
    The container runtime version used in the Kubernetes cluster.
    created_at str
    The timestamp when the Kubernetes cluster was created.
    discovery_url str
    URL used for node discovery within the Kubernetes cluster.
    faults Mapping[str, str]
    fixed_network str
    Fixed network (uuid) associated with the Kubernetes cluster.
    fixed_subnet str
    Subnet (uuid) associated with the fixed network.
    health_status str
    Overall health status of the Kubernetes cluster.
    health_status_reason Mapping[str, str]
    id str
    The ID of this resource.
    keypair str
    master_addresses Sequence[str]
    List of IP addresses for master nodes in the Kubernetes cluster.
    master_flavor_id str
    Identifier for the master node flavor in the Kubernetes cluster.
    master_lb_floating_ip_enabled bool
    Flag indicating if the master LoadBalancer should have a floating IP.
    name str
    The name of the Kubernetes cluster.
    node_addresses Sequence[str]
    List of IP addresses for worker nodes in the Kubernetes cluster.
    node_count float
    Total number of nodes in the Kubernetes cluster.
    pools Sequence[GetK8sPool]
    Configuration details of the node pool in the Kubernetes cluster.
    status str
    The current status of the Kubernetes cluster.
    status_reason str
    The reason for the current status of the Kubernetes cluster, if ERROR.
    updated_at str
    The timestamp when the Kubernetes cluster was updated.
    user_id str
    User identifier associated with the Kubernetes cluster.
    version str
    The version of the Kubernetes cluster.
    project_id float
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    project_name str
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    region_id float
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    region_name str
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    apiAddress String
    API endpoint address for the Kubernetes cluster.
    autoHealingEnabled Boolean
    Indicates whether auto-healing is enabled for the Kubernetes cluster.
    certificateAuthorityData String
    The certificateauthoritydata field from the Kubernetes cluster config.
    clusterId String
    The uuid of the Kubernetes cluster.
    clusterTemplateId String
    Template identifier from which the Kubernetes cluster was instantiated.
    containerVersion String
    The container runtime version used in the Kubernetes cluster.
    createdAt String
    The timestamp when the Kubernetes cluster was created.
    discoveryUrl String
    URL used for node discovery within the Kubernetes cluster.
    faults Map<String>
    fixedNetwork String
    Fixed network (uuid) associated with the Kubernetes cluster.
    fixedSubnet String
    Subnet (uuid) associated with the fixed network.
    healthStatus String
    Overall health status of the Kubernetes cluster.
    healthStatusReason Map<String>
    id String
    The ID of this resource.
    keypair String
    masterAddresses List<String>
    List of IP addresses for master nodes in the Kubernetes cluster.
    masterFlavorId String
    Identifier for the master node flavor in the Kubernetes cluster.
    masterLbFloatingIpEnabled Boolean
    Flag indicating if the master LoadBalancer should have a floating IP.
    name String
    The name of the Kubernetes cluster.
    nodeAddresses List<String>
    List of IP addresses for worker nodes in the Kubernetes cluster.
    nodeCount Number
    Total number of nodes in the Kubernetes cluster.
    pools List<Property Map>
    Configuration details of the node pool in the Kubernetes cluster.
    status String
    The current status of the Kubernetes cluster.
    statusReason String
    The reason for the current status of the Kubernetes cluster, if ERROR.
    updatedAt String
    The timestamp when the Kubernetes cluster was updated.
    userId String
    User identifier associated with the Kubernetes cluster.
    version String
    The version of the Kubernetes cluster.
    projectId Number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId Number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The name of the region. Either 'regionid' or 'regionname' must be specified.

    Supporting Types

    GetK8sPool

    CreatedAt string
    DockerVolumeSize double
    DockerVolumeType string
    FlavorId string
    MaxNodeCount double
    MinNodeCount double
    Name string
    NodeCount double
    StackId string
    Uuid string
    CreatedAt string
    DockerVolumeSize float64
    DockerVolumeType string
    FlavorId string
    MaxNodeCount float64
    MinNodeCount float64
    Name string
    NodeCount float64
    StackId string
    Uuid string
    createdAt String
    dockerVolumeSize Double
    dockerVolumeType String
    flavorId String
    maxNodeCount Double
    minNodeCount Double
    name String
    nodeCount Double
    stackId String
    uuid String
    createdAt string
    dockerVolumeSize number
    dockerVolumeType string
    flavorId string
    maxNodeCount number
    minNodeCount number
    name string
    nodeCount number
    stackId string
    uuid string
    createdAt String
    dockerVolumeSize Number
    dockerVolumeType String
    flavorId String
    maxNodeCount Number
    minNodeCount Number
    name String
    nodeCount Number
    stackId String
    uuid String

    Package Details

    Repository
    edgecenter edge-center/terraform-provider-edgecenter
    License
    Notes
    This Pulumi package is based on the edgecenter Terraform Provider.
    edgecenter logo
    edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center