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 logo
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,
    });
    
    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)
    
    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
    	})
    }
    
    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,
        });
    
    });
    
    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());
    
        }
    }
    
    configuration:
      clusterId:
        type: dynamic
      nodeName:
        type: dynamic
    variables:
      node:
        fn::invoke:
          function: flexibleengine:getCceNodes
          arguments:
            clusterId: ${clusterId}
            name: ${nodeName}
    

    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>
    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]
    func GetCceNodes(ctx *Context, args *GetCceNodesArgs, opts ...InvokeOption) (*GetCceNodesResult, error)
    func GetCceNodesOutput(ctx *Context, args *GetCceNodesOutputArgs, opts ...InvokeOption) GetCceNodesResultOutput

    > 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)
    }
    public static CompletableFuture<GetCceNodesResult> getCceNodes(GetCceNodesArgs args, InvokeOptions options)
    public static Output<GetCceNodesResult> getCceNodes(GetCceNodesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: flexibleengine:index/getCceNodes:getCceNodes
      arguments:
        # arguments dictionary

    The following arguments are supported:

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

    GetCceNodesNodeDataVolume

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

    GetCceNodesNodeRootVolume

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

    Package Details

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