IonosCloud v0.2.2 published on Monday, May 12, 2025 by ionos-cloud
ionoscloud.dsaas.getNodePools
Explore with Pulumi AI
The Dataplatform Node Pools Data Source can be used to search for and return a list of existing Dataplatform Node Pools under a Dataplatform Cluster.
Example Usage
All Node Pools under a Cluster ID
import * as pulumi from "@pulumi/pulumi";
import * as ionoscloud from "@pulumi/ionoscloud";
const example = ionoscloud.dsaas.getNodePools({
clusterId: "cluster_id",
});
import pulumi
import pulumi_ionoscloud as ionoscloud
example = ionoscloud.dsaas.get_node_pools(cluster_id="cluster_id")
package main
import (
"github.com/ionos-cloud/pulumi-ionoscloud/sdk/go/ionoscloud/dsaas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dsaas.GetNodePools(ctx, &dsaas.GetNodePoolsArgs{
ClusterId: "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.Dsaas.GetNodePools.Invoke(new()
{
ClusterId = "cluster_id",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ionoscloud.dsaas.DsaasFunctions;
import com.pulumi.ionoscloud.dsaas.inputs.GetNodePoolsArgs;
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 = DsaasFunctions.getNodePools(GetNodePoolsArgs.builder()
.clusterId("cluster_id")
.build());
}
}
variables:
example:
fn::invoke:
function: ionoscloud:dsaas:getNodePools
arguments:
clusterId: cluster_id
By Name
import * as pulumi from "@pulumi/pulumi";
import * as ionoscloud from "@pulumi/ionoscloud";
const example = ionoscloud.dsaas.getNodePools({
clusterId: "cluster_id",
name: "Dataplatform_Node_Pool_Example",
});
import pulumi
import pulumi_ionoscloud as ionoscloud
example = ionoscloud.dsaas.get_node_pools(cluster_id="cluster_id",
name="Dataplatform_Node_Pool_Example")
package main
import (
"github.com/ionos-cloud/pulumi-ionoscloud/sdk/go/ionoscloud/dsaas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dsaas.GetNodePools(ctx, &dsaas.GetNodePoolsArgs{
ClusterId: "cluster_id",
Name: pulumi.StringRef("Dataplatform_Node_Pool_Example"),
}, 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.Dsaas.GetNodePools.Invoke(new()
{
ClusterId = "cluster_id",
Name = "Dataplatform_Node_Pool_Example",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ionoscloud.dsaas.DsaasFunctions;
import com.pulumi.ionoscloud.dsaas.inputs.GetNodePoolsArgs;
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 = DsaasFunctions.getNodePools(GetNodePoolsArgs.builder()
.clusterId("cluster_id")
.name("Dataplatform_Node_Pool_Example")
.build());
}
}
variables:
example:
fn::invoke:
function: ionoscloud:dsaas:getNodePools
arguments:
clusterId: cluster_id
name: Dataplatform_Node_Pool_Example
By Name with Partial Match
import * as pulumi from "@pulumi/pulumi";
import * as ionoscloud from "@pulumi/ionoscloud";
const example = ionoscloud.dsaas.getNodePools({
clusterId: "cluster_id",
name: "_Example",
partialMatch: true,
});
import pulumi
import pulumi_ionoscloud as ionoscloud
example = ionoscloud.dsaas.get_node_pools(cluster_id="cluster_id",
name="_Example",
partial_match=True)
package main
import (
"github.com/ionos-cloud/pulumi-ionoscloud/sdk/go/ionoscloud/dsaas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dsaas.GetNodePools(ctx, &dsaas.GetNodePoolsArgs{
ClusterId: "cluster_id",
Name: pulumi.StringRef("_Example"),
PartialMatch: pulumi.BoolRef(true),
}, 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.Dsaas.GetNodePools.Invoke(new()
{
ClusterId = "cluster_id",
Name = "_Example",
PartialMatch = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ionoscloud.dsaas.DsaasFunctions;
import com.pulumi.ionoscloud.dsaas.inputs.GetNodePoolsArgs;
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 = DsaasFunctions.getNodePools(GetNodePoolsArgs.builder()
.clusterId("cluster_id")
.name("_Example")
.partialMatch(true)
.build());
}
}
variables:
example:
fn::invoke:
function: ionoscloud:dsaas:getNodePools
arguments:
clusterId: cluster_id
name: _Example
partialMatch: true
Using getNodePools
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 getNodePools(args: GetNodePoolsArgs, opts?: InvokeOptions): Promise<GetNodePoolsResult>
function getNodePoolsOutput(args: GetNodePoolsOutputArgs, opts?: InvokeOptions): Output<GetNodePoolsResult>
def get_node_pools(cluster_id: Optional[str] = None,
name: Optional[str] = None,
partial_match: Optional[bool] = None,
opts: Optional[InvokeOptions] = None) -> GetNodePoolsResult
def get_node_pools_output(cluster_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
partial_match: Optional[pulumi.Input[bool]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNodePoolsResult]
func GetNodePools(ctx *Context, args *GetNodePoolsArgs, opts ...InvokeOption) (*GetNodePoolsResult, error)
func GetNodePoolsOutput(ctx *Context, args *GetNodePoolsOutputArgs, opts ...InvokeOption) GetNodePoolsResultOutput
> Note: This function is named GetNodePools
in the Go SDK.
public static class GetNodePools
{
public static Task<GetNodePoolsResult> InvokeAsync(GetNodePoolsArgs args, InvokeOptions? opts = null)
public static Output<GetNodePoolsResult> Invoke(GetNodePoolsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNodePoolsResult> getNodePools(GetNodePoolsArgs args, InvokeOptions options)
public static Output<GetNodePoolsResult> getNodePools(GetNodePoolsArgs args, InvokeOptions options)
fn::invoke:
function: ionoscloud:dsaas/getNodePools:getNodePools
arguments:
# arguments dictionary
The following arguments are supported:
- Cluster
Id string - ID of the cluster the searched node pool is part of.
- Name string
- Name of an existing cluster that you want to search for. Search by name is case-insensitive. The whole resource name is required if
partial_match
parameter is not set to true. - Partial
Match bool - Whether partial matching is allowed or not when using name argument. Default value is false.
- Cluster
Id string - ID of the cluster the searched node pool is part of.
- Name string
- Name of an existing cluster that you want to search for. Search by name is case-insensitive. The whole resource name is required if
partial_match
parameter is not set to true. - Partial
Match bool - Whether partial matching is allowed or not when using name argument. Default value is false.
- cluster
Id String - ID of the cluster the searched node pool is part of.
- name String
- Name of an existing cluster that you want to search for. Search by name is case-insensitive. The whole resource name is required if
partial_match
parameter is not set to true. - partial
Match Boolean - Whether partial matching is allowed or not when using name argument. Default value is false.
- cluster
Id string - ID of the cluster the searched node pool is part of.
- name string
- Name of an existing cluster that you want to search for. Search by name is case-insensitive. The whole resource name is required if
partial_match
parameter is not set to true. - partial
Match boolean - Whether partial matching is allowed or not when using name argument. Default value is false.
- cluster_
id str - ID of the cluster the searched node pool is part of.
- name str
- Name of an existing cluster that you want to search for. Search by name is case-insensitive. The whole resource name is required if
partial_match
parameter is not set to true. - partial_
match bool - Whether partial matching is allowed or not when using name argument. Default value is false.
- cluster
Id String - ID of the cluster the searched node pool is part of.
- name String
- Name of an existing cluster that you want to search for. Search by name is case-insensitive. The whole resource name is required if
partial_match
parameter is not set to true. - partial
Match Boolean - Whether partial matching is allowed or not when using name argument. Default value is false.
getNodePools Result
The following output properties are available:
- Cluster
Id string - ID of the cluster the searched node pool is part of.
- Id string
- The provider-assigned unique ID for this managed resource.
- Node
Pools List<Ionoscloud.Get Node Pools Node Pool> - List of Node Pools - See the Node Pool section.
- Name string
- Partial
Match bool
- Cluster
Id string - ID of the cluster the searched node pool is part of.
- Id string
- The provider-assigned unique ID for this managed resource.
- Node
Pools []GetNode Pools Node Pool - List of Node Pools - See the Node Pool section.
- Name string
- Partial
Match bool
- cluster
Id String - ID of the cluster the searched node pool is part of.
- id String
- The provider-assigned unique ID for this managed resource.
- node
Pools List<GetNode Pools Node Pool> - List of Node Pools - See the Node Pool section.
- name String
- partial
Match Boolean
- cluster
Id string - ID of the cluster the searched node pool is part of.
- id string
- The provider-assigned unique ID for this managed resource.
- node
Pools GetNode Pools Node Pool[] - List of Node Pools - See the Node Pool section.
- name string
- partial
Match boolean
- cluster_
id str - ID of the cluster the searched node pool is part of.
- id str
- The provider-assigned unique ID for this managed resource.
- node_
pools Sequence[GetNode Pools Node Pool] - List of Node Pools - See the Node Pool section.
- name str
- partial_
match bool
- cluster
Id String - ID of the cluster the searched node pool is part of.
- id String
- The provider-assigned unique ID for this managed resource.
- node
Pools List<Property Map> - List of Node Pools - See the Node Pool section.
- name String
- partial
Match Boolean
Supporting Types
GetNodePoolsNodePool
- Annotations Dictionary<string, string>
- Key-value pairs attached to node pool resource as kubernetes annotations
- Availability
Zone string - The availability zone of the virtual datacenter region where the node pool resources should be provisioned.
- Cores
Count int - The number of CPU cores per node.
- Cpu
Family string - A valid CPU family name or
AUTO
if the platform shall choose the best fitting option. Available CPU architectures can be retrieved from the datacenter resource. - Datacenter
Id string - The UUID of the virtual data center (VDC) in which the node pool is provisioned
- Id string
- Labels Dictionary<string, string>
- Key-value pairs attached to the node pool resource as kubernetes labels
- Maintenance
Windows List<Ionoscloud.Get Node Pools Node Pool Maintenance Window> - Starting time of a weekly 4 hour-long window, during which maintenance might occur in hh:mm:ss format
- Name string
- Name of an existing cluster that you want to search for. Search by name is case-insensitive. The whole resource name is required if
partial_match
parameter is not set to true. - Node
Count int - The number of nodes that make up the node pool.
- Ram
Size int - The RAM size for one node in MB. Must be set in multiples of 1024 MB, with a minimum size is of 2048 MB.
- Storage
Size int - The size of the volume in GB. The size must be greater than 10GB.
- Storage
Type string - The type of hardware for the volume.
- Version string
- The version of the Data Platform.
- Annotations map[string]string
- Key-value pairs attached to node pool resource as kubernetes annotations
- Availability
Zone string - The availability zone of the virtual datacenter region where the node pool resources should be provisioned.
- Cores
Count int - The number of CPU cores per node.
- Cpu
Family string - A valid CPU family name or
AUTO
if the platform shall choose the best fitting option. Available CPU architectures can be retrieved from the datacenter resource. - Datacenter
Id string - The UUID of the virtual data center (VDC) in which the node pool is provisioned
- Id string
- Labels map[string]string
- Key-value pairs attached to the node pool resource as kubernetes labels
- Maintenance
Windows []GetNode Pools Node Pool Maintenance Window - Starting time of a weekly 4 hour-long window, during which maintenance might occur in hh:mm:ss format
- Name string
- Name of an existing cluster that you want to search for. Search by name is case-insensitive. The whole resource name is required if
partial_match
parameter is not set to true. - Node
Count int - The number of nodes that make up the node pool.
- Ram
Size int - The RAM size for one node in MB. Must be set in multiples of 1024 MB, with a minimum size is of 2048 MB.
- Storage
Size int - The size of the volume in GB. The size must be greater than 10GB.
- Storage
Type string - The type of hardware for the volume.
- Version string
- The version of the Data Platform.
- annotations Map<String,String>
- Key-value pairs attached to node pool resource as kubernetes annotations
- availability
Zone String - The availability zone of the virtual datacenter region where the node pool resources should be provisioned.
- cores
Count Integer - The number of CPU cores per node.
- cpu
Family String - A valid CPU family name or
AUTO
if the platform shall choose the best fitting option. Available CPU architectures can be retrieved from the datacenter resource. - datacenter
Id String - The UUID of the virtual data center (VDC) in which the node pool is provisioned
- id String
- labels Map<String,String>
- Key-value pairs attached to the node pool resource as kubernetes labels
- maintenance
Windows List<GetNode Pools Node Pool Maintenance Window> - Starting time of a weekly 4 hour-long window, during which maintenance might occur in hh:mm:ss format
- name String
- Name of an existing cluster that you want to search for. Search by name is case-insensitive. The whole resource name is required if
partial_match
parameter is not set to true. - node
Count Integer - The number of nodes that make up the node pool.
- ram
Size Integer - The RAM size for one node in MB. Must be set in multiples of 1024 MB, with a minimum size is of 2048 MB.
- storage
Size Integer - The size of the volume in GB. The size must be greater than 10GB.
- storage
Type String - The type of hardware for the volume.
- version String
- The version of the Data Platform.
- annotations {[key: string]: string}
- Key-value pairs attached to node pool resource as kubernetes annotations
- availability
Zone string - The availability zone of the virtual datacenter region where the node pool resources should be provisioned.
- cores
Count number - The number of CPU cores per node.
- cpu
Family string - A valid CPU family name or
AUTO
if the platform shall choose the best fitting option. Available CPU architectures can be retrieved from the datacenter resource. - datacenter
Id string - The UUID of the virtual data center (VDC) in which the node pool is provisioned
- id string
- labels {[key: string]: string}
- Key-value pairs attached to the node pool resource as kubernetes labels
- maintenance
Windows GetNode Pools Node Pool Maintenance Window[] - Starting time of a weekly 4 hour-long window, during which maintenance might occur in hh:mm:ss format
- name string
- Name of an existing cluster that you want to search for. Search by name is case-insensitive. The whole resource name is required if
partial_match
parameter is not set to true. - node
Count number - The number of nodes that make up the node pool.
- ram
Size number - The RAM size for one node in MB. Must be set in multiples of 1024 MB, with a minimum size is of 2048 MB.
- storage
Size number - The size of the volume in GB. The size must be greater than 10GB.
- storage
Type string - The type of hardware for the volume.
- version string
- The version of the Data Platform.
- annotations Mapping[str, str]
- Key-value pairs attached to node pool resource as kubernetes annotations
- availability_
zone str - The availability zone of the virtual datacenter region where the node pool resources should be provisioned.
- cores_
count int - The number of CPU cores per node.
- cpu_
family str - A valid CPU family name or
AUTO
if the platform shall choose the best fitting option. Available CPU architectures can be retrieved from the datacenter resource. - datacenter_
id str - The UUID of the virtual data center (VDC) in which the node pool is provisioned
- id str
- labels Mapping[str, str]
- Key-value pairs attached to the node pool resource as kubernetes labels
- maintenance_
windows Sequence[GetNode Pools Node Pool Maintenance Window] - Starting time of a weekly 4 hour-long window, during which maintenance might occur in hh:mm:ss format
- name str
- Name of an existing cluster that you want to search for. Search by name is case-insensitive. The whole resource name is required if
partial_match
parameter is not set to true. - node_
count int - The number of nodes that make up the node pool.
- ram_
size int - The RAM size for one node in MB. Must be set in multiples of 1024 MB, with a minimum size is of 2048 MB.
- storage_
size int - The size of the volume in GB. The size must be greater than 10GB.
- storage_
type str - The type of hardware for the volume.
- version str
- The version of the Data Platform.
- annotations Map<String>
- Key-value pairs attached to node pool resource as kubernetes annotations
- availability
Zone String - The availability zone of the virtual datacenter region where the node pool resources should be provisioned.
- cores
Count Number - The number of CPU cores per node.
- cpu
Family String - A valid CPU family name or
AUTO
if the platform shall choose the best fitting option. Available CPU architectures can be retrieved from the datacenter resource. - datacenter
Id String - The UUID of the virtual data center (VDC) in which the node pool is provisioned
- id String
- labels Map<String>
- Key-value pairs attached to the node pool resource as kubernetes labels
- maintenance
Windows List<Property Map> - Starting time of a weekly 4 hour-long window, during which maintenance might occur in hh:mm:ss format
- name String
- Name of an existing cluster that you want to search for. Search by name is case-insensitive. The whole resource name is required if
partial_match
parameter is not set to true. - node
Count Number - The number of nodes that make up the node pool.
- ram
Size Number - The RAM size for one node in MB. Must be set in multiples of 1024 MB, with a minimum size is of 2048 MB.
- storage
Size Number - The size of the volume in GB. The size must be greater than 10GB.
- storage
Type String - The type of hardware for the volume.
- version String
- The version of the Data Platform.
GetNodePoolsNodePoolMaintenanceWindow
- Day
Of stringThe Week - Time string
- Time at which the maintenance should start. Must conform to the 'HH:MM:SS' 24-hour format.
- Day
Of stringThe Week - Time string
- Time at which the maintenance should start. Must conform to the 'HH:MM:SS' 24-hour format.
- day
Of StringThe Week - time String
- Time at which the maintenance should start. Must conform to the 'HH:MM:SS' 24-hour format.
- day
Of stringThe Week - time string
- Time at which the maintenance should start. Must conform to the 'HH:MM:SS' 24-hour format.
- day_
of_ strthe_ week - time str
- Time at which the maintenance should start. Must conform to the 'HH:MM:SS' 24-hour format.
- day
Of StringThe Week - time String
- Time at which the maintenance should start. Must conform to the 'HH:MM:SS' 24-hour format.
Package Details
- Repository
- ionoscloud ionos-cloud/pulumi-ionoscloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ionoscloud
Terraform Provider.