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

flexibleengine.getCceNodeV3

Explore with Pulumi AI

flexibleengine logo
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:

    ClusterId string
    The id of container cluster.
    Id string
    Name string
    Name of the node.
    NodeId string
    The id of the node.
    Region string
    The region in which to query the data source. If omitted, the provider-level region will be used.
    Status string
    The state of the node.
    ClusterId string
    The id of container cluster.
    Id string
    Name string
    Name of the node.
    NodeId string
    The id of the node.
    Region string
    The region in which to query the data source. If omitted, the provider-level region will be used.
    Status string
    The state of the node.
    clusterId String
    The id of container cluster.
    id String
    name String
    Name of the node.
    nodeId String
    The id of the node.
    region String
    The region in which to query the data source. If omitted, the provider-level region will be used.
    status String
    The state of the node.
    clusterId string
    The id of container cluster.
    id string
    name string
    Name of the node.
    nodeId string
    The id of the node.
    region string
    The region in which to query the data source. If omitted, the provider-level region will be used.
    status string
    The state of the node.
    cluster_id str
    The id of container cluster.
    id str
    name str
    Name of the node.
    node_id str
    The id of the node.
    region str
    The region in which to query the data source. If omitted, the provider-level region will be used.
    status str
    The state of the node.
    clusterId String
    The id of container cluster.
    id String
    name String
    Name of the node.
    nodeId String
    The id of the node.
    region String
    The region in which to query the data source. If omitted, the provider-level region will be used.
    status String
    The state of the node.

    getCceNodeV3 Result

    The following output properties are available:

    AvailabilityZone string
    Available partitions where the node is located.
    BandwidthSize double
    Bandwidth (Mbit/s), in the range of [1, 2000].
    BillingMode double
    Node's billing mode: The value is 0 (on demand).
    ChargeMode string
    Bandwidth billing type.
    ClusterId string
    DataVolumes List<GetCceNodeV3DataVolume>
    Represents the data disk to be created.
    DiskSize double
    Disk size in GB.
    EipIds List<string>
    List of existing elastic IP IDs.
    FlavorId string
    The flavor id to be used.
    Id string
    IpType string
    Elastic IP address type.
    KeyPair string
    Key pair name when logging in to select the key pair mode.
    PrivateIp string
    Private IP of the node
    PublicIp string
    Elastic IP parameters of the node.
    Region string
    ServerId string
    The node's virtual machine ID in ECS.
    ShareType string
    Bandwidth sharing type.
    VolumeType string
    Disk type.
    Name string
    NodeId string
    Status string
    AvailabilityZone string
    Available partitions where the node is located.
    BandwidthSize float64
    Bandwidth (Mbit/s), in the range of [1, 2000].
    BillingMode float64
    Node's billing mode: The value is 0 (on demand).
    ChargeMode string
    Bandwidth billing type.
    ClusterId string
    DataVolumes []GetCceNodeV3DataVolume
    Represents the data disk to be created.
    DiskSize float64
    Disk size in GB.
    EipIds []string
    List of existing elastic IP IDs.
    FlavorId string
    The flavor id to be used.
    Id string
    IpType string
    Elastic IP address type.
    KeyPair string
    Key pair name when logging in to select the key pair mode.
    PrivateIp string
    Private IP of the node
    PublicIp string
    Elastic IP parameters of the node.
    Region string
    ServerId string
    The node's virtual machine ID in ECS.
    ShareType string
    Bandwidth sharing type.
    VolumeType string
    Disk type.
    Name string
    NodeId string
    Status string
    availabilityZone String
    Available partitions where the node is located.
    bandwidthSize Double
    Bandwidth (Mbit/s), in the range of [1, 2000].
    billingMode Double
    Node's billing mode: The value is 0 (on demand).
    chargeMode String
    Bandwidth billing type.
    clusterId String
    dataVolumes List<GetCceNodeV3DataVolume>
    Represents the data disk to be created.
    diskSize Double
    Disk size in GB.
    eipIds List<String>
    List of existing elastic IP IDs.
    flavorId String
    The flavor id to be used.
    id String
    ipType String
    Elastic IP address type.
    keyPair String
    Key pair name when logging in to select the key pair mode.
    privateIp String
    Private IP of the node
    publicIp String
    Elastic IP parameters of the node.
    region String
    serverId String
    The node's virtual machine ID in ECS.
    shareType String
    Bandwidth sharing type.
    volumeType String
    Disk type.
    name String
    nodeId String
    status String
    availabilityZone string
    Available partitions where the node is located.
    bandwidthSize number
    Bandwidth (Mbit/s), in the range of [1, 2000].
    billingMode number
    Node's billing mode: The value is 0 (on demand).
    chargeMode string
    Bandwidth billing type.
    clusterId string
    dataVolumes GetCceNodeV3DataVolume[]
    Represents the data disk to be created.
    diskSize number
    Disk size in GB.
    eipIds string[]
    List of existing elastic IP IDs.
    flavorId string
    The flavor id to be used.
    id string
    ipType string
    Elastic IP address type.
    keyPair string
    Key pair name when logging in to select the key pair mode.
    privateIp string
    Private IP of the node
    publicIp string
    Elastic IP parameters of the node.
    region string
    serverId string
    The node's virtual machine ID in ECS.
    shareType string
    Bandwidth sharing type.
    volumeType string
    Disk type.
    name string
    nodeId 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[GetCceNodeV3DataVolume]
    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.
    share_type str
    Bandwidth sharing type.
    volume_type str
    Disk type.
    name str
    node_id str
    status str
    availabilityZone String
    Available partitions where the node is located.
    bandwidthSize Number
    Bandwidth (Mbit/s), in the range of [1, 2000].
    billingMode Number
    Node's billing mode: The value is 0 (on demand).
    chargeMode String
    Bandwidth billing type.
    clusterId String
    dataVolumes List<Property Map>
    Represents the data disk to be created.
    diskSize Number
    Disk size in GB.
    eipIds List<String>
    List of existing elastic IP IDs.
    flavorId String
    The flavor id to be used.
    id String
    ipType String
    Elastic IP address type.
    keyPair String
    Key pair name when logging in to select the key pair mode.
    privateIp String
    Private IP of the node
    publicIp String
    Elastic IP parameters of the node.
    region String
    serverId String
    The node's virtual machine ID in ECS.
    shareType String
    Bandwidth sharing type.
    volumeType String
    Disk type.
    name String
    nodeId String
    status String

    Supporting Types

    GetCceNodeV3DataVolume

    DiskSize double
    Disk size in GB.
    VolumeType string
    Disk type.
    DiskSize float64
    Disk size in GB.
    VolumeType string
    Disk type.
    diskSize Double
    Disk size in GB.
    volumeType String
    Disk type.
    diskSize number
    Disk size in GB.
    volumeType string
    Disk type.
    disk_size float
    Disk size in GB.
    volume_type str
    Disk type.
    diskSize 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