1. Packages
  2. Ionoscloud
  3. API Docs
  4. k8s
  5. getNodePoolNodes
IonosCloud v0.2.3 published on Tuesday, May 13, 2025 by ionos-cloud

ionoscloud.k8s.getNodePoolNodes

Explore with Pulumi AI

ionoscloud logo
IonosCloud v0.2.3 published on Tuesday, May 13, 2025 by ionos-cloud

    The k8s Node Pool Nodes data source can be used to search for and return a list of existing k8s Node Pool nodes.

    Example Usage

    By IDs

    import * as pulumi from "@pulumi/pulumi";
    import * as ionoscloud from "@pulumi/ionoscloud";
    
    const example = ionoscloud.k8s.getNodePoolNodes({
        nodePoolId: "k8s_nodepool_id",
        k8sClusterId: "k8s_cluster_id",
    });
    
    import pulumi
    import pulumi_ionoscloud as ionoscloud
    
    example = ionoscloud.k8s.get_node_pool_nodes(node_pool_id="k8s_nodepool_id",
        k8s_cluster_id="k8s_cluster_id")
    
    package main
    
    import (
    	"github.com/ionos-cloud/pulumi-ionoscloud/sdk/go/ionoscloud/k8s"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := k8s.GetNodePoolNodes(ctx, &k8s.GetNodePoolNodesArgs{
    			NodePoolId:   "k8s_nodepool_id",
    			K8sClusterId: "k8s_cluster_id",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ionoscloud = Pulumi.Ionoscloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Ionoscloud.K8s.GetNodePoolNodes.Invoke(new()
        {
            NodePoolId = "k8s_nodepool_id",
            K8sClusterId = "k8s_cluster_id",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ionoscloud.k8s.K8sFunctions;
    import com.pulumi.ionoscloud.k8s.inputs.GetNodePoolNodesArgs;
    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 example = K8sFunctions.getNodePoolNodes(GetNodePoolNodesArgs.builder()
                .nodePoolId("k8s_nodepool_id")
                .k8sClusterId("k8s_cluster_id")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: ionoscloud:k8s:getNodePoolNodes
          arguments:
            nodePoolId: k8s_nodepool_id
            k8sClusterId: k8s_cluster_id
    

    Using getNodePoolNodes

    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 getNodePoolNodes(args: GetNodePoolNodesArgs, opts?: InvokeOptions): Promise<GetNodePoolNodesResult>
    function getNodePoolNodesOutput(args: GetNodePoolNodesOutputArgs, opts?: InvokeOptions): Output<GetNodePoolNodesResult>
    def get_node_pool_nodes(k8s_cluster_id: Optional[str] = None,
                            node_pool_id: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetNodePoolNodesResult
    def get_node_pool_nodes_output(k8s_cluster_id: Optional[pulumi.Input[str]] = None,
                            node_pool_id: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetNodePoolNodesResult]
    func GetNodePoolNodes(ctx *Context, args *GetNodePoolNodesArgs, opts ...InvokeOption) (*GetNodePoolNodesResult, error)
    func GetNodePoolNodesOutput(ctx *Context, args *GetNodePoolNodesOutputArgs, opts ...InvokeOption) GetNodePoolNodesResultOutput

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

    public static class GetNodePoolNodes 
    {
        public static Task<GetNodePoolNodesResult> InvokeAsync(GetNodePoolNodesArgs args, InvokeOptions? opts = null)
        public static Output<GetNodePoolNodesResult> Invoke(GetNodePoolNodesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNodePoolNodesResult> getNodePoolNodes(GetNodePoolNodesArgs args, InvokeOptions options)
    public static Output<GetNodePoolNodesResult> getNodePoolNodes(GetNodePoolNodesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ionoscloud:k8s/getNodePoolNodes:getNodePoolNodes
      arguments:
        # arguments dictionary

    The following arguments are supported:

    K8sClusterId string
    K8s Cluster' UUID
    NodePoolId string
    K8sClusterId string
    K8s Cluster' UUID
    NodePoolId string
    k8sClusterId String
    K8s Cluster' UUID
    nodePoolId String
    k8sClusterId string
    K8s Cluster' UUID
    nodePoolId string
    k8s_cluster_id str
    K8s Cluster' UUID
    node_pool_id str
    k8sClusterId String
    K8s Cluster' UUID
    nodePoolId String

    getNodePoolNodes Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    K8sClusterId string
    NodePoolId string
    Nodes List<Ionoscloud.GetNodePoolNodesNode>
    a list of the nodes that are in the nodepool
    Id string
    The provider-assigned unique ID for this managed resource.
    K8sClusterId string
    NodePoolId string
    Nodes []GetNodePoolNodesNode
    a list of the nodes that are in the nodepool
    id String
    The provider-assigned unique ID for this managed resource.
    k8sClusterId String
    nodePoolId String
    nodes List<GetNodePoolNodesNode>
    a list of the nodes that are in the nodepool
    id string
    The provider-assigned unique ID for this managed resource.
    k8sClusterId string
    nodePoolId string
    nodes GetNodePoolNodesNode[]
    a list of the nodes that are in the nodepool
    id str
    The provider-assigned unique ID for this managed resource.
    k8s_cluster_id str
    node_pool_id str
    nodes Sequence[GetNodePoolNodesNode]
    a list of the nodes that are in the nodepool
    id String
    The provider-assigned unique ID for this managed resource.
    k8sClusterId String
    nodePoolId String
    nodes List<Property Map>
    a list of the nodes that are in the nodepool

    Supporting Types

    GetNodePoolNodesNode

    Id string

    ID of the node pool you want to search for.

    k8s_cluster_id and node_pool_id must be provided.

    K8sVersion string
    The kubernetes version
    Name string
    Name of an existing node pool that you want to search for.
    PrivateIp string
    private ip of the node
    PublicIp string
    public ip of the node
    Id string

    ID of the node pool you want to search for.

    k8s_cluster_id and node_pool_id must be provided.

    K8sVersion string
    The kubernetes version
    Name string
    Name of an existing node pool that you want to search for.
    PrivateIp string
    private ip of the node
    PublicIp string
    public ip of the node
    id String

    ID of the node pool you want to search for.

    k8s_cluster_id and node_pool_id must be provided.

    k8sVersion String
    The kubernetes version
    name String
    Name of an existing node pool that you want to search for.
    privateIp String
    private ip of the node
    publicIp String
    public ip of the node
    id string

    ID of the node pool you want to search for.

    k8s_cluster_id and node_pool_id must be provided.

    k8sVersion string
    The kubernetes version
    name string
    Name of an existing node pool that you want to search for.
    privateIp string
    private ip of the node
    publicIp string
    public ip of the node
    id str

    ID of the node pool you want to search for.

    k8s_cluster_id and node_pool_id must be provided.

    k8s_version str
    The kubernetes version
    name str
    Name of an existing node pool that you want to search for.
    private_ip str
    private ip of the node
    public_ip str
    public ip of the node
    id String

    ID of the node pool you want to search for.

    k8s_cluster_id and node_pool_id must be provided.

    k8sVersion String
    The kubernetes version
    name String
    Name of an existing node pool that you want to search for.
    privateIp String
    private ip of the node
    publicIp String
    public ip of the node

    Package Details

    Repository
    ionoscloud ionos-cloud/pulumi-ionoscloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ionoscloud Terraform Provider.
    ionoscloud logo
    IonosCloud v0.2.3 published on Tuesday, May 13, 2025 by ionos-cloud