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

flexibleengine.getCceNodeIdsV3

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    flexibleengine.getCceNodeIdsV3 provides a list of node ids for a CCE cluster. This data source can be useful for getting back a list of node ids for a CCE 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 nodeIds = flexibleengine.getCceNodeIdsV3({
        clusterId: clusterId,
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    cluster_id = config.require_object("clusterId")
    node_ids = flexibleengine.get_cce_node_ids_v3(cluster_id=cluster_id)
    
    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")
    		_, err := flexibleengine.GetCceNodeIdsV3(ctx, &flexibleengine.GetCceNodeIdsV3Args{
    			ClusterId: clusterId,
    		}, 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 nodeIds = Flexibleengine.GetCceNodeIdsV3.Invoke(new()
        {
            ClusterId = clusterId,
        });
    
    });
    
    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.GetCceNodeIdsV3Args;
    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 nodeIds = FlexibleengineFunctions.getCceNodeIdsV3(GetCceNodeIdsV3Args.builder()
                .clusterId(clusterId)
                .build());
    
        }
    }
    
    configuration:
      clusterId:
        type: dynamic
    variables:
      nodeIds:
        fn::invoke:
          function: flexibleengine:getCceNodeIdsV3
          arguments:
            clusterId: ${clusterId}
    

    Using getCceNodeIdsV3

    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 getCceNodeIdsV3(args: GetCceNodeIdsV3Args, opts?: InvokeOptions): Promise<GetCceNodeIdsV3Result>
    function getCceNodeIdsV3Output(args: GetCceNodeIdsV3OutputArgs, opts?: InvokeOptions): Output<GetCceNodeIdsV3Result>
    def get_cce_node_ids_v3(cluster_id: Optional[str] = None,
                            id: Optional[str] = None,
                            region: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetCceNodeIdsV3Result
    def get_cce_node_ids_v3_output(cluster_id: Optional[pulumi.Input[str]] = None,
                            id: Optional[pulumi.Input[str]] = None,
                            region: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetCceNodeIdsV3Result]
    func GetCceNodeIdsV3(ctx *Context, args *GetCceNodeIdsV3Args, opts ...InvokeOption) (*GetCceNodeIdsV3Result, error)
    func GetCceNodeIdsV3Output(ctx *Context, args *GetCceNodeIdsV3OutputArgs, opts ...InvokeOption) GetCceNodeIdsV3ResultOutput

    > Note: This function is named GetCceNodeIdsV3 in the Go SDK.

    public static class GetCceNodeIdsV3 
    {
        public static Task<GetCceNodeIdsV3Result> InvokeAsync(GetCceNodeIdsV3Args args, InvokeOptions? opts = null)
        public static Output<GetCceNodeIdsV3Result> Invoke(GetCceNodeIdsV3InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCceNodeIdsV3Result> getCceNodeIdsV3(GetCceNodeIdsV3Args args, InvokeOptions options)
    public static Output<GetCceNodeIdsV3Result> getCceNodeIdsV3(GetCceNodeIdsV3Args args, InvokeOptions options)
    
    fn::invoke:
      function: flexibleengine:index/getCceNodeIdsV3:getCceNodeIdsV3
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ClusterId string
    Specifies the CCE cluster ID used as the query filter.
    Id string
    Region string
    The region in which to query the data source. If omitted, the provider-level region will be used.
    ClusterId string
    Specifies the CCE cluster ID used as the query filter.
    Id string
    Region string
    The region in which to query the data source. If omitted, the provider-level region will be used.
    clusterId String
    Specifies the CCE cluster ID used as the query filter.
    id String
    region String
    The region in which to query the data source. If omitted, the provider-level region will be used.
    clusterId string
    Specifies the CCE cluster ID used as the query filter.
    id string
    region string
    The region in which to query the data source. If omitted, the provider-level region will be used.
    cluster_id str
    Specifies the CCE cluster ID used as the query filter.
    id str
    region str
    The region in which to query the data source. If omitted, the provider-level region will be used.
    clusterId String
    Specifies the CCE cluster ID used as the query filter.
    id String
    region String
    The region in which to query the data source. If omitted, the provider-level region will be used.

    getCceNodeIdsV3 Result

    The following output properties are available:

    ClusterId string
    Id string
    Ids List<string>
    A list of all the node ids found. This data source will fail if none are found.
    Region string
    ClusterId string
    Id string
    Ids []string
    A list of all the node ids found. This data source will fail if none are found.
    Region string
    clusterId String
    id String
    ids List<String>
    A list of all the node ids found. This data source will fail if none are found.
    region String
    clusterId string
    id string
    ids string[]
    A list of all the node ids found. This data source will fail if none are found.
    region string
    cluster_id str
    id str
    ids Sequence[str]
    A list of all the node ids found. This data source will fail if none are found.
    region str
    clusterId String
    id String
    ids List<String>
    A list of all the node ids found. This data source will fail if none are found.
    region String

    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