flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud
flexibleengine.getCceNodeV3
Explore with Pulumi AI
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud
To get the specified CCE node in a cluster.
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.getCceNodeV3({
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_node_v3(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.LookupCceNodeV3(ctx, &flexibleengine.LookupCceNodeV3Args{
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.GetCceNodeV3.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.GetCceNodeV3Args;
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.getCceNodeV3(GetCceNodeV3Args.builder()
.clusterId(clusterId)
.name(nodeName)
.build());
}
}
configuration:
clusterId:
type: dynamic
nodeName:
type: dynamic
variables:
node:
fn::invoke:
function: flexibleengine:getCceNodeV3
arguments:
clusterId: ${clusterId}
name: ${nodeName}
Using getCceNodeV3
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 getCceNodeV3(args: GetCceNodeV3Args, opts?: InvokeOptions): Promise<GetCceNodeV3Result>
function getCceNodeV3Output(args: GetCceNodeV3OutputArgs, opts?: InvokeOptions): Output<GetCceNodeV3Result>
def get_cce_node_v3(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) -> GetCceNodeV3Result
def get_cce_node_v3_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[GetCceNodeV3Result]
func LookupCceNodeV3(ctx *Context, args *LookupCceNodeV3Args, opts ...InvokeOption) (*LookupCceNodeV3Result, error)
func LookupCceNodeV3Output(ctx *Context, args *LookupCceNodeV3OutputArgs, opts ...InvokeOption) LookupCceNodeV3ResultOutput
> Note: This function is named LookupCceNodeV3
in the Go SDK.
public static class GetCceNodeV3
{
public static Task<GetCceNodeV3Result> InvokeAsync(GetCceNodeV3Args args, InvokeOptions? opts = null)
public static Output<GetCceNodeV3Result> Invoke(GetCceNodeV3InvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCceNodeV3Result> getCceNodeV3(GetCceNodeV3Args args, InvokeOptions options)
public static Output<GetCceNodeV3Result> getCceNodeV3(GetCceNodeV3Args args, InvokeOptions options)
fn::invoke:
function: flexibleengine:index/getCceNodeV3:getCceNodeV3
arguments:
# arguments dictionary
The following arguments are supported:
getCceNodeV3 Result
The following output properties are available:
- Availability
Zone string - Available partitions where the node is located.
- Bandwidth
Size double - Bandwidth (Mbit/s), in the range of [1, 2000].
- Billing
Mode double - Node's billing mode: The value is 0 (on demand).
- Charge
Mode string - Bandwidth billing type.
- Cluster
Id string - Data
Volumes List<GetCce Node V3Data Volume> - Represents the data disk to be created.
- Disk
Size double - Disk size in GB.
- Eip
Ids List<string> - List of existing elastic IP IDs.
- Flavor
Id string - The flavor id to be used.
- Id string
- Ip
Type string - Elastic IP address type.
- Key
Pair string - Key pair name when logging in to select the key pair mode.
- Private
Ip string - Private IP of the node
- Public
Ip string - Elastic IP parameters of the node.
- Region string
- Server
Id string - The node's virtual machine ID in ECS.
- string
- Bandwidth sharing type.
- Volume
Type string - Disk type.
- Name string
- Node
Id string - Status string
- Availability
Zone string - Available partitions where the node is located.
- Bandwidth
Size float64 - Bandwidth (Mbit/s), in the range of [1, 2000].
- Billing
Mode float64 - Node's billing mode: The value is 0 (on demand).
- Charge
Mode string - Bandwidth billing type.
- Cluster
Id string - Data
Volumes []GetCce Node V3Data Volume - Represents the data disk to be created.
- Disk
Size float64 - Disk size in GB.
- Eip
Ids []string - List of existing elastic IP IDs.
- Flavor
Id string - The flavor id to be used.
- Id string
- Ip
Type string - Elastic IP address type.
- Key
Pair string - Key pair name when logging in to select the key pair mode.
- Private
Ip string - Private IP of the node
- Public
Ip string - Elastic IP parameters of the node.
- Region string
- Server
Id string - The node's virtual machine ID in ECS.
- string
- Bandwidth sharing type.
- Volume
Type string - Disk type.
- Name string
- Node
Id string - Status string
- availability
Zone String - Available partitions where the node is located.
- bandwidth
Size Double - Bandwidth (Mbit/s), in the range of [1, 2000].
- billing
Mode Double - Node's billing mode: The value is 0 (on demand).
- charge
Mode String - Bandwidth billing type.
- cluster
Id String - data
Volumes List<GetCce Node V3Data Volume> - Represents the data disk to be created.
- disk
Size Double - Disk size in GB.
- eip
Ids List<String> - List of existing elastic IP IDs.
- flavor
Id String - The flavor id to be used.
- id String
- ip
Type String - Elastic IP address type.
- key
Pair String - Key pair name when logging in to select the key pair mode.
- private
Ip String - Private IP of the node
- public
Ip String - Elastic IP parameters of the node.
- region String
- server
Id String - The node's virtual machine ID in ECS.
- String
- Bandwidth sharing type.
- volume
Type String - Disk type.
- name String
- node
Id String - status String
- availability
Zone string - Available partitions where the node is located.
- bandwidth
Size number - Bandwidth (Mbit/s), in the range of [1, 2000].
- billing
Mode number - Node's billing mode: The value is 0 (on demand).
- charge
Mode string - Bandwidth billing type.
- cluster
Id string - data
Volumes GetCce Node V3Data Volume[] - Represents the data disk to be created.
- disk
Size number - Disk size in GB.
- eip
Ids string[] - List of existing elastic IP IDs.
- flavor
Id string - The flavor id to be used.
- id string
- ip
Type string - Elastic IP address type.
- key
Pair string - Key pair name when logging in to select the key pair mode.
- private
Ip string - Private IP of the node
- public
Ip string - Elastic IP parameters of the node.
- region string
- server
Id string - The node's virtual machine ID in ECS.
- string
- Bandwidth sharing type.
- volume
Type string - Disk type.
- name string
- node
Id string - status string
- availability_
zone str - Available partitions where the node is located.
- bandwidth_
size float - Bandwidth (Mbit/s), in the range of [1, 2000].
- billing_
mode float - Node's billing mode: The value is 0 (on demand).
- charge_
mode str - Bandwidth billing type.
- cluster_
id str - data_
volumes Sequence[GetCce Node V3Data Volume] - Represents the data disk to be created.
- disk_
size float - Disk size in GB.
- eip_
ids Sequence[str] - List of existing elastic IP IDs.
- flavor_
id str - The flavor id to be used.
- id str
- ip_
type str - Elastic IP address type.
- key_
pair str - Key pair name when logging in to select the key pair mode.
- private_
ip str - Private IP of the node
- public_
ip str - Elastic IP parameters of the node.
- region str
- server_
id str - The node's virtual machine ID in ECS.
- str
- Bandwidth sharing type.
- volume_
type str - Disk type.
- name str
- node_
id str - status str
- availability
Zone String - Available partitions where the node is located.
- bandwidth
Size Number - Bandwidth (Mbit/s), in the range of [1, 2000].
- billing
Mode Number - Node's billing mode: The value is 0 (on demand).
- charge
Mode String - Bandwidth billing type.
- cluster
Id String - data
Volumes List<Property Map> - Represents the data disk to be created.
- disk
Size Number - Disk size in GB.
- eip
Ids List<String> - List of existing elastic IP IDs.
- flavor
Id String - The flavor id to be used.
- id String
- ip
Type String - Elastic IP address type.
- key
Pair String - Key pair name when logging in to select the key pair mode.
- private
Ip String - Private IP of the node
- public
Ip String - Elastic IP parameters of the node.
- region String
- server
Id String - The node's virtual machine ID in ECS.
- String
- Bandwidth sharing type.
- volume
Type String - Disk type.
- name String
- node
Id String - status String
Supporting Types
GetCceNodeV3DataVolume
- Disk
Size double - Disk size in GB.
- Volume
Type string - Disk type.
- Disk
Size float64 - Disk size in GB.
- Volume
Type string - Disk type.
- disk
Size Double - Disk size in GB.
- volume
Type String - Disk type.
- disk
Size number - Disk size in GB.
- volume
Type string - Disk type.
- disk_
size float - Disk size in GB.
- volume_
type str - Disk type.
- disk
Size Number - Disk size in GB.
- volume
Type 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