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

edgecenter.getK8sClientConfig

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.getK8sClientConfig” is deprecated and unavailable.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as edgecenter from "@pulumi/edgecenter";
    
    const cfg = edgecenter.getK8sClientConfig({
        clusterId: "dc3a3ea9-86ae-47ad-a8e8-79df0ce04839",
        projectId: 1,
        regionId: 1,
    });
    
    import pulumi
    import pulumi_edgecenter as edgecenter
    
    cfg = edgecenter.get_k8s_client_config(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.GetK8sClientConfig(ctx, &edgecenter.GetK8sClientConfigArgs{
    			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 cfg = Edgecenter.GetK8sClientConfig.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.GetK8sClientConfigArgs;
    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 cfg = EdgecenterFunctions.getK8sClientConfig(GetK8sClientConfigArgs.builder()
                .clusterId("dc3a3ea9-86ae-47ad-a8e8-79df0ce04839")
                .projectId(1)
                .regionId(1)
                .build());
    
        }
    }
    
    variables:
      cfg:
        fn::invoke:
          function: edgecenter:getK8sClientConfig
          arguments:
            clusterId: dc3a3ea9-86ae-47ad-a8e8-79df0ce04839
            projectId: 1
            regionId: 1
    

    Using getK8sClientConfig

    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 getK8sClientConfig(args: GetK8sClientConfigArgs, opts?: InvokeOptions): Promise<GetK8sClientConfigResult>
    function getK8sClientConfigOutput(args: GetK8sClientConfigOutputArgs, opts?: InvokeOptions): Output<GetK8sClientConfigResult>
    def get_k8s_client_config(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) -> GetK8sClientConfigResult
    def get_k8s_client_config_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[GetK8sClientConfigResult]
    func GetK8sClientConfig(ctx *Context, args *GetK8sClientConfigArgs, opts ...InvokeOption) (*GetK8sClientConfigResult, error)
    func GetK8sClientConfigOutput(ctx *Context, args *GetK8sClientConfigOutputArgs, opts ...InvokeOption) GetK8sClientConfigResultOutput

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

    public static class GetK8sClientConfig 
    {
        public static Task<GetK8sClientConfigResult> InvokeAsync(GetK8sClientConfigArgs args, InvokeOptions? opts = null)
        public static Output<GetK8sClientConfigResult> Invoke(GetK8sClientConfigInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetK8sClientConfigResult> getK8sClientConfig(GetK8sClientConfigArgs args, InvokeOptions options)
    public static Output<GetK8sClientConfigResult> getK8sClientConfig(GetK8sClientConfigArgs args, InvokeOptions options)
    
    fn::invoke:
      function: edgecenter:index/getK8sClientConfig:getK8sClientConfig
      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.

    getK8sClientConfig Result

    The following output properties are available:

    ClientCertificateData string
    The clientcertificatedata field from k8s config.
    ClientKeyData string
    The clientkeydata field from k8s config.
    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.
    ClientCertificateData string
    The clientcertificatedata field from k8s config.
    ClientKeyData string
    The clientkeydata field from k8s config.
    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.
    clientCertificateData String
    The clientcertificatedata field from k8s config.
    clientKeyData String
    The clientkeydata field from k8s config.
    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.
    clientCertificateData string
    The clientcertificatedata field from k8s config.
    clientKeyData string
    The clientkeydata field from k8s config.
    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.
    client_certificate_data str
    The clientcertificatedata field from k8s config.
    client_key_data str
    The clientkeydata field from k8s config.
    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.
    clientCertificateData String
    The clientcertificatedata field from k8s config.
    clientKeyData String
    The clientkeydata field from k8s config.
    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.

    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