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 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.
- 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 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.
- 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 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.
- 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 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.
- 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 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.
- cluster
Id 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.
- 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 This property is required. string - The available partitions where the node is located.
- Billing
Mode This property is required. double - The node's billing mode: The value is 0 (on demand).
- Data
Volumes This property is required. List<GetCce Nodes Node Data Volume> - The data related configuration. The volume object structure is documented below.
- Ecs
Group Id This property is required. string - The ID of ECS group to which the node belongs.
- Flavor
Id This property is required. string - The flavor ID to be used.
- Id
This property is required. string - The ID of the node.
- Key
Pair 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.
- Private
Ip This property is required. string - The private IP of the node.
- Public
Ip This property is required. string - The elastic IP parameters of the node.
- Root
Volumes This property is required. List<GetCce Nodes Node Root Volume> - The system disk related configuration. The volume object structure is documented below.
- Server
Id 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.
- Subnet
Id This property is required. string - The ID of the subnet to which the NIC belongs.
This property is required. Dictionary<string, string>- The tags of a VM node, key/value pair format.
- Availability
Zone This property is required. string - The available partitions where the node is located.
- Billing
Mode This property is required. float64 - The node's billing mode: The value is 0 (on demand).
- Data
Volumes This property is required. []GetCce Nodes Node Data Volume - The data related configuration. The volume object structure is documented below.
- Ecs
Group Id This property is required. string - The ID of ECS group to which the node belongs.
- Flavor
Id This property is required. string - The flavor ID to be used.
- Id
This property is required. string - The ID of the node.
- Key
Pair 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.
- Private
Ip This property is required. string - The private IP of the node.
- Public
Ip This property is required. string - The elastic IP parameters of the node.
- Root
Volumes This property is required. []GetCce Nodes Node Root Volume - The system disk related configuration. The volume object structure is documented below.
- Server
Id 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.
- Subnet
Id This property is required. string - The ID of the subnet to which the NIC belongs.
This property is required. map[string]string- The tags of a VM node, key/value pair format.
- availability
Zone This property is required. String - The available partitions where the node is located.
- billing
Mode This property is required. Double - The node's billing mode: The value is 0 (on demand).
- data
Volumes This property is required. List<GetCce Nodes Node Data Volume> - The data related configuration. The volume object structure is documented below.
- ecs
Group Id This property is required. String - The ID of ECS group to which the node belongs.
- flavor
Id This property is required. String - The flavor ID to be used.
- id
This property is required. String - The ID of the node.
- key
Pair 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.
- private
Ip This property is required. String - The private IP of the node.
- public
Ip This property is required. String - The elastic IP parameters of the node.
- root
Volumes This property is required. List<GetCce Nodes Node Root Volume> - The system disk related configuration. The volume object structure is documented below.
- server
Id 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.
- subnet
Id This property is required. String - The ID of the subnet to which the NIC belongs.
This property is required. Map<String,String>- The tags of a VM node, key/value pair format.
- availability
Zone This property is required. string - The available partitions where the node is located.
- billing
Mode This property is required. number - The node's billing mode: The value is 0 (on demand).
- data
Volumes This property is required. GetCce Nodes Node Data Volume[] - The data related configuration. The volume object structure is documented below.
- ecs
Group Id This property is required. string - The ID of ECS group to which the node belongs.
- flavor
Id This property is required. string - The flavor ID to be used.
- id
This property is required. string - The ID of the node.
- key
Pair 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.
- private
Ip This property is required. string - The private IP of the node.
- public
Ip This property is required. string - The elastic IP parameters of the node.
- root
Volumes This property is required. GetCce Nodes Node Root Volume[] - The system disk related configuration. The volume object structure is documented below.
- server
Id 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.
- subnet
Id This property is required. string - The ID of the subnet to which the NIC belongs.
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[GetCce Nodes Node Data Volume] - 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[GetCce Nodes Node Root Volume] - 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.
This property is required. Mapping[str, str]- The tags of a VM node, key/value pair format.
- availability
Zone This property is required. String - The available partitions where the node is located.
- billing
Mode This property is required. Number - The node's billing mode: The value is 0 (on demand).
- data
Volumes This property is required. List<Property Map> - The data related configuration. The volume object structure is documented below.
- ecs
Group Id This property is required. String - The ID of ECS group to which the node belongs.
- flavor
Id This property is required. String - The flavor ID to be used.
- id
This property is required. String - The ID of the node.
- key
Pair 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.
- private
Ip This property is required. String - The private IP of the node.
- public
Ip This property is required. String - The elastic IP parameters of the node.
- root
Volumes This property is required. List<Property Map> - The system disk related configuration. The volume object structure is documented below.
- server
Id 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.
- subnet
Id This property is required. String - The ID of the subnet to which the NIC belongs.
This property is required. Map<String>- The tags of a VM node, key/value pair format.
GetCceNodesNodeDataVolume
- Extend
Params 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.
- Extend
Params 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.
- extend
Params 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.
- extend
Params 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.
- extend
Params 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
- Extend
Params 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.
- Extend
Params 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.
- extend
Params 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.
- extend
Params 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.
- extend
Params 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