edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center
edgecenter.getK8sClientConfig
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.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:
- 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.
getK8sClientConfig Result
The following output properties are available:
- Client
Certificate stringData - The clientcertificatedata field from k8s config.
- Client
Key stringData - The clientkeydata field from k8s config.
- 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.
- Client
Certificate stringData - The clientcertificatedata field from k8s config.
- Client
Key stringData - The clientkeydata field from k8s config.
- 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.
- client
Certificate StringData - The clientcertificatedata field from k8s config.
- client
Key StringData - The clientkeydata field from k8s config.
- 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.
- client
Certificate stringData - The clientcertificatedata field from k8s config.
- client
Key stringData - The clientkeydata field from k8s config.
- 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.
- client_
certificate_ strdata - The clientcertificatedata field from k8s config.
- client_
key_ strdata - 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.
- client
Certificate StringData - The clientcertificatedata field from k8s config.
- client
Key StringData - The clientkeydata field from k8s config.
- 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.
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