flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud
flexibleengine.getCceClusters
Explore with Pulumi AI
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud
Use this data source to get a list of CCE clusters.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const config = new pulumi.Config();
const clusterName = config.requireObject("clusterName");
const clusters = flexibleengine.getCceClusters({
name: clusterName,
status: "Available",
});
import pulumi
import pulumi_flexibleengine as flexibleengine
config = pulumi.Config()
cluster_name = config.require_object("clusterName")
clusters = flexibleengine.get_cce_clusters(name=cluster_name,
status="Available")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"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")
_, err := flexibleengine.GetCceClusters(ctx, &flexibleengine.GetCceClustersArgs{
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 Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var clusterName = config.RequireObject<dynamic>("clusterName");
var clusters = Flexibleengine.GetCceClusters.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.flexibleengine.FlexibleengineFunctions;
import com.pulumi.flexibleengine.inputs.GetCceClustersArgs;
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 clusters = FlexibleengineFunctions.getCceClusters(GetCceClustersArgs.builder()
.name(clusterName)
.status("Available")
.build());
}
}
configuration:
clusterName:
type: dynamic
variables:
clusters:
fn::invoke:
function: flexibleengine:getCceClusters
arguments:
name: ${clusterName}
status: Available
Using getCceClusters
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 getCceClusters(args: GetCceClustersArgs, opts?: InvokeOptions): Promise<GetCceClustersResult>
function getCceClustersOutput(args: GetCceClustersOutputArgs, opts?: InvokeOptions): Output<GetCceClustersResult>
def get_cce_clusters(cluster_id: Optional[str] = None,
cluster_type: Optional[str] = None,
enterprise_project_id: 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) -> GetCceClustersResult
def get_cce_clusters_output(cluster_id: Optional[pulumi.Input[str]] = None,
cluster_type: Optional[pulumi.Input[str]] = None,
enterprise_project_id: 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[GetCceClustersResult]
func GetCceClusters(ctx *Context, args *GetCceClustersArgs, opts ...InvokeOption) (*GetCceClustersResult, error)
func GetCceClustersOutput(ctx *Context, args *GetCceClustersOutputArgs, opts ...InvokeOption) GetCceClustersResultOutput
> Note: This function is named GetCceClusters
in the Go SDK.
public static class GetCceClusters
{
public static Task<GetCceClustersResult> InvokeAsync(GetCceClustersArgs args, InvokeOptions? opts = null)
public static Output<GetCceClustersResult> Invoke(GetCceClustersInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCceClustersResult> getCceClusters(GetCceClustersArgs args, InvokeOptions options)
public static Output<GetCceClustersResult> getCceClusters(GetCceClustersArgs args, InvokeOptions options)
fn::invoke:
function: flexibleengine:index/getCceClusters:getCceClusters
arguments:
# arguments dictionary
The following arguments are supported:
- Cluster
Id string - Specifies the ID of the cluster.
- Cluster
Type string - Specifies the type of the cluster. Possible values: VirtualMachine, BareMetal.
- Enterprise
Project stringId - Specifies the enterprise project ID of the cluster.
- Id string
- The ID of the cluster.
- Name string
- Specifies the name of the cluster.
- Region string
- Specifies the region in which to obtain the CCE clusters. If omitted, the provider-level region will be used.
- Status string
- Specifies the status of the cluster.
- Vpc
Id string - Specifies the VPC ID to which the cluster belongs.
- Cluster
Id string - Specifies the ID of the cluster.
- Cluster
Type string - Specifies the type of the cluster. Possible values: VirtualMachine, BareMetal.
- Enterprise
Project stringId - Specifies the enterprise project ID of the cluster.
- Id string
- The ID of the cluster.
- Name string
- Specifies the name of the cluster.
- Region string
- Specifies the region in which to obtain the CCE clusters. If omitted, the provider-level region will be used.
- Status string
- Specifies the status of the cluster.
- Vpc
Id string - Specifies the VPC ID to which the cluster belongs.
- cluster
Id String - Specifies the ID of the cluster.
- cluster
Type String - Specifies the type of the cluster. Possible values: VirtualMachine, BareMetal.
- enterprise
Project StringId - Specifies the enterprise project ID of the cluster.
- id String
- The ID of the cluster.
- name String
- Specifies the name of the cluster.
- region String
- Specifies the region in which to obtain the CCE clusters. If omitted, the provider-level region will be used.
- status String
- Specifies the status of the cluster.
- vpc
Id String - Specifies the VPC ID to which the cluster belongs.
- cluster
Id string - Specifies the ID of the cluster.
- cluster
Type string - Specifies the type of the cluster. Possible values: VirtualMachine, BareMetal.
- enterprise
Project stringId - Specifies the enterprise project ID of the cluster.
- id string
- The ID of the cluster.
- name string
- Specifies the name of the cluster.
- region string
- Specifies the region in which to obtain the CCE clusters. If omitted, the provider-level region will be used.
- status string
- Specifies the status of the cluster.
- vpc
Id string - Specifies the VPC ID to which the cluster belongs.
- cluster_
id str - Specifies the ID of the cluster.
- cluster_
type str - Specifies the type of the cluster. Possible values: VirtualMachine, BareMetal.
- enterprise_
project_ strid - Specifies the enterprise project ID of the cluster.
- id str
- The ID of the cluster.
- name str
- Specifies the name of the cluster.
- region str
- Specifies the region in which to obtain the CCE clusters. If omitted, the provider-level region will be used.
- status str
- Specifies the status of the cluster.
- vpc_
id str - Specifies the VPC ID to which the cluster belongs.
- cluster
Id String - Specifies the ID of the cluster.
- cluster
Type String - Specifies the type of the cluster. Possible values: VirtualMachine, BareMetal.
- enterprise
Project StringId - Specifies the enterprise project ID of the cluster.
- id String
- The ID of the cluster.
- name String
- Specifies the name of the cluster.
- region String
- Specifies the region in which to obtain the CCE clusters. If omitted, the provider-level region will be used.
- status String
- Specifies the status of the cluster.
- vpc
Id String - Specifies the VPC ID to which the cluster belongs.
getCceClusters Result
The following output properties are available:
- Clusters
List<Get
Cce Clusters Cluster> - Indicates a list of CCE clusters found. The clusters object structure is documented below.
- Id string
- The ID of the cluster.
- Ids List<string>
- Indicates a list of IDs of all CCE clusters found.
- Region string
- Cluster
Id string - Cluster
Type string - The type of the cluster. Possible values: VirtualMachine, ARM64.
- Enterprise
Project stringId - The enterprise project ID of the CCE cluster.
- Name string
- The user name.
- Status string
- The status of the cluster.
- Vpc
Id string - The vpc ID of the cluster.
- Clusters
[]Get
Cce Clusters Cluster - Indicates a list of CCE clusters found. The clusters object structure is documented below.
- Id string
- The ID of the cluster.
- Ids []string
- Indicates a list of IDs of all CCE clusters found.
- Region string
- Cluster
Id string - Cluster
Type string - The type of the cluster. Possible values: VirtualMachine, ARM64.
- Enterprise
Project stringId - The enterprise project ID of the CCE cluster.
- Name string
- The user name.
- Status string
- The status of the cluster.
- Vpc
Id string - The vpc ID of the cluster.
- clusters
List<Get
Cce Clusters Cluster> - Indicates a list of CCE clusters found. The clusters object structure is documented below.
- id String
- The ID of the cluster.
- ids List<String>
- Indicates a list of IDs of all CCE clusters found.
- region String
- cluster
Id String - cluster
Type String - The type of the cluster. Possible values: VirtualMachine, ARM64.
- enterprise
Project StringId - The enterprise project ID of the CCE cluster.
- name String
- The user name.
- status String
- The status of the cluster.
- vpc
Id String - The vpc ID of the cluster.
- clusters
Get
Cce Clusters Cluster[] - Indicates a list of CCE clusters found. The clusters object structure is documented below.
- id string
- The ID of the cluster.
- ids string[]
- Indicates a list of IDs of all CCE clusters found.
- region string
- cluster
Id string - cluster
Type string - The type of the cluster. Possible values: VirtualMachine, ARM64.
- enterprise
Project stringId - The enterprise project ID of the CCE cluster.
- name string
- The user name.
- status string
- The status of the cluster.
- vpc
Id string - The vpc ID of the cluster.
- clusters
Sequence[Get
Cce Clusters Cluster] - Indicates a list of CCE clusters found. The clusters object structure is documented below.
- id str
- The ID of the cluster.
- ids Sequence[str]
- Indicates a list of IDs of all CCE clusters found.
- region str
- cluster_
id str - cluster_
type str - The type of the cluster. Possible values: VirtualMachine, ARM64.
- enterprise_
project_ strid - The enterprise project ID of the CCE cluster.
- name str
- The user name.
- status str
- The status of the cluster.
- vpc_
id str - The vpc ID of the cluster.
- clusters List<Property Map>
- Indicates a list of CCE clusters found. The clusters object structure is documented below.
- id String
- The ID of the cluster.
- ids List<String>
- Indicates a list of IDs of all CCE clusters found.
- region String
- cluster
Id String - cluster
Type String - The type of the cluster. Possible values: VirtualMachine, ARM64.
- enterprise
Project StringId - The enterprise project ID of the CCE cluster.
- name String
- The user name.
- status String
- The status of the cluster.
- vpc
Id String - The vpc ID of the cluster.
Supporting Types
GetCceClustersCluster
- Authentication
Mode string - The authentication mode of the cluster, possible values are x509 and rbac. Defaults to rbac.
- Billing
Mode double - The charging mode of the cluster.
- Certificate
Clusters List<GetCce Clusters Cluster Certificate Cluster> - The certificate clusters. The certificate_clusters object structure is documented below.
- Certificate
Users List<GetCce Clusters Cluster Certificate User> - The certificate users The certificate_users object structure is documented below.
- Cluster
Type string - Specifies the type of the cluster. Possible values: VirtualMachine, BareMetal.
- Cluster
Version string - The version of the cluster.
- Container
Network stringCidr - The container network segment.
- Container
Network stringType - The container network type: overlay_l2 , underlay_ipvlan, vpc-router or eni.
- Description string
- The description of the cluster.
- Endpoints
List<Get
Cce Clusters Cluster Endpoint> - The access addresses of kube-apiserver in the cluster. The endpoints object structure is documented below.
- Eni
Subnet stringCidr - The ENI network segment.
- Eni
Subnet stringId - The ENI subnet ID.
- Enterprise
Project stringId - Specifies the enterprise project ID of the cluster.
- Flavor
Id string - The specification of the cluster.
- Id string
- The ID of the cluster.
- Kube
Config stringRaw - The raw Kubernetes config to be used by kubectl and other compatible tools.
- Masters
List<Get
Cce Clusters Cluster Master> - The advanced configuration of master nodes.The masters object structure is documented below.
- Name string
- Specifies the name of the cluster.
- Security
Group stringId - The security group ID of the cluster.
- Service
Network stringCidr - The service network segment.
- Status string
- Specifies the status of the cluster.
- Subnet
Id string - The ID of the VPC Subnet used to create the node.
- Vpc
Id string - Specifies the VPC ID to which the cluster belongs.
- Authentication
Mode string - The authentication mode of the cluster, possible values are x509 and rbac. Defaults to rbac.
- Billing
Mode float64 - The charging mode of the cluster.
- Certificate
Clusters []GetCce Clusters Cluster Certificate Cluster - The certificate clusters. The certificate_clusters object structure is documented below.
- Certificate
Users []GetCce Clusters Cluster Certificate User - The certificate users The certificate_users object structure is documented below.
- Cluster
Type string - Specifies the type of the cluster. Possible values: VirtualMachine, BareMetal.
- Cluster
Version string - The version of the cluster.
- Container
Network stringCidr - The container network segment.
- Container
Network stringType - The container network type: overlay_l2 , underlay_ipvlan, vpc-router or eni.
- Description string
- The description of the cluster.
- Endpoints
[]Get
Cce Clusters Cluster Endpoint - The access addresses of kube-apiserver in the cluster. The endpoints object structure is documented below.
- Eni
Subnet stringCidr - The ENI network segment.
- Eni
Subnet stringId - The ENI subnet ID.
- Enterprise
Project stringId - Specifies the enterprise project ID of the cluster.
- Flavor
Id string - The specification of the cluster.
- Id string
- The ID of the cluster.
- Kube
Config stringRaw - The raw Kubernetes config to be used by kubectl and other compatible tools.
- Masters
[]Get
Cce Clusters Cluster Master - The advanced configuration of master nodes.The masters object structure is documented below.
- Name string
- Specifies the name of the cluster.
- Security
Group stringId - The security group ID of the cluster.
- Service
Network stringCidr - The service network segment.
- Status string
- Specifies the status of the cluster.
- Subnet
Id string - The ID of the VPC Subnet used to create the node.
- Vpc
Id string - Specifies the VPC ID to which the cluster belongs.
- authentication
Mode String - The authentication mode of the cluster, possible values are x509 and rbac. Defaults to rbac.
- billing
Mode Double - The charging mode of the cluster.
- certificate
Clusters List<GetCce Clusters Cluster Certificate Cluster> - The certificate clusters. The certificate_clusters object structure is documented below.
- certificate
Users List<GetCce Clusters Cluster Certificate User> - The certificate users The certificate_users object structure is documented below.
- cluster
Type String - Specifies the type of the cluster. Possible values: VirtualMachine, BareMetal.
- cluster
Version String - The version of the cluster.
- container
Network StringCidr - The container network segment.
- container
Network StringType - The container network type: overlay_l2 , underlay_ipvlan, vpc-router or eni.
- description String
- The description of the cluster.
- endpoints
List<Get
Cce Clusters Cluster Endpoint> - The access addresses of kube-apiserver in the cluster. The endpoints object structure is documented below.
- eni
Subnet StringCidr - The ENI network segment.
- eni
Subnet StringId - The ENI subnet ID.
- enterprise
Project StringId - Specifies the enterprise project ID of the cluster.
- flavor
Id String - The specification of the cluster.
- id String
- The ID of the cluster.
- kube
Config StringRaw - The raw Kubernetes config to be used by kubectl and other compatible tools.
- masters
List<Get
Cce Clusters Cluster Master> - The advanced configuration of master nodes.The masters object structure is documented below.
- name String
- Specifies the name of the cluster.
- security
Group StringId - The security group ID of the cluster.
- service
Network StringCidr - The service network segment.
- status String
- Specifies the status of the cluster.
- subnet
Id String - The ID of the VPC Subnet used to create the node.
- vpc
Id String - Specifies the VPC ID to which the cluster belongs.
- authentication
Mode string - The authentication mode of the cluster, possible values are x509 and rbac. Defaults to rbac.
- billing
Mode number - The charging mode of the cluster.
- certificate
Clusters GetCce Clusters Cluster Certificate Cluster[] - The certificate clusters. The certificate_clusters object structure is documented below.
- certificate
Users GetCce Clusters Cluster Certificate User[] - The certificate users The certificate_users object structure is documented below.
- cluster
Type string - Specifies the type of the cluster. Possible values: VirtualMachine, BareMetal.
- cluster
Version string - The version of the cluster.
- container
Network stringCidr - The container network segment.
- container
Network stringType - The container network type: overlay_l2 , underlay_ipvlan, vpc-router or eni.
- description string
- The description of the cluster.
- endpoints
Get
Cce Clusters Cluster Endpoint[] - The access addresses of kube-apiserver in the cluster. The endpoints object structure is documented below.
- eni
Subnet stringCidr - The ENI network segment.
- eni
Subnet stringId - The ENI subnet ID.
- enterprise
Project stringId - Specifies the enterprise project ID of the cluster.
- flavor
Id string - The specification of the cluster.
- id string
- The ID of the cluster.
- kube
Config stringRaw - The raw Kubernetes config to be used by kubectl and other compatible tools.
- masters
Get
Cce Clusters Cluster Master[] - The advanced configuration of master nodes.The masters object structure is documented below.
- name string
- Specifies the name of the cluster.
- security
Group stringId - The security group ID of the cluster.
- service
Network stringCidr - The service network segment.
- status string
- Specifies the status of the cluster.
- subnet
Id string - The ID of the VPC Subnet used to create the node.
- vpc
Id string - Specifies the VPC ID to which the cluster belongs.
- authentication_
mode str - The authentication mode of the cluster, possible values are x509 and rbac. Defaults to rbac.
- billing_
mode float - The charging mode of the cluster.
- certificate_
clusters Sequence[GetCce Clusters Cluster Certificate Cluster] - The certificate clusters. The certificate_clusters object structure is documented below.
- certificate_
users Sequence[GetCce Clusters Cluster Certificate User] - The certificate users The certificate_users object structure is documented below.
- cluster_
type str - Specifies the type of the cluster. Possible values: VirtualMachine, BareMetal.
- cluster_
version str - The version of the cluster.
- container_
network_ strcidr - The container network segment.
- container_
network_ strtype - The container network type: overlay_l2 , underlay_ipvlan, vpc-router or eni.
- description str
- The description of the cluster.
- endpoints
Sequence[Get
Cce Clusters Cluster Endpoint] - The access addresses of kube-apiserver in the cluster. The endpoints object structure is documented below.
- eni_
subnet_ strcidr - The ENI network segment.
- eni_
subnet_ strid - The ENI subnet ID.
- enterprise_
project_ strid - Specifies the enterprise project ID of the cluster.
- flavor_
id str - The specification of the cluster.
- id str
- The ID of the cluster.
- kube_
config_ strraw - The raw Kubernetes config to be used by kubectl and other compatible tools.
- masters
Sequence[Get
Cce Clusters Cluster Master] - The advanced configuration of master nodes.The masters object structure is documented below.
- name str
- Specifies the name of the cluster.
- security_
group_ strid - The security group ID of the cluster.
- service_
network_ strcidr - The service network segment.
- status str
- Specifies the status of the cluster.
- subnet_
id str - The ID of the VPC Subnet used to create the node.
- vpc_
id str - Specifies the VPC ID to which the cluster belongs.
- authentication
Mode String - The authentication mode of the cluster, possible values are x509 and rbac. Defaults to rbac.
- billing
Mode Number - The charging mode of the cluster.
- certificate
Clusters List<Property Map> - The certificate clusters. The certificate_clusters object structure is documented below.
- certificate
Users List<Property Map> - The certificate users The certificate_users object structure is documented below.
- cluster
Type String - Specifies the type of the cluster. Possible values: VirtualMachine, BareMetal.
- cluster
Version String - The version of the cluster.
- container
Network StringCidr - The container network segment.
- container
Network StringType - The container network type: overlay_l2 , underlay_ipvlan, vpc-router or eni.
- description String
- The description of the cluster.
- endpoints List<Property Map>
- The access addresses of kube-apiserver in the cluster. The endpoints object structure is documented below.
- eni
Subnet StringCidr - The ENI network segment.
- eni
Subnet StringId - The ENI subnet ID.
- enterprise
Project StringId - Specifies the enterprise project ID of the cluster.
- flavor
Id String - The specification of the cluster.
- id String
- The ID of the cluster.
- kube
Config StringRaw - The raw Kubernetes config to be used by kubectl and other compatible tools.
- masters List<Property Map>
- The advanced configuration of master nodes.The masters object structure is documented below.
- name String
- Specifies the name of the cluster.
- security
Group StringId - The security group ID of the cluster.
- service
Network StringCidr - The service network segment.
- status String
- Specifies the status of the cluster.
- subnet
Id String - The ID of the VPC Subnet used to create the node.
- vpc
Id String - Specifies the VPC ID to which the cluster belongs.
GetCceClustersClusterCertificateCluster
GetCceClustersClusterCertificateUser
- Client
Certificate stringData - The client certificate data.
- Client
Key stringData - The client key data.
- Name string
- Specifies the name of the cluster.
- Client
Certificate stringData - The client certificate data.
- Client
Key stringData - The client key data.
- Name string
- Specifies the name of the cluster.
- client
Certificate StringData - The client certificate data.
- client
Key StringData - The client key data.
- name String
- Specifies the name of the cluster.
- client
Certificate stringData - The client certificate data.
- client
Key stringData - The client key data.
- name string
- Specifies the name of the cluster.
- client_
certificate_ strdata - The client certificate data.
- client_
key_ strdata - The client key data.
- name str
- Specifies the name of the cluster.
- client
Certificate StringData - The client certificate data.
- client
Key StringData - The client key data.
- name String
- Specifies the name of the cluster.
GetCceClustersClusterEndpoint
GetCceClustersClusterMaster
- Availability
Zone string - The availability zone (AZ) of the master node.
- Availability
Zone string - The availability zone (AZ) of the master node.
- availability
Zone String - The availability zone (AZ) of the master node.
- availability
Zone string - The availability zone (AZ) of the master node.
- availability_
zone str - The availability zone (AZ) of the master node.
- availability
Zone String - The availability zone (AZ) of the master node.
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud