1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. getCceNodeIdsV3
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.getCceNodeIdsV3

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for CCE nodes you can get at documentation portal

    Use this data source to get a list of node ids for a CCE cluster from OpenTelekomCloud. 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 opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const nodeIds = opentelekomcloud.getCceNodeIdsV3({
        clusterId: _var.cluster_id,
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    node_ids = opentelekomcloud.get_cce_node_ids_v3(cluster_id=var["cluster_id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opentelekomcloud.GetCceNodeIdsV3(ctx, &opentelekomcloud.GetCceNodeIdsV3Args{
    			ClusterId: _var.Cluster_id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var nodeIds = Opentelekomcloud.GetCceNodeIdsV3.Invoke(new()
        {
            ClusterId = @var.Cluster_id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
    import com.pulumi.opentelekomcloud.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 nodeIds = OpentelekomcloudFunctions.getCceNodeIdsV3(GetCceNodeIdsV3Args.builder()
                .clusterId(var_.cluster_id())
                .build());
    
        }
    }
    
    variables:
      nodeIds:
        fn::invoke:
          function: opentelekomcloud:getCceNodeIdsV3
          arguments:
            clusterId: ${var.cluster_id}
    

    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: opentelekomcloud: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
    ClusterId string
    Specifies the CCE cluster ID used as the query filter.
    Id string
    Region string
    clusterId String
    Specifies the CCE cluster ID used as the query filter.
    id String
    region String
    clusterId string
    Specifies the CCE cluster ID used as the query filter.
    id string
    region string
    cluster_id str
    Specifies the CCE cluster ID used as the query filter.
    id str
    region str
    clusterId String
    Specifies the CCE cluster ID used as the query filter.
    id String
    region String

    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
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud