ionoscloud.getDataplatformNodePool
Explore with Pulumi AI
The Dataplatform Node Pool Data Source can be used to search for and return an existing Dataplatform Node Pool under a Dataplatform Cluster. If a single match is found, it will be returned. If your search results in multiple matches, an error will be returned. When this happens, please refine your search and make sure that your resources have unique names.
Example Usage
By ID
import * as pulumi from "@pulumi/pulumi";
import * as ionoscloud from "@pulumi/ionoscloud";
const example = ionoscloud.getDataplatformNodePool({
clusterId: "cluster_id",
id: "node_pool_id",
});
import pulumi
import pulumi_ionoscloud as ionoscloud
example = ionoscloud.get_dataplatform_node_pool(cluster_id="cluster_id",
id="node_pool_id")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ionoscloud/v6/ionoscloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ionoscloud.LookupDataplatformNodePool(ctx, &ionoscloud.LookupDataplatformNodePoolArgs{
ClusterId: "cluster_id",
Id: pulumi.StringRef("node_pool_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.GetDataplatformNodePool.Invoke(new()
{
ClusterId = "cluster_id",
Id = "node_pool_id",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ionoscloud.IonoscloudFunctions;
import com.pulumi.ionoscloud.inputs.GetDataplatformNodePoolArgs;
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 = IonoscloudFunctions.getDataplatformNodePool(GetDataplatformNodePoolArgs.builder()
.clusterId("cluster_id")
.id("node_pool_id")
.build());
}
}
variables:
example:
fn::invoke:
function: ionoscloud:getDataplatformNodePool
arguments:
clusterId: cluster_id
id: node_pool_id
By Name
import * as pulumi from "@pulumi/pulumi";
import * as ionoscloud from "@pulumi/ionoscloud";
const example = ionoscloud.getDataplatformNodePool({
clusterId: "cluster_id",
name: "Dataplatform_Node_Pool_Example",
});
import pulumi
import pulumi_ionoscloud as ionoscloud
example = ionoscloud.get_dataplatform_node_pool(cluster_id="cluster_id",
name="Dataplatform_Node_Pool_Example")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ionoscloud/v6/ionoscloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ionoscloud.LookupDataplatformNodePool(ctx, &ionoscloud.LookupDataplatformNodePoolArgs{
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.GetDataplatformNodePool.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.IonoscloudFunctions;
import com.pulumi.ionoscloud.inputs.GetDataplatformNodePoolArgs;
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 = IonoscloudFunctions.getDataplatformNodePool(GetDataplatformNodePoolArgs.builder()
.clusterId("cluster_id")
.name("Dataplatform_Node_Pool_Example")
.build());
}
}
variables:
example:
fn::invoke:
function: ionoscloud:getDataplatformNodePool
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.getDataplatformNodePool({
clusterId: "cluster_id",
name: "_Example",
partialMatch: true,
});
import pulumi
import pulumi_ionoscloud as ionoscloud
example = ionoscloud.get_dataplatform_node_pool(cluster_id="cluster_id",
name="_Example",
partial_match=True)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ionoscloud/v6/ionoscloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ionoscloud.LookupDataplatformNodePool(ctx, &ionoscloud.LookupDataplatformNodePoolArgs{
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.GetDataplatformNodePool.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.IonoscloudFunctions;
import com.pulumi.ionoscloud.inputs.GetDataplatformNodePoolArgs;
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 = IonoscloudFunctions.getDataplatformNodePool(GetDataplatformNodePoolArgs.builder()
.clusterId("cluster_id")
.name("_Example")
.partialMatch(true)
.build());
}
}
variables:
example:
fn::invoke:
function: ionoscloud:getDataplatformNodePool
arguments:
clusterId: cluster_id
name: _Example
partialMatch: true
Using getDataplatformNodePool
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 getDataplatformNodePool(args: GetDataplatformNodePoolArgs, opts?: InvokeOptions): Promise<GetDataplatformNodePoolResult>
function getDataplatformNodePoolOutput(args: GetDataplatformNodePoolOutputArgs, opts?: InvokeOptions): Output<GetDataplatformNodePoolResult>
def get_dataplatform_node_pool(cluster_id: Optional[str] = None,
id: Optional[str] = None,
name: Optional[str] = None,
partial_match: Optional[bool] = None,
timeouts: Optional[GetDataplatformNodePoolTimeouts] = None,
opts: Optional[InvokeOptions] = None) -> GetDataplatformNodePoolResult
def get_dataplatform_node_pool_output(cluster_id: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
partial_match: Optional[pulumi.Input[bool]] = None,
timeouts: Optional[pulumi.Input[GetDataplatformNodePoolTimeoutsArgs]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDataplatformNodePoolResult]
func LookupDataplatformNodePool(ctx *Context, args *LookupDataplatformNodePoolArgs, opts ...InvokeOption) (*LookupDataplatformNodePoolResult, error)
func LookupDataplatformNodePoolOutput(ctx *Context, args *LookupDataplatformNodePoolOutputArgs, opts ...InvokeOption) LookupDataplatformNodePoolResultOutput
> Note: This function is named LookupDataplatformNodePool
in the Go SDK.
public static class GetDataplatformNodePool
{
public static Task<GetDataplatformNodePoolResult> InvokeAsync(GetDataplatformNodePoolArgs args, InvokeOptions? opts = null)
public static Output<GetDataplatformNodePoolResult> Invoke(GetDataplatformNodePoolInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDataplatformNodePoolResult> getDataplatformNodePool(GetDataplatformNodePoolArgs args, InvokeOptions options)
public static Output<GetDataplatformNodePoolResult> getDataplatformNodePool(GetDataplatformNodePoolArgs args, InvokeOptions options)
fn::invoke:
function: ionoscloud:index/getDataplatformNodePool:getDataplatformNodePool
arguments:
# arguments dictionary
The following arguments are supported:
- Cluster
Id string - ID of the cluster the searched node pool is part of.
- Id string
- ID of the node pool you want to search for.
- 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.
Either
id
orname
must be provided. If none, or both are provided, the datasource will return an error.- Timeouts
Get
Dataplatform Node Pool Timeouts
- Cluster
Id string - ID of the cluster the searched node pool is part of.
- Id string
- ID of the node pool you want to search for.
- 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.
Either
id
orname
must be provided. If none, or both are provided, the datasource will return an error.- Timeouts
Get
Dataplatform Node Pool Timeouts
- cluster
Id String - ID of the cluster the searched node pool is part of.
- id String
- ID of the node pool you want to search for.
- 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.
Either
id
orname
must be provided. If none, or both are provided, the datasource will return an error.- timeouts
Get
Dataplatform Node Pool Timeouts
- cluster
Id string - ID of the cluster the searched node pool is part of.
- id string
- ID of the node pool you want to search for.
- 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.
Either
id
orname
must be provided. If none, or both are provided, the datasource will return an error.- timeouts
Get
Dataplatform Node Pool Timeouts
- cluster_
id str - ID of the cluster the searched node pool is part of.
- id str
- ID of the node pool you want to search for.
- 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.
Either
id
orname
must be provided. If none, or both are provided, the datasource will return an error.- timeouts
Get
Dataplatform Node Pool Timeouts
- cluster
Id String - ID of the cluster the searched node pool is part of.
- id String
- ID of the node pool you want to search for.
- 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.
Either
id
orname
must be provided. If none, or both are provided, the datasource will return an error.- timeouts Property Map
getDataplatformNodePool Result
The following output properties are available:
- Annotations Dictionary<string, string>
- Key-value pairs attached to node pool resource as Kubernetes annotations.
- Auto
Scalings List<GetDataplatform Node Pool Auto Scaling> - Whether the Node Pool should autoscale. For more details, please check the API documentation
- Availability
Zone string - The availability zone of the virtual datacenter region where the node pool resources should be provisioned.
- Cluster
Id string - ID of the cluster the searched node pool is part of.
- Cores
Count double - The number of CPU cores per node.
- Cpu
Family string - A CPU family.
- Datacenter
Id string - The UUID of the virtual data center (VDC) the cluster is provisioned.
- Id string
- ID of your node pool.
- Labels Dictionary<string, string>
- Key-value pairs attached to the node pool resource as Kubernetes labels.
- Maintenance
Windows List<GetDataplatform 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
- The name of your node pool
- Node
Count double - The number of nodes that make up the node pool.
- Ram
Size double - The RAM size for one node in MB.
- Storage
Size double - The size of the volume in GB.
- Storage
Type string - The type of hardware for the volume.
- Version string
- The version of the Data Platform.
- Partial
Match bool - Timeouts
Get
Dataplatform Node Pool Timeouts
- Annotations map[string]string
- Key-value pairs attached to node pool resource as Kubernetes annotations.
- Auto
Scalings []GetDataplatform Node Pool Auto Scaling - Whether the Node Pool should autoscale. For more details, please check the API documentation
- Availability
Zone string - The availability zone of the virtual datacenter region where the node pool resources should be provisioned.
- Cluster
Id string - ID of the cluster the searched node pool is part of.
- Cores
Count float64 - The number of CPU cores per node.
- Cpu
Family string - A CPU family.
- Datacenter
Id string - The UUID of the virtual data center (VDC) the cluster is provisioned.
- Id string
- ID of your node pool.
- Labels map[string]string
- Key-value pairs attached to the node pool resource as Kubernetes labels.
- Maintenance
Windows []GetDataplatform 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
- The name of your node pool
- Node
Count float64 - The number of nodes that make up the node pool.
- Ram
Size float64 - The RAM size for one node in MB.
- Storage
Size float64 - The size of the volume in GB.
- Storage
Type string - The type of hardware for the volume.
- Version string
- The version of the Data Platform.
- Partial
Match bool - Timeouts
Get
Dataplatform Node Pool Timeouts
- annotations Map<String,String>
- Key-value pairs attached to node pool resource as Kubernetes annotations.
- auto
Scalings List<GetDataplatform Node Pool Auto Scaling> - Whether the Node Pool should autoscale. For more details, please check the API documentation
- availability
Zone String - The availability zone of the virtual datacenter region where the node pool resources should be provisioned.
- cluster
Id String - ID of the cluster the searched node pool is part of.
- cores
Count Double - The number of CPU cores per node.
- cpu
Family String - A CPU family.
- datacenter
Id String - The UUID of the virtual data center (VDC) the cluster is provisioned.
- id String
- ID of your node pool.
- labels Map<String,String>
- Key-value pairs attached to the node pool resource as Kubernetes labels.
- maintenance
Windows List<GetDataplatform 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
- The name of your node pool
- node
Count Double - The number of nodes that make up the node pool.
- ram
Size Double - The RAM size for one node in MB.
- storage
Size Double - The size of the volume in GB.
- storage
Type String - The type of hardware for the volume.
- version String
- The version of the Data Platform.
- partial
Match Boolean - timeouts
Get
Dataplatform Node Pool Timeouts
- annotations {[key: string]: string}
- Key-value pairs attached to node pool resource as Kubernetes annotations.
- auto
Scalings GetDataplatform Node Pool Auto Scaling[] - Whether the Node Pool should autoscale. For more details, please check the API documentation
- availability
Zone string - The availability zone of the virtual datacenter region where the node pool resources should be provisioned.
- cluster
Id string - ID of the cluster the searched node pool is part of.
- cores
Count number - The number of CPU cores per node.
- cpu
Family string - A CPU family.
- datacenter
Id string - The UUID of the virtual data center (VDC) the cluster is provisioned.
- id string
- ID of your node pool.
- labels {[key: string]: string}
- Key-value pairs attached to the node pool resource as Kubernetes labels.
- maintenance
Windows GetDataplatform 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
- The name of your node pool
- node
Count number - The number of nodes that make up the node pool.
- ram
Size number - The RAM size for one node in MB.
- storage
Size number - The size of the volume in GB.
- storage
Type string - The type of hardware for the volume.
- version string
- The version of the Data Platform.
- partial
Match boolean - timeouts
Get
Dataplatform Node Pool Timeouts
- annotations Mapping[str, str]
- Key-value pairs attached to node pool resource as Kubernetes annotations.
- auto_
scalings Sequence[GetDataplatform Node Pool Auto Scaling] - Whether the Node Pool should autoscale. For more details, please check the API documentation
- availability_
zone str - The availability zone of the virtual datacenter region where the node pool resources should be provisioned.
- cluster_
id str - ID of the cluster the searched node pool is part of.
- cores_
count float - The number of CPU cores per node.
- cpu_
family str - A CPU family.
- datacenter_
id str - The UUID of the virtual data center (VDC) the cluster is provisioned.
- id str
- ID of your node pool.
- labels Mapping[str, str]
- Key-value pairs attached to the node pool resource as Kubernetes labels.
- maintenance_
windows Sequence[GetDataplatform 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
- The name of your node pool
- node_
count float - The number of nodes that make up the node pool.
- ram_
size float - The RAM size for one node in MB.
- storage_
size float - The size of the volume in GB.
- storage_
type str - The type of hardware for the volume.
- version str
- The version of the Data Platform.
- partial_
match bool - timeouts
Get
Dataplatform Node Pool Timeouts
- annotations Map<String>
- Key-value pairs attached to node pool resource as Kubernetes annotations.
- auto
Scalings List<Property Map> - Whether the Node Pool should autoscale. For more details, please check the API documentation
- availability
Zone String - The availability zone of the virtual datacenter region where the node pool resources should be provisioned.
- cluster
Id String - ID of the cluster the searched node pool is part of.
- cores
Count Number - The number of CPU cores per node.
- cpu
Family String - A CPU family.
- datacenter
Id String - The UUID of the virtual data center (VDC) the cluster is provisioned.
- id String
- ID of your node pool.
- 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
- The name of your node pool
- node
Count Number - The number of nodes that make up the node pool.
- ram
Size Number - The RAM size for one node in MB.
- storage
Size Number - The size of the volume in GB.
- storage
Type String - The type of hardware for the volume.
- version String
- The version of the Data Platform.
- partial
Match Boolean - timeouts Property Map
Supporting Types
GetDataplatformNodePoolAutoScaling
- Max
Node doubleCount - The maximum number of worker nodes that the node pool can scale to. Should be greater than min_node_count
- Min
Node doubleCount - The minimum number of worker nodes the node pool can scale down to. Should be less than max_node_count
- Max
Node float64Count - The maximum number of worker nodes that the node pool can scale to. Should be greater than min_node_count
- Min
Node float64Count - The minimum number of worker nodes the node pool can scale down to. Should be less than max_node_count
- max
Node DoubleCount - The maximum number of worker nodes that the node pool can scale to. Should be greater than min_node_count
- min
Node DoubleCount - The minimum number of worker nodes the node pool can scale down to. Should be less than max_node_count
- max
Node numberCount - The maximum number of worker nodes that the node pool can scale to. Should be greater than min_node_count
- min
Node numberCount - The minimum number of worker nodes the node pool can scale down to. Should be less than max_node_count
- max_
node_ floatcount - The maximum number of worker nodes that the node pool can scale to. Should be greater than min_node_count
- min_
node_ floatcount - The minimum number of worker nodes the node pool can scale down to. Should be less than max_node_count
- max
Node NumberCount - The maximum number of worker nodes that the node pool can scale to. Should be greater than min_node_count
- min
Node NumberCount - The minimum number of worker nodes the node pool can scale down to. Should be less than max_node_count
GetDataplatformNodePoolMaintenanceWindow
- Day
Of stringThe Week - Time string
- Time at which the maintenance should start.
- Day
Of stringThe Week - Time string
- Time at which the maintenance should start.
- day
Of StringThe Week - time String
- Time at which the maintenance should start.
- day
Of stringThe Week - time string
- Time at which the maintenance should start.
- day_
of_ strthe_ week - time str
- Time at which the maintenance should start.
- day
Of StringThe Week - time String
- Time at which the maintenance should start.
GetDataplatformNodePoolTimeouts
Package Details
- Repository
- ionoscloud ionos-cloud/terraform-provider-ionoscloud
- License
- Notes
- This Pulumi package is based on the
ionoscloud
Terraform Provider.