Rancher 2 v7.1.1 published on Monday, Oct 7, 2024 by Pulumi
rancher2.getNodePool
Explore with Pulumi AI
Use this data source to retrieve information about a Rancher v2 Node Pool resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as rancher2 from "@pulumi/rancher2";
const foo = rancher2.getNodePool({
clusterId: foo_custom.id,
name: "foo",
});
import pulumi
import pulumi_rancher2 as rancher2
foo = rancher2.get_node_pool(cluster_id=foo_custom["id"],
name="foo")
package main
import (
"github.com/pulumi/pulumi-rancher2/sdk/v7/go/rancher2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := rancher2.LookupNodePool(ctx, &rancher2.LookupNodePoolArgs{
ClusterId: foo_custom.Id,
Name: "foo",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Rancher2 = Pulumi.Rancher2;
return await Deployment.RunAsync(() =>
{
var foo = Rancher2.GetNodePool.Invoke(new()
{
ClusterId = foo_custom.Id,
Name = "foo",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.rancher2.Rancher2Functions;
import com.pulumi.rancher2.inputs.GetNodePoolArgs;
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 foo = Rancher2Functions.getNodePool(GetNodePoolArgs.builder()
.clusterId(foo_custom.id())
.name("foo")
.build());
}
}
variables:
foo:
fn::invoke:
Function: rancher2:getNodePool
Arguments:
clusterId: ${["foo-custom"].id}
name: foo
Using getNodePool
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 getNodePool(args: GetNodePoolArgs, opts?: InvokeOptions): Promise<GetNodePoolResult>
function getNodePoolOutput(args: GetNodePoolOutputArgs, opts?: InvokeOptions): Output<GetNodePoolResult>
def get_node_pool(cluster_id: Optional[str] = None,
name: Optional[str] = None,
node_template_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNodePoolResult
def get_node_pool_output(cluster_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
node_template_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNodePoolResult]
func LookupNodePool(ctx *Context, args *LookupNodePoolArgs, opts ...InvokeOption) (*LookupNodePoolResult, error)
func LookupNodePoolOutput(ctx *Context, args *LookupNodePoolOutputArgs, opts ...InvokeOption) LookupNodePoolResultOutput
> Note: This function is named LookupNodePool
in the Go SDK.
public static class GetNodePool
{
public static Task<GetNodePoolResult> InvokeAsync(GetNodePoolArgs args, InvokeOptions? opts = null)
public static Output<GetNodePoolResult> Invoke(GetNodePoolInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNodePoolResult> getNodePool(GetNodePoolArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: rancher2:index/getNodePool:getNodePool
arguments:
# arguments dictionary
The following arguments are supported:
- Cluster
Id string - The RKE cluster id to use Node Pool (string)
- Name string
- The name of the Node Pool (string)
- Node
Template stringId - The Node Template ID to use for node creation (string)
- Cluster
Id string - The RKE cluster id to use Node Pool (string)
- Name string
- The name of the Node Pool (string)
- Node
Template stringId - The Node Template ID to use for node creation (string)
- cluster
Id String - The RKE cluster id to use Node Pool (string)
- name String
- The name of the Node Pool (string)
- node
Template StringId - The Node Template ID to use for node creation (string)
- cluster
Id string - The RKE cluster id to use Node Pool (string)
- name string
- The name of the Node Pool (string)
- node
Template stringId - The Node Template ID to use for node creation (string)
- cluster_
id str - The RKE cluster id to use Node Pool (string)
- name str
- The name of the Node Pool (string)
- node_
template_ strid - The Node Template ID to use for node creation (string)
- cluster
Id String - The RKE cluster id to use Node Pool (string)
- name String
- The name of the Node Pool (string)
- node
Template StringId - The Node Template ID to use for node creation (string)
getNodePool Result
The following output properties are available:
- Annotations Dictionary<string, string>
- (Computed) Annotations for Node Pool object (map)
- Cluster
Id string - Control
Plane bool - (Computed) RKE control plane role for created nodes (bool)
- Delete
Not intReady After Secs - (Computed) Delete not ready node after secs. Default
0
(int) - Etcd bool
- (Computed) RKE etcd role for created nodes (bool)
- Hostname
Prefix string - (Computed) The prefix for created nodes of the Node Pool (string)
- Id string
- The provider-assigned unique ID for this managed resource.
- Labels Dictionary<string, string>
- (Computed) Labels for Node Pool object (map)
- Name string
- Node
Taints List<GetNode Pool Node Taint> - (Computed) Node taints (List)
- Node
Template stringId - Quantity int
- (Computed) The number of nodes to create on Node Pool (int)
- Worker bool
- (Computed) RKE role role for created nodes (bool)
- Annotations map[string]string
- (Computed) Annotations for Node Pool object (map)
- Cluster
Id string - Control
Plane bool - (Computed) RKE control plane role for created nodes (bool)
- Delete
Not intReady After Secs - (Computed) Delete not ready node after secs. Default
0
(int) - Etcd bool
- (Computed) RKE etcd role for created nodes (bool)
- Hostname
Prefix string - (Computed) The prefix for created nodes of the Node Pool (string)
- Id string
- The provider-assigned unique ID for this managed resource.
- Labels map[string]string
- (Computed) Labels for Node Pool object (map)
- Name string
- Node
Taints []GetNode Pool Node Taint - (Computed) Node taints (List)
- Node
Template stringId - Quantity int
- (Computed) The number of nodes to create on Node Pool (int)
- Worker bool
- (Computed) RKE role role for created nodes (bool)
- annotations Map<String,String>
- (Computed) Annotations for Node Pool object (map)
- cluster
Id String - control
Plane Boolean - (Computed) RKE control plane role for created nodes (bool)
- delete
Not IntegerReady After Secs - (Computed) Delete not ready node after secs. Default
0
(int) - etcd Boolean
- (Computed) RKE etcd role for created nodes (bool)
- hostname
Prefix String - (Computed) The prefix for created nodes of the Node Pool (string)
- id String
- The provider-assigned unique ID for this managed resource.
- labels Map<String,String>
- (Computed) Labels for Node Pool object (map)
- name String
- node
Taints List<GetNode Pool Node Taint> - (Computed) Node taints (List)
- node
Template StringId - quantity Integer
- (Computed) The number of nodes to create on Node Pool (int)
- worker Boolean
- (Computed) RKE role role for created nodes (bool)
- annotations {[key: string]: string}
- (Computed) Annotations for Node Pool object (map)
- cluster
Id string - control
Plane boolean - (Computed) RKE control plane role for created nodes (bool)
- delete
Not numberReady After Secs - (Computed) Delete not ready node after secs. Default
0
(int) - etcd boolean
- (Computed) RKE etcd role for created nodes (bool)
- hostname
Prefix string - (Computed) The prefix for created nodes of the Node Pool (string)
- id string
- The provider-assigned unique ID for this managed resource.
- labels {[key: string]: string}
- (Computed) Labels for Node Pool object (map)
- name string
- node
Taints GetNode Pool Node Taint[] - (Computed) Node taints (List)
- node
Template stringId - quantity number
- (Computed) The number of nodes to create on Node Pool (int)
- worker boolean
- (Computed) RKE role role for created nodes (bool)
- annotations Mapping[str, str]
- (Computed) Annotations for Node Pool object (map)
- cluster_
id str - control_
plane bool - (Computed) RKE control plane role for created nodes (bool)
- delete_
not_ intready_ after_ secs - (Computed) Delete not ready node after secs. Default
0
(int) - etcd bool
- (Computed) RKE etcd role for created nodes (bool)
- hostname_
prefix str - (Computed) The prefix for created nodes of the Node Pool (string)
- id str
- The provider-assigned unique ID for this managed resource.
- labels Mapping[str, str]
- (Computed) Labels for Node Pool object (map)
- name str
- node_
taints Sequence[GetNode Pool Node Taint] - (Computed) Node taints (List)
- node_
template_ strid - quantity int
- (Computed) The number of nodes to create on Node Pool (int)
- worker bool
- (Computed) RKE role role for created nodes (bool)
- annotations Map<String>
- (Computed) Annotations for Node Pool object (map)
- cluster
Id String - control
Plane Boolean - (Computed) RKE control plane role for created nodes (bool)
- delete
Not NumberReady After Secs - (Computed) Delete not ready node after secs. Default
0
(int) - etcd Boolean
- (Computed) RKE etcd role for created nodes (bool)
- hostname
Prefix String - (Computed) The prefix for created nodes of the Node Pool (string)
- id String
- The provider-assigned unique ID for this managed resource.
- labels Map<String>
- (Computed) Labels for Node Pool object (map)
- name String
- node
Taints List<Property Map> - (Computed) Node taints (List)
- node
Template StringId - quantity Number
- (Computed) The number of nodes to create on Node Pool (int)
- worker Boolean
- (Computed) RKE role role for created nodes (bool)
Supporting Types
GetNodePoolNodeTaint
- key str
- time_
added str - value str
- effect str
Package Details
- Repository
- Rancher2 pulumi/pulumi-rancher2
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rancher2
Terraform Provider.