edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center
edgecenter.getK8s
Explore with Pulumi AI
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:
- Cluster
Id string - The uuid of the Kubernetes cluster.
- Id string
- The ID of this resource.
- Project
Id double - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- Project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- Region
Id double - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- Region
Name string - The name of the region. Either 'regionid' or 'regionname' must be specified.
- Cluster
Id string - The uuid of the Kubernetes cluster.
- Id string
- The ID of this resource.
- Project
Id float64 - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- Project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- Region
Id float64 - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- Region
Name string - The name of the region. Either 'regionid' or 'regionname' must be specified.
- cluster
Id String - The uuid of the Kubernetes cluster.
- id String
- The ID of this resource.
- project
Id Double - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name String - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region
Id Double - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name String - The name of the region. Either 'regionid' or 'regionname' must be specified.
- cluster
Id string - The uuid of the Kubernetes cluster.
- id string
- The ID of this resource.
- project
Id number - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region
Id number - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name 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.
- cluster
Id String - The uuid of the Kubernetes cluster.
- id String
- The ID of this resource.
- project
Id Number - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name String - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region
Id Number - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name String - The name of the region. Either 'regionid' or 'regionname' must be specified.
getK8s Result
The following output properties are available:
- Api
Address string - API endpoint address for the Kubernetes cluster.
- Auto
Healing boolEnabled - Indicates whether auto-healing is enabled for the Kubernetes cluster.
- string
- The certificateauthoritydata field from the Kubernetes cluster config.
- Cluster
Id string - The uuid of the Kubernetes cluster.
- Cluster
Template stringId - Template identifier from which the Kubernetes cluster was instantiated.
- Container
Version string - The container runtime version used in the Kubernetes cluster.
- Created
At string - The timestamp when the Kubernetes cluster was created.
- Discovery
Url string - URL used for node discovery within the Kubernetes cluster.
- Faults Dictionary<string, string>
- Fixed
Network string - Fixed network (uuid) associated with the Kubernetes cluster.
- Fixed
Subnet string - Subnet (uuid) associated with the fixed network.
- Health
Status string - Overall health status of the Kubernetes cluster.
- Health
Status Dictionary<string, string>Reason - Id string
- The ID of this resource.
- Keypair string
- Master
Addresses List<string> - List of IP addresses for master nodes in the Kubernetes cluster.
- Master
Flavor stringId - Identifier for the master node flavor in the Kubernetes cluster.
- Master
Lb boolFloating Ip Enabled - Flag indicating if the master LoadBalancer should have a floating IP.
- Name string
- The name of the Kubernetes cluster.
- Node
Addresses List<string> - List of IP addresses for worker nodes in the Kubernetes cluster.
- Node
Count double - Total number of nodes in the Kubernetes cluster.
- Pools
List<Get
K8s Pool> - Configuration details of the node pool in the Kubernetes cluster.
- Status string
- The current status of the Kubernetes cluster.
- Status
Reason string - The reason for the current status of the Kubernetes cluster, if ERROR.
- Updated
At string - The timestamp when the Kubernetes cluster was updated.
- User
Id string - User identifier associated with the Kubernetes cluster.
- Version string
- The version of the Kubernetes cluster.
- Project
Id double - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- Project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- Region
Id double - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- Region
Name string - The name of the region. Either 'regionid' or 'regionname' must be specified.
- Api
Address string - API endpoint address for the Kubernetes cluster.
- Auto
Healing boolEnabled - Indicates whether auto-healing is enabled for the Kubernetes cluster.
- string
- The certificateauthoritydata field from the Kubernetes cluster config.
- Cluster
Id string - The uuid of the Kubernetes cluster.
- Cluster
Template stringId - Template identifier from which the Kubernetes cluster was instantiated.
- Container
Version string - The container runtime version used in the Kubernetes cluster.
- Created
At string - The timestamp when the Kubernetes cluster was created.
- Discovery
Url string - URL used for node discovery within the Kubernetes cluster.
- Faults map[string]string
- Fixed
Network string - Fixed network (uuid) associated with the Kubernetes cluster.
- Fixed
Subnet string - Subnet (uuid) associated with the fixed network.
- Health
Status string - Overall health status of the Kubernetes cluster.
- Health
Status map[string]stringReason - Id string
- The ID of this resource.
- Keypair string
- Master
Addresses []string - List of IP addresses for master nodes in the Kubernetes cluster.
- Master
Flavor stringId - Identifier for the master node flavor in the Kubernetes cluster.
- Master
Lb boolFloating Ip Enabled - Flag indicating if the master LoadBalancer should have a floating IP.
- Name string
- The name of the Kubernetes cluster.
- Node
Addresses []string - List of IP addresses for worker nodes in the Kubernetes cluster.
- Node
Count float64 - Total number of nodes in the Kubernetes cluster.
- Pools
[]Get
K8s Pool Type - Configuration details of the node pool in the Kubernetes cluster.
- Status string
- The current status of the Kubernetes cluster.
- Status
Reason string - The reason for the current status of the Kubernetes cluster, if ERROR.
- Updated
At string - The timestamp when the Kubernetes cluster was updated.
- User
Id string - User identifier associated with the Kubernetes cluster.
- Version string
- The version of the Kubernetes cluster.
- Project
Id float64 - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- Project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- Region
Id float64 - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- Region
Name string - The name of the region. Either 'regionid' or 'regionname' must be specified.
- api
Address String - API endpoint address for the Kubernetes cluster.
- auto
Healing BooleanEnabled - Indicates whether auto-healing is enabled for the Kubernetes cluster.
- String
- The certificateauthoritydata field from the Kubernetes cluster config.
- cluster
Id String - The uuid of the Kubernetes cluster.
- cluster
Template StringId - Template identifier from which the Kubernetes cluster was instantiated.
- container
Version String - The container runtime version used in the Kubernetes cluster.
- created
At String - The timestamp when the Kubernetes cluster was created.
- discovery
Url String - URL used for node discovery within the Kubernetes cluster.
- faults Map<String,String>
- fixed
Network String - Fixed network (uuid) associated with the Kubernetes cluster.
- fixed
Subnet String - Subnet (uuid) associated with the fixed network.
- health
Status String - Overall health status of the Kubernetes cluster.
- health
Status Map<String,String>Reason - id String
- The ID of this resource.
- keypair String
- master
Addresses List<String> - List of IP addresses for master nodes in the Kubernetes cluster.
- master
Flavor StringId - Identifier for the master node flavor in the Kubernetes cluster.
- master
Lb BooleanFloating Ip Enabled - Flag indicating if the master LoadBalancer should have a floating IP.
- name String
- The name of the Kubernetes cluster.
- node
Addresses List<String> - List of IP addresses for worker nodes in the Kubernetes cluster.
- node
Count Double - Total number of nodes in the Kubernetes cluster.
- pools
List<Get
K8s Pool> - Configuration details of the node pool in the Kubernetes cluster.
- status String
- The current status of the Kubernetes cluster.
- status
Reason String - The reason for the current status of the Kubernetes cluster, if ERROR.
- updated
At String - The timestamp when the Kubernetes cluster was updated.
- user
Id String - User identifier associated with the Kubernetes cluster.
- version String
- The version of the Kubernetes cluster.
- project
Id Double - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name String - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region
Id Double - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name String - The name of the region. Either 'regionid' or 'regionname' must be specified.
- api
Address string - API endpoint address for the Kubernetes cluster.
- auto
Healing booleanEnabled - Indicates whether auto-healing is enabled for the Kubernetes cluster.
- string
- The certificateauthoritydata field from the Kubernetes cluster config.
- cluster
Id string - The uuid of the Kubernetes cluster.
- cluster
Template stringId - Template identifier from which the Kubernetes cluster was instantiated.
- container
Version string - The container runtime version used in the Kubernetes cluster.
- created
At string - The timestamp when the Kubernetes cluster was created.
- discovery
Url string - URL used for node discovery within the Kubernetes cluster.
- faults {[key: string]: string}
- fixed
Network string - Fixed network (uuid) associated with the Kubernetes cluster.
- fixed
Subnet string - Subnet (uuid) associated with the fixed network.
- health
Status string - Overall health status of the Kubernetes cluster.
- health
Status {[key: string]: string}Reason - id string
- The ID of this resource.
- keypair string
- master
Addresses string[] - List of IP addresses for master nodes in the Kubernetes cluster.
- master
Flavor stringId - Identifier for the master node flavor in the Kubernetes cluster.
- master
Lb booleanFloating Ip Enabled - Flag indicating if the master LoadBalancer should have a floating IP.
- name string
- The name of the Kubernetes cluster.
- node
Addresses string[] - List of IP addresses for worker nodes in the Kubernetes cluster.
- node
Count number - Total number of nodes in the Kubernetes cluster.
- pools
Get
K8s Pool[] - Configuration details of the node pool in the Kubernetes cluster.
- status string
- The current status of the Kubernetes cluster.
- status
Reason string - The reason for the current status of the Kubernetes cluster, if ERROR.
- updated
At string - The timestamp when the Kubernetes cluster was updated.
- user
Id string - User identifier associated with the Kubernetes cluster.
- version string
- The version of the Kubernetes cluster.
- project
Id number - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region
Id number - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name 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_ boolenabled - Indicates whether auto-healing is enabled for the Kubernetes cluster.
- str
- The certificateauthoritydata field from the Kubernetes cluster config.
- cluster_
id str - The uuid of the Kubernetes cluster.
- cluster_
template_ strid - 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_ Mapping[str, str]reason - 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_ strid - Identifier for the master node flavor in the Kubernetes cluster.
- master_
lb_ boolfloating_ ip_ enabled - 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[Get
K8s Pool] - 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.
- api
Address String - API endpoint address for the Kubernetes cluster.
- auto
Healing BooleanEnabled - Indicates whether auto-healing is enabled for the Kubernetes cluster.
- String
- The certificateauthoritydata field from the Kubernetes cluster config.
- cluster
Id String - The uuid of the Kubernetes cluster.
- cluster
Template StringId - Template identifier from which the Kubernetes cluster was instantiated.
- container
Version String - The container runtime version used in the Kubernetes cluster.
- created
At String - The timestamp when the Kubernetes cluster was created.
- discovery
Url String - URL used for node discovery within the Kubernetes cluster.
- faults Map<String>
- fixed
Network String - Fixed network (uuid) associated with the Kubernetes cluster.
- fixed
Subnet String - Subnet (uuid) associated with the fixed network.
- health
Status String - Overall health status of the Kubernetes cluster.
- health
Status Map<String>Reason - id String
- The ID of this resource.
- keypair String
- master
Addresses List<String> - List of IP addresses for master nodes in the Kubernetes cluster.
- master
Flavor StringId - Identifier for the master node flavor in the Kubernetes cluster.
- master
Lb BooleanFloating Ip Enabled - Flag indicating if the master LoadBalancer should have a floating IP.
- name String
- The name of the Kubernetes cluster.
- node
Addresses List<String> - List of IP addresses for worker nodes in the Kubernetes cluster.
- node
Count 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.
- status
Reason String - The reason for the current status of the Kubernetes cluster, if ERROR.
- updated
At String - The timestamp when the Kubernetes cluster was updated.
- user
Id String - User identifier associated with the Kubernetes cluster.
- version String
- The version of the Kubernetes cluster.
- project
Id Number - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name String - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region
Id Number - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name String - The name of the region. Either 'regionid' or 'regionname' must be specified.
Supporting Types
GetK8sPool
- Created
At string - Docker
Volume doubleSize - Docker
Volume stringType - Flavor
Id string - Max
Node doubleCount - Min
Node doubleCount - Name string
- Node
Count double - Stack
Id string - Uuid string
- Created
At string - Docker
Volume float64Size - Docker
Volume stringType - Flavor
Id string - Max
Node float64Count - Min
Node float64Count - Name string
- Node
Count float64 - Stack
Id string - Uuid string
- created
At String - docker
Volume DoubleSize - docker
Volume StringType - flavor
Id String - max
Node DoubleCount - min
Node DoubleCount - name String
- node
Count Double - stack
Id String - uuid String
- created
At string - docker
Volume numberSize - docker
Volume stringType - flavor
Id string - max
Node numberCount - min
Node numberCount - name string
- node
Count number - stack
Id string - uuid string
- created_
at str - docker_
volume_ floatsize - docker_
volume_ strtype - flavor_
id str - max_
node_ floatcount - min_
node_ floatcount - name str
- node_
count float - stack_
id str - uuid str
- created
At String - docker
Volume NumberSize - docker
Volume StringType - flavor
Id String - max
Node NumberCount - min
Node NumberCount - name String
- node
Count Number - stack
Id 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 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center