1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. getCceNodes
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.getCceNodes

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 nodes.

Example Usage

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

const config = new pulumi.Config();
const clusterId = config.requireObject("clusterId");
const nodeName = config.requireObject("nodeName");
const node = flexibleengine.getCceNodes({
    clusterId: clusterId,
    name: nodeName,
});
Copy
import pulumi
import pulumi_flexibleengine as flexibleengine

config = pulumi.Config()
cluster_id = config.require_object("clusterId")
node_name = config.require_object("nodeName")
node = flexibleengine.get_cce_nodes(cluster_id=cluster_id,
    name=node_name)
Copy
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, "")
		clusterId := cfg.RequireObject("clusterId")
		nodeName := cfg.RequireObject("nodeName")
		_, err := flexibleengine.GetCceNodes(ctx, &flexibleengine.GetCceNodesArgs{
			ClusterId: clusterId,
			Name:      pulumi.StringRef(nodeName),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;

return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var clusterId = config.RequireObject<dynamic>("clusterId");
    var nodeName = config.RequireObject<dynamic>("nodeName");
    var node = Flexibleengine.GetCceNodes.Invoke(new()
    {
        ClusterId = clusterId,
        Name = nodeName,
    });

});
Copy
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.GetCceNodesArgs;
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 clusterId = config.get("clusterId");
        final var nodeName = config.get("nodeName");
        final var node = FlexibleengineFunctions.getCceNodes(GetCceNodesArgs.builder()
            .clusterId(clusterId)
            .name(nodeName)
            .build());

    }
}
Copy
configuration:
  clusterId:
    type: dynamic
  nodeName:
    type: dynamic
variables:
  node:
    fn::invoke:
      function: flexibleengine:getCceNodes
      arguments:
        clusterId: ${clusterId}
        name: ${nodeName}
Copy

Using getCceNodes

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 getCceNodes(args: GetCceNodesArgs, opts?: InvokeOptions): Promise<GetCceNodesResult>
function getCceNodesOutput(args: GetCceNodesOutputArgs, opts?: InvokeOptions): Output<GetCceNodesResult>
Copy
def get_cce_nodes(cluster_id: Optional[str] = None,
                  id: Optional[str] = None,
                  name: Optional[str] = None,
                  node_id: Optional[str] = None,
                  region: Optional[str] = None,
                  status: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetCceNodesResult
def get_cce_nodes_output(cluster_id: Optional[pulumi.Input[str]] = None,
                  id: Optional[pulumi.Input[str]] = None,
                  name: Optional[pulumi.Input[str]] = None,
                  node_id: Optional[pulumi.Input[str]] = None,
                  region: Optional[pulumi.Input[str]] = None,
                  status: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetCceNodesResult]
Copy
func GetCceNodes(ctx *Context, args *GetCceNodesArgs, opts ...InvokeOption) (*GetCceNodesResult, error)
func GetCceNodesOutput(ctx *Context, args *GetCceNodesOutputArgs, opts ...InvokeOption) GetCceNodesResultOutput
Copy

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

public static class GetCceNodes 
{
    public static Task<GetCceNodesResult> InvokeAsync(GetCceNodesArgs args, InvokeOptions? opts = null)
    public static Output<GetCceNodesResult> Invoke(GetCceNodesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetCceNodesResult> getCceNodes(GetCceNodesArgs args, InvokeOptions options)
public static Output<GetCceNodesResult> getCceNodes(GetCceNodesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: flexibleengine:index/getCceNodes:getCceNodes
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ClusterId This property is required. string
Specifies the ID of CCE cluster.
Id string
The ID of the node.
Name string
Specifies the name of the node.
NodeId string
Specifies the ID of the node.
Region string
Specifies the region in which to query the CCE nodes. If omitted, the provider-level region will be used.
Status string
Specifies the status of the node.
ClusterId This property is required. string
Specifies the ID of CCE cluster.
Id string
The ID of the node.
Name string
Specifies the name of the node.
NodeId string
Specifies the ID of the node.
Region string
Specifies the region in which to query the CCE nodes. If omitted, the provider-level region will be used.
Status string
Specifies the status of the node.
clusterId This property is required. String
Specifies the ID of CCE cluster.
id String
The ID of the node.
name String
Specifies the name of the node.
nodeId String
Specifies the ID of the node.
region String
Specifies the region in which to query the CCE nodes. If omitted, the provider-level region will be used.
status String
Specifies the status of the node.
clusterId This property is required. string
Specifies the ID of CCE cluster.
id string
The ID of the node.
name string
Specifies the name of the node.
nodeId string
Specifies the ID of the node.
region string
Specifies the region in which to query the CCE nodes. If omitted, the provider-level region will be used.
status string
Specifies the status of the node.
cluster_id This property is required. str
Specifies the ID of CCE cluster.
id str
The ID of the node.
name str
Specifies the name of the node.
node_id str
Specifies the ID of the node.
region str
Specifies the region in which to query the CCE nodes. If omitted, the provider-level region will be used.
status str
Specifies the status of the node.
clusterId This property is required. String
Specifies the ID of CCE cluster.
id String
The ID of the node.
name String
Specifies the name of the node.
nodeId String
Specifies the ID of the node.
region String
Specifies the region in which to query the CCE nodes. If omitted, the provider-level region will be used.
status String
Specifies the status of the node.

getCceNodes Result

The following output properties are available:

ClusterId string
Id string
The ID of the node.
Ids List<string>
Indicates a list of IDs of all CCE nodes found.
Nodes List<GetCceNodesNode>
Indicates a list of CCE nodes found. The nodes object structure is documented below.
Region string
Name string
The name of the node.
NodeId string
Status string
The status of the node.
ClusterId string
Id string
The ID of the node.
Ids []string
Indicates a list of IDs of all CCE nodes found.
Nodes []GetCceNodesNode
Indicates a list of CCE nodes found. The nodes object structure is documented below.
Region string
Name string
The name of the node.
NodeId string
Status string
The status of the node.
clusterId String
id String
The ID of the node.
ids List<String>
Indicates a list of IDs of all CCE nodes found.
nodes List<GetCceNodesNode>
Indicates a list of CCE nodes found. The nodes object structure is documented below.
region String
name String
The name of the node.
nodeId String
status String
The status of the node.
clusterId string
id string
The ID of the node.
ids string[]
Indicates a list of IDs of all CCE nodes found.
nodes GetCceNodesNode[]
Indicates a list of CCE nodes found. The nodes object structure is documented below.
region string
name string
The name of the node.
nodeId string
status string
The status of the node.
cluster_id str
id str
The ID of the node.
ids Sequence[str]
Indicates a list of IDs of all CCE nodes found.
nodes Sequence[GetCceNodesNode]
Indicates a list of CCE nodes found. The nodes object structure is documented below.
region str
name str
The name of the node.
node_id str
status str
The status of the node.
clusterId String
id String
The ID of the node.
ids List<String>
Indicates a list of IDs of all CCE nodes found.
nodes List<Property Map>
Indicates a list of CCE nodes found. The nodes object structure is documented below.
region String
name String
The name of the node.
nodeId String
status String
The status of the node.

Supporting Types

GetCceNodesNode

AvailabilityZone This property is required. string
The available partitions where the node is located.
BillingMode This property is required. double
The node's billing mode: The value is 0 (on demand).
DataVolumes This property is required. List<GetCceNodesNodeDataVolume>
The data related configuration. The volume object structure is documented below.
EcsGroupId This property is required. string
The ID of ECS group to which the node belongs.
FlavorId This property is required. string
The flavor ID to be used.
Id This property is required. string
The ID of the node.
KeyPair This property is required. string
The key pair name when logging in to select the key pair mode.
Name This property is required. string
Specifies the name of the node.
Os This property is required. string
The operating system of the node.
PrivateIp This property is required. string
The private IP of the node.
PublicIp This property is required. string
The elastic IP parameters of the node.
RootVolumes This property is required. List<GetCceNodesNodeRootVolume>
The system disk related configuration. The volume object structure is documented below.
ServerId This property is required. string
The node's virtual machine ID in ECS.
Status This property is required. string
Specifies the status of the node.
SubnetId This property is required. string
The ID of the subnet to which the NIC belongs.
Tags This property is required. Dictionary<string, string>
The tags of a VM node, key/value pair format.
AvailabilityZone This property is required. string
The available partitions where the node is located.
BillingMode This property is required. float64
The node's billing mode: The value is 0 (on demand).
DataVolumes This property is required. []GetCceNodesNodeDataVolume
The data related configuration. The volume object structure is documented below.
EcsGroupId This property is required. string
The ID of ECS group to which the node belongs.
FlavorId This property is required. string
The flavor ID to be used.
Id This property is required. string
The ID of the node.
KeyPair This property is required. string
The key pair name when logging in to select the key pair mode.
Name This property is required. string
Specifies the name of the node.
Os This property is required. string
The operating system of the node.
PrivateIp This property is required. string
The private IP of the node.
PublicIp This property is required. string
The elastic IP parameters of the node.
RootVolumes This property is required. []GetCceNodesNodeRootVolume
The system disk related configuration. The volume object structure is documented below.
ServerId This property is required. string
The node's virtual machine ID in ECS.
Status This property is required. string
Specifies the status of the node.
SubnetId This property is required. string
The ID of the subnet to which the NIC belongs.
Tags This property is required. map[string]string
The tags of a VM node, key/value pair format.
availabilityZone This property is required. String
The available partitions where the node is located.
billingMode This property is required. Double
The node's billing mode: The value is 0 (on demand).
dataVolumes This property is required. List<GetCceNodesNodeDataVolume>
The data related configuration. The volume object structure is documented below.
ecsGroupId This property is required. String
The ID of ECS group to which the node belongs.
flavorId This property is required. String
The flavor ID to be used.
id This property is required. String
The ID of the node.
keyPair This property is required. String
The key pair name when logging in to select the key pair mode.
name This property is required. String
Specifies the name of the node.
os This property is required. String
The operating system of the node.
privateIp This property is required. String
The private IP of the node.
publicIp This property is required. String
The elastic IP parameters of the node.
rootVolumes This property is required. List<GetCceNodesNodeRootVolume>
The system disk related configuration. The volume object structure is documented below.
serverId This property is required. String
The node's virtual machine ID in ECS.
status This property is required. String
Specifies the status of the node.
subnetId This property is required. String
The ID of the subnet to which the NIC belongs.
tags This property is required. Map<String,String>
The tags of a VM node, key/value pair format.
availabilityZone This property is required. string
The available partitions where the node is located.
billingMode This property is required. number
The node's billing mode: The value is 0 (on demand).
dataVolumes This property is required. GetCceNodesNodeDataVolume[]
The data related configuration. The volume object structure is documented below.
ecsGroupId This property is required. string
The ID of ECS group to which the node belongs.
flavorId This property is required. string
The flavor ID to be used.
id This property is required. string
The ID of the node.
keyPair This property is required. string
The key pair name when logging in to select the key pair mode.
name This property is required. string
Specifies the name of the node.
os This property is required. string
The operating system of the node.
privateIp This property is required. string
The private IP of the node.
publicIp This property is required. string
The elastic IP parameters of the node.
rootVolumes This property is required. GetCceNodesNodeRootVolume[]
The system disk related configuration. The volume object structure is documented below.
serverId This property is required. string
The node's virtual machine ID in ECS.
status This property is required. string
Specifies the status of the node.
subnetId This property is required. string
The ID of the subnet to which the NIC belongs.
tags This property is required. {[key: string]: string}
The tags of a VM node, key/value pair format.
availability_zone This property is required. str
The available partitions where the node is located.
billing_mode This property is required. float
The node's billing mode: The value is 0 (on demand).
data_volumes This property is required. Sequence[GetCceNodesNodeDataVolume]
The data related configuration. The volume object structure is documented below.
ecs_group_id This property is required. str
The ID of ECS group to which the node belongs.
flavor_id This property is required. str
The flavor ID to be used.
id This property is required. str
The ID of the node.
key_pair This property is required. str
The key pair name when logging in to select the key pair mode.
name This property is required. str
Specifies the name of the node.
os This property is required. str
The operating system of the node.
private_ip This property is required. str
The private IP of the node.
public_ip This property is required. str
The elastic IP parameters of the node.
root_volumes This property is required. Sequence[GetCceNodesNodeRootVolume]
The system disk related configuration. The volume object structure is documented below.
server_id This property is required. str
The node's virtual machine ID in ECS.
status This property is required. str
Specifies the status of the node.
subnet_id This property is required. str
The ID of the subnet to which the NIC belongs.
tags This property is required. Mapping[str, str]
The tags of a VM node, key/value pair format.
availabilityZone This property is required. String
The available partitions where the node is located.
billingMode This property is required. Number
The node's billing mode: The value is 0 (on demand).
dataVolumes This property is required. List<Property Map>
The data related configuration. The volume object structure is documented below.
ecsGroupId This property is required. String
The ID of ECS group to which the node belongs.
flavorId This property is required. String
The flavor ID to be used.
id This property is required. String
The ID of the node.
keyPair This property is required. String
The key pair name when logging in to select the key pair mode.
name This property is required. String
Specifies the name of the node.
os This property is required. String
The operating system of the node.
privateIp This property is required. String
The private IP of the node.
publicIp This property is required. String
The elastic IP parameters of the node.
rootVolumes This property is required. List<Property Map>
The system disk related configuration. The volume object structure is documented below.
serverId This property is required. String
The node's virtual machine ID in ECS.
status This property is required. String
Specifies the status of the node.
subnetId This property is required. String
The ID of the subnet to which the NIC belongs.
tags This property is required. Map<String>
The tags of a VM node, key/value pair format.

GetCceNodesNodeDataVolume

ExtendParams This property is required. Dictionary<string, string>
Disk expansion parameters.
Size This property is required. double
Disk size in GB.
Volumetype This property is required. string
Disk type.
ExtendParams This property is required. map[string]string
Disk expansion parameters.
Size This property is required. float64
Disk size in GB.
Volumetype This property is required. string
Disk type.
extendParams This property is required. Map<String,String>
Disk expansion parameters.
size This property is required. Double
Disk size in GB.
volumetype This property is required. String
Disk type.
extendParams This property is required. {[key: string]: string}
Disk expansion parameters.
size This property is required. number
Disk size in GB.
volumetype This property is required. string
Disk type.
extend_params This property is required. Mapping[str, str]
Disk expansion parameters.
size This property is required. float
Disk size in GB.
volumetype This property is required. str
Disk type.
extendParams This property is required. Map<String>
Disk expansion parameters.
size This property is required. Number
Disk size in GB.
volumetype This property is required. String
Disk type.

GetCceNodesNodeRootVolume

ExtendParams This property is required. Dictionary<string, string>
Disk expansion parameters.
Size This property is required. double
Disk size in GB.
Volumetype This property is required. string
Disk type.
ExtendParams This property is required. map[string]string
Disk expansion parameters.
Size This property is required. float64
Disk size in GB.
Volumetype This property is required. string
Disk type.
extendParams This property is required. Map<String,String>
Disk expansion parameters.
size This property is required. Double
Disk size in GB.
volumetype This property is required. String
Disk type.
extendParams This property is required. {[key: string]: string}
Disk expansion parameters.
size This property is required. number
Disk size in GB.
volumetype This property is required. string
Disk type.
extend_params This property is required. Mapping[str, str]
Disk expansion parameters.
size This property is required. float
Disk size in GB.
volumetype This property is required. str
Disk type.
extendParams This property is required. Map<String>
Disk expansion parameters.
size This property is required. Number
Disk size in GB.
volumetype This property is required. String
Disk type.

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