1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. getCceNodeIdsV3
opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud

opentelekomcloud.getCceNodeIdsV3

Explore with Pulumi AI

opentelekomcloud 1.36.35 published on Monday, Apr 14, 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,
});
Copy
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud

node_ids = opentelekomcloud.get_cce_node_ids_v3(cluster_id=var["cluster_id"])
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
variables:
  nodeIds:
    fn::invoke:
      function: opentelekomcloud:getCceNodeIdsV3
      arguments:
        clusterId: ${var.cluster_id}
Copy

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>
Copy
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]
Copy
func GetCceNodeIdsV3(ctx *Context, args *GetCceNodeIdsV3Args, opts ...InvokeOption) (*GetCceNodeIdsV3Result, error)
func GetCceNodeIdsV3Output(ctx *Context, args *GetCceNodeIdsV3OutputArgs, opts ...InvokeOption) GetCceNodeIdsV3ResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetCceNodeIdsV3Result> getCceNodeIdsV3(GetCceNodeIdsV3Args args, InvokeOptions options)
public static Output<GetCceNodeIdsV3Result> getCceNodeIdsV3(GetCceNodeIdsV3Args args, InvokeOptions options)
Copy
fn::invoke:
  function: opentelekomcloud:index/getCceNodeIdsV3:getCceNodeIdsV3
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ClusterId This property is required. string
Specifies the CCE cluster ID used as the query filter.
Id string
Region string
ClusterId This property is required. string
Specifies the CCE cluster ID used as the query filter.
Id string
Region string
clusterId This property is required. String
Specifies the CCE cluster ID used as the query filter.
id String
region String
clusterId This property is required. string
Specifies the CCE cluster ID used as the query filter.
id string
region string
cluster_id This property is required. str
Specifies the CCE cluster ID used as the query filter.
id str
region str
clusterId This property is required. 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 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud