ionoscloud.k8s.getNodePoolNodes
Explore with Pulumi AI
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:
- K8s
Cluster stringId - K8s Cluster' UUID
- Node
Pool stringId
- K8s
Cluster stringId - K8s Cluster' UUID
- Node
Pool stringId
- k8s
Cluster StringId - K8s Cluster' UUID
- node
Pool StringId
- k8s
Cluster stringId - K8s Cluster' UUID
- node
Pool stringId
- k8s_
cluster_ strid - K8s Cluster' UUID
- node_
pool_ strid
- k8s
Cluster StringId - K8s Cluster' UUID
- node
Pool StringId
getNodePoolNodes Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- K8s
Cluster stringId - Node
Pool stringId - Nodes
List<Ionoscloud.
Get Node Pool Nodes Node> - a list of the nodes that are in the nodepool
- Id string
- The provider-assigned unique ID for this managed resource.
- K8s
Cluster stringId - Node
Pool stringId - Nodes
[]Get
Node Pool Nodes Node - a list of the nodes that are in the nodepool
- id String
- The provider-assigned unique ID for this managed resource.
- k8s
Cluster StringId - node
Pool StringId - nodes
List<Get
Node Pool Nodes Node> - a list of the nodes that are in the nodepool
- id string
- The provider-assigned unique ID for this managed resource.
- k8s
Cluster stringId - node
Pool stringId - nodes
Get
Node Pool Nodes Node[] - a list of the nodes that are in the nodepool
- id str
- The provider-assigned unique ID for this managed resource.
- k8s_
cluster_ strid - node_
pool_ strid - nodes
Sequence[Get
Node Pool Nodes Node] - a list of the nodes that are in the nodepool
- id String
- The provider-assigned unique ID for this managed resource.
- k8s
Cluster StringId - node
Pool StringId - 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
andnode_pool_id
must be provided.- K8s
Version string - The kubernetes version
- Name string
- Name of an existing node pool that you want to search for.
- Private
Ip string - private ip of the node
- Public
Ip string - public ip of the node
- Id string
ID of the node pool you want to search for.
k8s_cluster_id
andnode_pool_id
must be provided.- K8s
Version string - The kubernetes version
- Name string
- Name of an existing node pool that you want to search for.
- Private
Ip string - private ip of the node
- Public
Ip string - public ip of the node
- id String
ID of the node pool you want to search for.
k8s_cluster_id
andnode_pool_id
must be provided.- k8s
Version String - The kubernetes version
- name String
- Name of an existing node pool that you want to search for.
- private
Ip String - private ip of the node
- public
Ip String - public ip of the node
- id string
ID of the node pool you want to search for.
k8s_cluster_id
andnode_pool_id
must be provided.- k8s
Version string - The kubernetes version
- name string
- Name of an existing node pool that you want to search for.
- private
Ip string - private ip of the node
- public
Ip string - public ip of the node
- id str
ID of the node pool you want to search for.
k8s_cluster_id
andnode_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
andnode_pool_id
must be provided.- k8s
Version String - The kubernetes version
- name String
- Name of an existing node pool that you want to search for.
- private
Ip String - private ip of the node
- public
Ip 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.