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,
});
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:
- Cluster
Id string - Specifies the ID of CCE cluster.
- Id string
- The ID of the node.
- Name string
- Specifies the name of the node.
- Node
Id 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 string - Specifies the ID of CCE cluster.
- Id string
- The ID of the node.
- Name string
- Specifies the name of the node.
- Node
Id 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 String - Specifies the ID of CCE cluster.
- id String
- The ID of the node.
- name String
- Specifies the name of the node.
- node
Id 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 string - Specifies the ID of CCE cluster.
- id string
- The ID of the node.
- name string
- Specifies the name of the node.
- node
Id 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.
- cluster
Id String - Specifies the ID of CCE cluster.
- id String
- The ID of the node.
- name String
- Specifies the name of the node.
- node
Id 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:
- Cluster
Id string - Id string
- The ID of the node.
- Ids List<string>
- Indicates a list of IDs of all CCE nodes found.
- Nodes
List<Get
Cce Nodes Node> - Indicates a list of CCE nodes found. The nodes object structure is documented below.
- Region string
- Name string
- The name of the node.
- Node
Id string - Status string
- The status of the node.
- Cluster
Id string - Id string
- The ID of the node.
- Ids []string
- Indicates a list of IDs of all CCE nodes found.
- Nodes
[]Get
Cce Nodes Node - Indicates a list of CCE nodes found. The nodes object structure is documented below.
- Region string
- Name string
- The name of the node.
- Node
Id string - Status string
- The status of the node.
- cluster
Id String - id String
- The ID of the node.
- ids List<String>
- Indicates a list of IDs of all CCE nodes found.
- nodes
List<Get
Cce Nodes Node> - Indicates a list of CCE nodes found. The nodes object structure is documented below.
- region String
- name String
- The name of the node.
- node
Id String - status String
- The status of the node.
- cluster
Id string - id string
- The ID of the node.
- ids string[]
- Indicates a list of IDs of all CCE nodes found.
- nodes
Get
Cce Nodes Node[] - Indicates a list of CCE nodes found. The nodes object structure is documented below.
- region string
- name string
- The name of the node.
- node
Id 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[Get
Cce Nodes Node] - 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.
- cluster
Id 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.
- node
Id String - status String
- The status of the node.
Supporting Types
GetCceNodesNode
- Availability
Zone string - The available partitions where the node is located.
- Billing
Mode double - The node's billing mode: The value is 0 (on demand).
- Data
Volumes List<GetCce Nodes Node Data Volume> - The data related configuration. The volume object structure is documented below.
- Ecs
Group stringId - The ID of ECS group to which the node belongs.
- Flavor
Id string - The flavor ID to be used.
- Id string
- The ID of the node.
- Key
Pair 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.
- Private
Ip string - The private IP of the node.
- Public
Ip string - The elastic IP parameters of the node.
- Root
Volumes List<GetCce Nodes Node Root Volume> - The system disk related configuration. The volume object structure is documented below.
- Server
Id string - The node's virtual machine ID in ECS.
- Status string
- Specifies the status of the node.
- Subnet
Id string - The ID of the subnet to which the NIC belongs.
- Dictionary<string, string>
- The tags of a VM node, key/value pair format.
- Availability
Zone string - The available partitions where the node is located.
- Billing
Mode float64 - The node's billing mode: The value is 0 (on demand).
- Data
Volumes []GetCce Nodes Node Data Volume - The data related configuration. The volume object structure is documented below.
- Ecs
Group stringId - The ID of ECS group to which the node belongs.
- Flavor
Id string - The flavor ID to be used.
- Id string
- The ID of the node.
- Key
Pair 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.
- Private
Ip string - The private IP of the node.
- Public
Ip string - The elastic IP parameters of the node.
- Root
Volumes []GetCce Nodes Node Root Volume - The system disk related configuration. The volume object structure is documented below.
- Server
Id string - The node's virtual machine ID in ECS.
- Status string
- Specifies the status of the node.
- Subnet
Id string - The ID of the subnet to which the NIC belongs.
- map[string]string
- The tags of a VM node, key/value pair format.
- availability
Zone String - The available partitions where the node is located.
- billing
Mode Double - The node's billing mode: The value is 0 (on demand).
- data
Volumes List<GetCce Nodes Node Data Volume> - The data related configuration. The volume object structure is documented below.
- ecs
Group StringId - The ID of ECS group to which the node belongs.
- flavor
Id String - The flavor ID to be used.
- id String
- The ID of the node.
- key
Pair 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.
- private
Ip String - The private IP of the node.
- public
Ip String - The elastic IP parameters of the node.
- root
Volumes List<GetCce Nodes Node Root Volume> - The system disk related configuration. The volume object structure is documented below.
- server
Id String - The node's virtual machine ID in ECS.
- status String
- Specifies the status of the node.
- subnet
Id String - The ID of the subnet to which the NIC belongs.
- Map<String,String>
- The tags of a VM node, key/value pair format.
- availability
Zone string - The available partitions where the node is located.
- billing
Mode number - The node's billing mode: The value is 0 (on demand).
- data
Volumes GetCce Nodes Node Data Volume[] - The data related configuration. The volume object structure is documented below.
- ecs
Group stringId - The ID of ECS group to which the node belongs.
- flavor
Id string - The flavor ID to be used.
- id string
- The ID of the node.
- key
Pair 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.
- private
Ip string - The private IP of the node.
- public
Ip string - The elastic IP parameters of the node.
- root
Volumes GetCce Nodes Node Root Volume[] - The system disk related configuration. The volume object structure is documented below.
- server
Id string - The node's virtual machine ID in ECS.
- status string
- Specifies the status of the node.
- subnet
Id string - The ID of the subnet to which the NIC belongs.
- {[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[GetCce Nodes Node Data Volume] - The data related configuration. The volume object structure is documented below.
- ecs_
group_ strid - 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[GetCce Nodes Node Root Volume] - 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.
- Mapping[str, str]
- The tags of a VM node, key/value pair format.
- availability
Zone String - The available partitions where the node is located.
- billing
Mode Number - The node's billing mode: The value is 0 (on demand).
- data
Volumes List<Property Map> - The data related configuration. The volume object structure is documented below.
- ecs
Group StringId - The ID of ECS group to which the node belongs.
- flavor
Id String - The flavor ID to be used.
- id String
- The ID of the node.
- key
Pair 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.
- private
Ip String - The private IP of the node.
- public
Ip String - The elastic IP parameters of the node.
- root
Volumes List<Property Map> - The system disk related configuration. The volume object structure is documented below.
- server
Id String - The node's virtual machine ID in ECS.
- status String
- Specifies the status of the node.
- subnet
Id String - The ID of the subnet to which the NIC belongs.
- Map<String>
- The tags of a VM node, key/value pair format.
GetCceNodesNodeDataVolume
- Extend
Params Dictionary<string, string> - Disk expansion parameters.
- Size double
- Disk size in GB.
- Volumetype string
- Disk type.
- Extend
Params map[string]string - Disk expansion parameters.
- Size float64
- Disk size in GB.
- Volumetype string
- Disk type.
- extend
Params Map<String,String> - Disk expansion parameters.
- size Double
- Disk size in GB.
- volumetype String
- Disk type.
- extend
Params {[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.
- extend
Params Map<String> - Disk expansion parameters.
- size Number
- Disk size in GB.
- volumetype String
- Disk type.
GetCceNodesNodeRootVolume
- Extend
Params Dictionary<string, string> - Disk expansion parameters.
- Size double
- Disk size in GB.
- Volumetype string
- Disk type.
- Extend
Params map[string]string - Disk expansion parameters.
- Size float64
- Disk size in GB.
- Volumetype string
- Disk type.
- extend
Params Map<String,String> - Disk expansion parameters.
- size Double
- Disk size in GB.
- volumetype String
- Disk type.
- extend
Params {[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.
- extend
Params 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 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud