opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud
opentelekomcloud.getCceClusterV3
Explore with Pulumi AI
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 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",
});
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")
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
})
}
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",
});
});
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());
}
}
configuration:
clusterName:
type: dynamic
clusterId:
type: dynamic
vpcId:
type: dynamic
variables:
cluster:
fn::invoke:
function: opentelekomcloud:getCceClusterV3
arguments:
name: ${clusterName}
status: Available
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>
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]
func LookupCceClusterV3(ctx *Context, args *LookupCceClusterV3Args, opts ...InvokeOption) (*LookupCceClusterV3Result, error)
func LookupCceClusterV3Output(ctx *Context, args *LookupCceClusterV3OutputArgs, opts ...InvokeOption) LookupCceClusterV3ResultOutput
> 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)
}
public static CompletableFuture<GetCceClusterV3Result> getCceClusterV3(GetCceClusterV3Args args, InvokeOptions options)
public static Output<GetCceClusterV3Result> getCceClusterV3(GetCceClusterV3Args args, InvokeOptions options)
fn::invoke:
function: opentelekomcloud:index/getCceClusterV3:getCceClusterV3
arguments:
# arguments dictionary
The following arguments are supported:
getCceClusterV3 Result
The following output properties are available:
- Authentication
Mode string - (Optional) Authentication mode of the cluster, possible values are
rbac
andauthenticating_proxy
. - Billing
Mode double - Certificate
Clusters List<GetCce Cluster V3Certificate Cluster> - Certificate
Users List<GetCce Cluster V3Certificate User> - Cluster
Version string - The version of cluster in string format.
- Container
Network stringCidr - The container network segment.
- Container
Network stringType - The container network type: overlay_l2 , underlay_ipvlan or vpc-router.
- Description string
- Cluster description.
- Eni
Subnet stringCidr - ENI network segment.
- Eni
Subnet stringId - ENI subnet ID.
- External string
- The external network address.
- External
Otc string - The endpoint of the cluster to be accessed through API Gateway.
- Flavor
Id string - The cluster specification in string format.
- Highway
Subnet stringId - 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
- Subnet
Id string - The ID of the subnet used to create the node.
- Cluster
Type string - Name string
- The name of the cluster in string format.
- Status string
- Vpc
Id string
- Authentication
Mode string - (Optional) Authentication mode of the cluster, possible values are
rbac
andauthenticating_proxy
. - Billing
Mode float64 - Certificate
Clusters []GetCce Cluster V3Certificate Cluster - Certificate
Users []GetCce Cluster V3Certificate User - Cluster
Version string - The version of cluster in string format.
- Container
Network stringCidr - The container network segment.
- Container
Network stringType - The container network type: overlay_l2 , underlay_ipvlan or vpc-router.
- Description string
- Cluster description.
- Eni
Subnet stringCidr - ENI network segment.
- Eni
Subnet stringId - ENI subnet ID.
- External string
- The external network address.
- External
Otc string - The endpoint of the cluster to be accessed through API Gateway.
- Flavor
Id string - The cluster specification in string format.
- Highway
Subnet stringId - 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
- Subnet
Id string - The ID of the subnet used to create the node.
- Cluster
Type string - Name string
- The name of the cluster in string format.
- Status string
- Vpc
Id string
- authentication
Mode String - (Optional) Authentication mode of the cluster, possible values are
rbac
andauthenticating_proxy
. - billing
Mode Double - certificate
Clusters List<GetCce Cluster V3Certificate Cluster> - certificate
Users List<GetCce Cluster V3Certificate User> - cluster
Version String - The version of cluster in string format.
- container
Network StringCidr - The container network segment.
- container
Network StringType - The container network type: overlay_l2 , underlay_ipvlan or vpc-router.
- description String
- Cluster description.
- eni
Subnet StringCidr - ENI network segment.
- eni
Subnet StringId - ENI subnet ID.
- external String
- The external network address.
- external
Otc String - The endpoint of the cluster to be accessed through API Gateway.
- flavor
Id String - The cluster specification in string format.
- highway
Subnet StringId - 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
- subnet
Id String - The ID of the subnet used to create the node.
- cluster
Type String - name String
- The name of the cluster in string format.
- status String
- vpc
Id String
- authentication
Mode string - (Optional) Authentication mode of the cluster, possible values are
rbac
andauthenticating_proxy
. - billing
Mode number - certificate
Clusters GetCce Cluster V3Certificate Cluster[] - certificate
Users GetCce Cluster V3Certificate User[] - cluster
Version string - The version of cluster in string format.
- container
Network stringCidr - The container network segment.
- container
Network stringType - The container network type: overlay_l2 , underlay_ipvlan or vpc-router.
- description string
- Cluster description.
- eni
Subnet stringCidr - ENI network segment.
- eni
Subnet stringId - ENI subnet ID.
- external string
- The external network address.
- external
Otc string - The endpoint of the cluster to be accessed through API Gateway.
- flavor
Id string - The cluster specification in string format.
- highway
Subnet stringId - 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
- subnet
Id string - The ID of the subnet used to create the node.
- cluster
Type string - name string
- The name of the cluster in string format.
- status string
- vpc
Id string
- authentication_
mode str - (Optional) Authentication mode of the cluster, possible values are
rbac
andauthenticating_proxy
. - billing_
mode float - certificate_
clusters Sequence[GetCce Cluster V3Certificate Cluster] - certificate_
users Sequence[GetCce Cluster V3Certificate User] - cluster_
version str - The version of cluster in string format.
- container_
network_ strcidr - The container network segment.
- container_
network_ strtype - The container network type: overlay_l2 , underlay_ipvlan or vpc-router.
- description str
- Cluster description.
- eni_
subnet_ strcidr - ENI network segment.
- eni_
subnet_ strid - 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_ strid - 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
- authentication
Mode String - (Optional) Authentication mode of the cluster, possible values are
rbac
andauthenticating_proxy
. - billing
Mode Number - certificate
Clusters List<Property Map> - certificate
Users List<Property Map> - cluster
Version String - The version of cluster in string format.
- container
Network StringCidr - The container network segment.
- container
Network StringType - The container network type: overlay_l2 , underlay_ipvlan or vpc-router.
- description String
- Cluster description.
- eni
Subnet StringCidr - ENI network segment.
- eni
Subnet StringId - ENI subnet ID.
- external String
- The external network address.
- external
Otc String - The endpoint of the cluster to be accessed through API Gateway.
- flavor
Id String - The cluster specification in string format.
- highway
Subnet StringId - 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
- subnet
Id String - The ID of the subnet used to create the node.
- cluster
Type String - name String
- The name of the cluster in string format.
- status String
- vpc
Id String
Supporting Types
GetCceClusterV3CertificateCluster
GetCceClusterV3CertificateUser
- Client
Certificate stringData - Client
Key stringData - Name string
- The Name of the cluster resource.
- Client
Certificate stringData - Client
Key stringData - Name string
- The Name of the cluster resource.
- client
Certificate StringData - client
Key StringData - name String
- The Name of the cluster resource.
- client
Certificate stringData - client
Key stringData - name string
- The Name of the cluster resource.
- client_
certificate_ strdata - client_
key_ strdata - name str
- The Name of the cluster resource.
- client
Certificate StringData - client
Key StringData - name 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.37 published on Thursday, Apr 24, 2025 by opentelekomcloud