1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. getCceClusterV3
opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud

opentelekomcloud.getCceClusterV3

Explore with Pulumi AI

opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud

Up-to-date reference of API arguments for CCE cluster you can get at documentation portal

Use this data source to get details about all clusters and obtains the certificate for accessing cluster information.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";

const config = new pulumi.Config();
const clusterName = config.requireObject("clusterName");
const clusterId = config.requireObject("clusterId");
const vpcId = config.requireObject("vpcId");
const cluster = opentelekomcloud.getCceClusterV3({
    name: clusterName,
    status: "Available",
});
Copy
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud

config = pulumi.Config()
cluster_name = config.require_object("clusterName")
cluster_id = config.require_object("clusterId")
vpc_id = config.require_object("vpcId")
cluster = opentelekomcloud.get_cce_cluster_v3(name=cluster_name,
    status="Available")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		clusterName := cfg.RequireObject("clusterName")
		clusterId := cfg.RequireObject("clusterId")
		vpcId := cfg.RequireObject("vpcId")
		_, err := opentelekomcloud.LookupCceClusterV3(ctx, &opentelekomcloud.LookupCceClusterV3Args{
			Name:   pulumi.StringRef(clusterName),
			Status: pulumi.StringRef("Available"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;

return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var clusterName = config.RequireObject<dynamic>("clusterName");
    var clusterId = config.RequireObject<dynamic>("clusterId");
    var vpcId = config.RequireObject<dynamic>("vpcId");
    var cluster = Opentelekomcloud.GetCceClusterV3.Invoke(new()
    {
        Name = clusterName,
        Status = "Available",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
import com.pulumi.opentelekomcloud.inputs.GetCceClusterV3Args;
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 config = ctx.config();
        final var clusterName = config.get("clusterName");
        final var clusterId = config.get("clusterId");
        final var vpcId = config.get("vpcId");
        final var cluster = OpentelekomcloudFunctions.getCceClusterV3(GetCceClusterV3Args.builder()
            .name(clusterName)
            .status("Available")
            .build());

    }
}
Copy
configuration:
  clusterName:
    type: dynamic
  clusterId:
    type: dynamic
  vpcId:
    type: dynamic
variables:
  cluster:
    fn::invoke:
      function: opentelekomcloud:getCceClusterV3
      arguments:
        name: ${clusterName}
        status: Available
Copy

Using getCceClusterV3

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 getCceClusterV3(args: GetCceClusterV3Args, opts?: InvokeOptions): Promise<GetCceClusterV3Result>
function getCceClusterV3Output(args: GetCceClusterV3OutputArgs, opts?: InvokeOptions): Output<GetCceClusterV3Result>
Copy
def get_cce_cluster_v3(cluster_type: Optional[str] = None,
                       id: Optional[str] = None,
                       name: Optional[str] = None,
                       region: Optional[str] = None,
                       status: Optional[str] = None,
                       vpc_id: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetCceClusterV3Result
def get_cce_cluster_v3_output(cluster_type: Optional[pulumi.Input[str]] = None,
                       id: Optional[pulumi.Input[str]] = None,
                       name: Optional[pulumi.Input[str]] = None,
                       region: Optional[pulumi.Input[str]] = None,
                       status: Optional[pulumi.Input[str]] = None,
                       vpc_id: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetCceClusterV3Result]
Copy
func LookupCceClusterV3(ctx *Context, args *LookupCceClusterV3Args, opts ...InvokeOption) (*LookupCceClusterV3Result, error)
func LookupCceClusterV3Output(ctx *Context, args *LookupCceClusterV3OutputArgs, opts ...InvokeOption) LookupCceClusterV3ResultOutput
Copy

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

public static class GetCceClusterV3 
{
    public static Task<GetCceClusterV3Result> InvokeAsync(GetCceClusterV3Args args, InvokeOptions? opts = null)
    public static Output<GetCceClusterV3Result> Invoke(GetCceClusterV3InvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetCceClusterV3Result> getCceClusterV3(GetCceClusterV3Args args, InvokeOptions options)
public static Output<GetCceClusterV3Result> getCceClusterV3(GetCceClusterV3Args args, InvokeOptions options)
Copy
fn::invoke:
  function: opentelekomcloud:index/getCceClusterV3:getCceClusterV3
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ClusterType string
Type of the cluster. Possible values: VirtualMachine, BareMetal or Windows.
Id string
The ID of the cluster.
Name string
The Name of the cluster resource.
Region string
Status string
The state of the cluster.
VpcId string
ClusterType string
Type of the cluster. Possible values: VirtualMachine, BareMetal or Windows.
Id string
The ID of the cluster.
Name string
The Name of the cluster resource.
Region string
Status string
The state of the cluster.
VpcId string
clusterType String
Type of the cluster. Possible values: VirtualMachine, BareMetal or Windows.
id String
The ID of the cluster.
name String
The Name of the cluster resource.
region String
status String
The state of the cluster.
vpcId String
clusterType string
Type of the cluster. Possible values: VirtualMachine, BareMetal or Windows.
id string
The ID of the cluster.
name string
The Name of the cluster resource.
region string
status string
The state of the cluster.
vpcId string
cluster_type str
Type of the cluster. Possible values: VirtualMachine, BareMetal or Windows.
id str
The ID of the cluster.
name str
The Name of the cluster resource.
region str
status str
The state of the cluster.
vpc_id str
clusterType String
Type of the cluster. Possible values: VirtualMachine, BareMetal or Windows.
id String
The ID of the cluster.
name String
The Name of the cluster resource.
region String
status String
The state of the cluster.
vpcId String

getCceClusterV3 Result

The following output properties are available:

AuthenticationMode string
(Optional) Authentication mode of the cluster, possible values are rbac and authenticating_proxy.
BillingMode double
CertificateClusters List<GetCceClusterV3CertificateCluster>
CertificateUsers List<GetCceClusterV3CertificateUser>
ClusterVersion string
The version of cluster in string format.
ContainerNetworkCidr string
The container network segment.
ContainerNetworkType string
The container network type: overlay_l2 , underlay_ipvlan or vpc-router.
Description string
Cluster description.
EniSubnetCidr string
ENI network segment.
EniSubnetId string
ENI subnet ID.
External string
The external network address.
ExternalOtc string
The endpoint of the cluster to be accessed through API Gateway.
FlavorId string
The cluster specification in string format.
HighwaySubnetId string
The ID of the high speed network used to create bare metal nodes.
Id string
The ID of the cluster.
Internal string
The internal network address.
Region string
SubnetId string
The ID of the subnet used to create the node.
ClusterType string
Name string
The name of the cluster in string format.
Status string
VpcId string
AuthenticationMode string
(Optional) Authentication mode of the cluster, possible values are rbac and authenticating_proxy.
BillingMode float64
CertificateClusters []GetCceClusterV3CertificateCluster
CertificateUsers []GetCceClusterV3CertificateUser
ClusterVersion string
The version of cluster in string format.
ContainerNetworkCidr string
The container network segment.
ContainerNetworkType string
The container network type: overlay_l2 , underlay_ipvlan or vpc-router.
Description string
Cluster description.
EniSubnetCidr string
ENI network segment.
EniSubnetId string
ENI subnet ID.
External string
The external network address.
ExternalOtc string
The endpoint of the cluster to be accessed through API Gateway.
FlavorId string
The cluster specification in string format.
HighwaySubnetId string
The ID of the high speed network used to create bare metal nodes.
Id string
The ID of the cluster.
Internal string
The internal network address.
Region string
SubnetId string
The ID of the subnet used to create the node.
ClusterType string
Name string
The name of the cluster in string format.
Status string
VpcId string
authenticationMode String
(Optional) Authentication mode of the cluster, possible values are rbac and authenticating_proxy.
billingMode Double
certificateClusters List<GetCceClusterV3CertificateCluster>
certificateUsers List<GetCceClusterV3CertificateUser>
clusterVersion String
The version of cluster in string format.
containerNetworkCidr String
The container network segment.
containerNetworkType String
The container network type: overlay_l2 , underlay_ipvlan or vpc-router.
description String
Cluster description.
eniSubnetCidr String
ENI network segment.
eniSubnetId String
ENI subnet ID.
external String
The external network address.
externalOtc String
The endpoint of the cluster to be accessed through API Gateway.
flavorId String
The cluster specification in string format.
highwaySubnetId String
The ID of the high speed network used to create bare metal nodes.
id String
The ID of the cluster.
internal String
The internal network address.
region String
subnetId String
The ID of the subnet used to create the node.
clusterType String
name String
The name of the cluster in string format.
status String
vpcId String
authenticationMode string
(Optional) Authentication mode of the cluster, possible values are rbac and authenticating_proxy.
billingMode number
certificateClusters GetCceClusterV3CertificateCluster[]
certificateUsers GetCceClusterV3CertificateUser[]
clusterVersion string
The version of cluster in string format.
containerNetworkCidr string
The container network segment.
containerNetworkType string
The container network type: overlay_l2 , underlay_ipvlan or vpc-router.
description string
Cluster description.
eniSubnetCidr string
ENI network segment.
eniSubnetId string
ENI subnet ID.
external string
The external network address.
externalOtc string
The endpoint of the cluster to be accessed through API Gateway.
flavorId string
The cluster specification in string format.
highwaySubnetId string
The ID of the high speed network used to create bare metal nodes.
id string
The ID of the cluster.
internal string
The internal network address.
region string
subnetId string
The ID of the subnet used to create the node.
clusterType string
name string
The name of the cluster in string format.
status string
vpcId string
authentication_mode str
(Optional) Authentication mode of the cluster, possible values are rbac and authenticating_proxy.
billing_mode float
certificate_clusters Sequence[GetCceClusterV3CertificateCluster]
certificate_users Sequence[GetCceClusterV3CertificateUser]
cluster_version str
The version of cluster in string format.
container_network_cidr str
The container network segment.
container_network_type str
The container network type: overlay_l2 , underlay_ipvlan or vpc-router.
description str
Cluster description.
eni_subnet_cidr str
ENI network segment.
eni_subnet_id str
ENI subnet ID.
external str
The external network address.
external_otc str
The endpoint of the cluster to be accessed through API Gateway.
flavor_id str
The cluster specification in string format.
highway_subnet_id str
The ID of the high speed network used to create bare metal nodes.
id str
The ID of the cluster.
internal str
The internal network address.
region str
subnet_id str
The ID of the subnet used to create the node.
cluster_type str
name str
The name of the cluster in string format.
status str
vpc_id str
authenticationMode String
(Optional) Authentication mode of the cluster, possible values are rbac and authenticating_proxy.
billingMode Number
certificateClusters List<Property Map>
certificateUsers List<Property Map>
clusterVersion String
The version of cluster in string format.
containerNetworkCidr String
The container network segment.
containerNetworkType String
The container network type: overlay_l2 , underlay_ipvlan or vpc-router.
description String
Cluster description.
eniSubnetCidr String
ENI network segment.
eniSubnetId String
ENI subnet ID.
external String
The external network address.
externalOtc String
The endpoint of the cluster to be accessed through API Gateway.
flavorId String
The cluster specification in string format.
highwaySubnetId String
The ID of the high speed network used to create bare metal nodes.
id String
The ID of the cluster.
internal String
The internal network address.
region String
subnetId String
The ID of the subnet used to create the node.
clusterType String
name String
The name of the cluster in string format.
status String
vpcId String

Supporting Types

GetCceClusterV3CertificateCluster

CertificateAuthorityData This property is required. string
Name This property is required. string
The Name of the cluster resource.
Server This property is required. string
CertificateAuthorityData This property is required. string
Name This property is required. string
The Name of the cluster resource.
Server This property is required. string
certificateAuthorityData This property is required. String
name This property is required. String
The Name of the cluster resource.
server This property is required. String
certificateAuthorityData This property is required. string
name This property is required. string
The Name of the cluster resource.
server This property is required. string
certificate_authority_data This property is required. str
name This property is required. str
The Name of the cluster resource.
server This property is required. str
certificateAuthorityData This property is required. String
name This property is required. String
The Name of the cluster resource.
server This property is required. String

GetCceClusterV3CertificateUser

ClientCertificateData This property is required. string
ClientKeyData This property is required. string
Name This property is required. string
The Name of the cluster resource.
ClientCertificateData This property is required. string
ClientKeyData This property is required. string
Name This property is required. string
The Name of the cluster resource.
clientCertificateData This property is required. String
clientKeyData This property is required. String
name This property is required. String
The Name of the cluster resource.
clientCertificateData This property is required. string
clientKeyData This property is required. string
name This property is required. string
The Name of the cluster resource.
client_certificate_data This property is required. str
client_key_data This property is required. str
name This property is required. str
The Name of the cluster resource.
clientCertificateData This property is required. String
clientKeyData This property is required. String
name This property is required. String
The Name of the cluster resource.

Package Details

Repository
opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
License
Notes
This Pulumi package is based on the opentelekomcloud Terraform Provider.
opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud